LightningChart JS v5.2.0
Released: May 7, 2024
Mises à jour de v5.2.0
Fonctionnalités
- Added Stacked Axes (beta) which is accessed via AxisOptions.iStack, Axis.setLength, Axis.setMargins.
- Added TreeMapChart.
- Added ChartXY.swapAxes (beta) which can be used to swap the position of two stacked Axes.
- Added ImageFill support for PointLineAreaSeries and PolarPointSeries marker fill styles. This allows displaying custom picture assets in axis coordinates with axis clipping.
- Added PointLineAreaSeries.setPointAlignment, getPointAlignment. This allows the display of non-centered points. For example, position points by vertical bottom.
- Added convenient axis getter properties that behave exactly same as getDefaultAxisX() or equivalents, but simply look more neat:
- ChartXY.axisX, xAxis, axisY, and yAxis.
- Chart3D.axisX, xAxis, axisY, yAxis, axisZ, and zAxis.
- PolarChart.axisRadial, axisAmplitude, radialAxis, and amplitudeAxis.
- Added convenient SeriesOptions.axisX, SeriesOptions.axisY properties that do exactly same as existing xAxis and yAxis.
- Added convenient SeriesXY.xAxis, SeriesXY.yAxis properties.
- Added DisposableEvents.isDisposed. This simple getter has been added to all charts, series, etc. objects. Introduced mainly to workaround some issues in React run-time crashes.
- Added LightningChart.layout. Required for React applications which use shared LC context and include charts inside scrollable DIVs which are not the document body. Used to notify charts that their position on the webpage may have changed.
- Added ChartComponent.setIcon (beta). This can be used to associate a chart component with a icon graphic. For many series types this results in automatically displaying that Icon in legends and cursors.
- Added the ability to use Icon anywhere PointShape can be used.
- XY point series, Polar point series, Point markers, Legend entries, and Checkboxes.
- Icons can now be used as part of Result table content.
- Added DataSetXY.fill, PointLineAreaSeries.fill methods. These methods are a convenient way to set same value to all existing samples. Especially useful for implementing custom interactions, like highlighting selected data.
- Added convenient setTickStyle methods to all tick strategies. This does the same as existing setMajorTickStyle and setMinorTickStyle but applies both with just 1 method call.points with different color/size etc.
- Added more optional parameters to DataSetXY.alterSamplesByID and PointLineAreaSeries.alterSamplesByID: x, y, lookupValue, color, rotation. These can be used to load same value for all specified sample IDs.
- Added Axis.setTitleMarginBefore, getTitleMarginBefore.
- Added Axis.setAutoRegionsEnabled, which can be used to disable built-in functionality that adds extra gaps around axis interval to make sure that attached series fit inside.
- Added hasUIElementBackground type guard.
- Added Color.toUint32.
- Added slice parameter to sliced chart slice styling APIs, which allows referencing slice label and other properties in custom style use cases.
- Removed EngineSettings.webgl - This property was faulty since v5.0.0, and didn't actually do anything. Use LightningChartOptions.webgl instead
- Deprecated LightningChartOptions.sharedContextOptions.webgl in favor of LightningChartOptions.webgl
- Deprecated Axis.setTitleMargin, getTitleMargin. For a clearer distinction you should use Axis.setMarginAfterTitle instead.
Correctifs
- Fixed bug synchronizeAxisIntervals resulting in axes not being zoomable or pannable.
- Fixed PointLineAreaSeries run-time crash "invalid array length" sometimes when using time-series data and zooming in/out.
- Fixed long scroll animations in time-series use cases when first data points are added.
- Fixed charts not following changes to window devicePixelRatio after chart is created.
- This can be observed by text staying sharp and thicknesses/point sizes adjusting when using browser zooming.
- Note that in order for this to work, web site needs to have meta tag meta[name="viewport"] width=device-width.
- Made PointLineAreaSeries more robust to common invalid data supply patterns in data streaming test setups.
- e.g. data points sharing same time coordinate, or even having slightly incorrect order.
- Fixed PointLineAreaSeries individual point sizes low resolution with circle shape.
- Fixed PointLineAreaSeries.clear resulting in series not being visible under specific circumstances.
- Fixed axis gridlines invisible with light theme.
- Fixed extreme ticklines not visible.
- Fixed crash when attempting to dispose same chart twice.
- Fixed sliced charts (pie, pyramid, funnel) auto cursors not updating on mouse move when highlight on hover is disabled.
- Fixed legend button not showing if legend is added while attached component is invisible.
- Fixed alterSamples not doing anything if only sizes or rotations were altered.
- Fixed Legend entry hiding itself even when toggleVisibilityOnClick is false
- Fixed BarChart sometimes disabling animations even if they are explicitly enabled or not disabled at least.