v5.2.1
[5.2.1] - 2024-05-07
Original release news here
Added
- Added Stacked Axes (beta)
- Accessed via
AxisOptions.iStack,Axis.setLength,Axis.setMargins - See online examples and/or Developer documentation (Features > Axis) for latest updates to stacked axis use cases.
- Accessed via
- Added
TreeMapChart - Added
ChartXY.swapAxes(beta)- Can be used to swap the position of two stacked Axes.
- Added
ImageFillsupport forPointLineAreaSeriesandPolarPointSeriesmarker fill styles- Allows displaying custom picture assets in axis coordinates with axis clipping.
- Added
PointLineAreaSeries.setPointAlignment,getPointAlignment- Allows display of non-centered points. For example, position points by vertical bottom.
- Added convenience axis getter properties
ChartXY.axisX,xAxis,axisY,yAxisChart3D.axisX,xAxis,axisY,yAxis,axisZ,zAxisPolarChart.axisRadial,axisAmplitude,radialAxis,amplitudeAxis- These behave exactly same as
getDefaultAxisX()or equivalents, but simply look more neat.
- Added
SeriesOptions.axisX,SeriesOptions.axisY- Convenience properties that do exactly same as existing
xAxisandyAxis
- Convenience properties that do exactly same as existing
- Added convenience properties
SeriesXY.xAxis,SeriesXY.yAxis - Added
DisposableEvents.isDisposed- This simple getter is added to basically 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 ability to use
IconanywherePointShapecan be used.- XY point series, Polar point series, Point markers, Legend entries, Checkboxes
- Additionally, Icons can now be used as part of Result table content
- Added
DataSetXY.fill,PointLineAreaSeries.fillmethods- Convenient way to set same value to all existing samples. Especially useful for implementing custom interactions, like highlighting selected data
- Added
setTickStyleconvenience methods to all tick strategies.- This does the same as existing
setMajorTickStyleandsetMinorTickStylebut applies both with just 1 method call.points with different color/size etc.
- This does the same as existing
- Added more optional parameters to
DataSetXY.alterSamplesByIDandPointLineAreaSeries.alterSamplesByID:x,y,lookupValue,color,rotation- Can be used to load same value for all specified sample IDs.
- Added
Axis.setTitleMarginBefore,getTitleMarginBefore - Added
Axis.setAutoRegionsEnabled- Can be used to disable built-in functionality that adds extra gaps around axis interval to make sure that attached series fit inside. In some specific cases this is necessary.
- Added
hasUIElementBackgroundtype guard. - Added
Color.toUint32 - Added slice parameter to sliced chart slice styling APIs
- Allows referencing slice label and other properties in custom style use cases
Removed
- Removed
EngineSettings.webgl- This property was faulty since v5.0.0, and didn't actually do anything. Use
LightningChartOptions.webglinstead
- This property was faulty since v5.0.0, and didn't actually do anything. Use
Fixed
- Fixed bug
synchronizeAxisIntervalsresulting in axes not being zoomable or pannable. - Fixed
PointLineAreaSeriesrun-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
PointLineAreaSeriesmore 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
PointLineAreaSeriesindividual point sizes low resolution with circle shape. - Fixed
PointLineAreaSeries.clearresulting 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
alterSamplesnot doing anything if onlysizesorrotationswere 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.
Deprecated
- Deprecated
LightningChartOptions.sharedContextOptions.webglin favour ofLightningChartOptions.webgl - Deprecated
Axis.setTitleMargin,getTitleMargin- For clearer distinction should use
Axis.setMarginAfterTitleinstead
- For clearer distinction should use