You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-16Lines changed: 10 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,15 +19,11 @@ The demo can be used as an example or a seed project. Local execution requires t
19
19
20
20
## Description
21
21
22
-
This example demonstrates **Scrolling Heatmap Aggregation** in `HeatmapScrollingGridSeries`. You can also configure aggregation for a static `HeatmapGridSeries`.
22
+
This example demonstrates Scrolling Heatmap Aggregation in `HeatmapScrollingGridSeries`. You can also configure aggregation for a static `HeatmapGridSeries`.
23
23
24
-
By default, heatmaps display the closest heatmap cell value to each pixel that is rendered on the screen. With dense, high resolution heatmaps, this can mean that there is no guarantee which data value is displayed in a pixel.
24
+
By default, heatmaps display the closest heatmap cell value to each pixel that is rendered on the screen. With dense, high resolution heatmaps, this can mean that there is no guarantee which data value is displayed in a pixel. Heatmap aggregation can be enabled to specify this behavior (which value to show when multiple cell values are contained by single pixel) at the expense of a performance hit.
25
25
26
-
Heatmap aggregation can be enabled to specify this behavior (which value to show when multiple cell values are contained by single pixel) at the expense of a performance hit.
27
-
28
-
In this example, the lower heatmap uses the `max` aggregation mode, making sudden **power spikes (shown in red)** much easier to identify in the data stream.
29
-
30
-
# Heatmap Scrolling Grid Series aggregation
26
+
In this example, the lower heatmap uses the `max` aggregation mode, making it much easier to identify signals in the data stream.
31
27
32
28
In LightningChart JS, aggregation mode is configured with the `setAggregation` method. By default the aggregation mode is `undefined`. Bilinear interpolation is not supported simultaneously, so remember to disable it with `setIntensityInterpolation('disabled')`.
33
29
@@ -39,8 +35,6 @@ heatmapSeries
39
35
.setIntensityInterpolation('disabled')
40
36
```
41
37
42
-
The data used in this example: [ElectroSense PSD Spectrum Dataset](https://doi.org/10.5281/zenodo.7521246).
43
-
44
38
## API Links
45
39
46
40
*[Scrolling Heatmap Grid Series]
@@ -69,13 +63,13 @@ Direct developer email support can be purchased through a [Support Plan][4] or b
// Display cursor at given x coordinate and solve nearest for all series in both charts
184
+
constdisplayCursorAt=(x,y,value)=>{
185
+
charts.forEach((chart)=>{
186
+
constsolveResults=chart.chart
187
+
.getSeries()
188
+
// NOTE: Heatmap series doesn't currently have direct API syntax to solve nearest from axis coordinate - for it, you have to first translate axis coordinate to client coordinate and then use solve nearest
0 commit comments