v3.0.0
[3.0.0] - 2021-05-05
warning
This version is not available under @lightningchart in NPM.
It can only be accessed via legacy @arction organization.
Added
- PolarChart
- PolarAxisAmplitude
- PolarAxisRadial
- PolarPoint
- PolarPointSeries
- PolarLineSeries
- PolarPointLineSeries
- PolarAreaSeries
- PolarPolygonSeries
- PolarSector
- Logarithmic axis support for XY charts
- BoxSeries3D now supports PalettedFill by x, y or z
- LineSeries.setDataCleaningThreshold, getDataCleaningThreshold
- LineSeries.setCursorSolveBasis, getCursorSolveBasis
- PointLineSeries.setCursorSolveBasis, getCursorSolveBasis
- SplineSeries.setCursorSolveBasis, getCursorSolveBasis
- StepSeries.setCursorSolveBasis, getCursorSolveBasis
- UILUTCheckBox
- API for Axis mouse and touch events
- UITick
- UITickBuilder
- UIElementBuilders.AxisTick
- Configuration options for changing mouse interactions to different mouse buttons
UILegendBoxPanel.setLegendBoxes- NumericTickStrategy.setExtremeFormattingFunction
- NumericTickStrategy.setMajorFormattingFunction
- NumericTickStrategy.setMinorFormattingFunction
- API for subscribing to mouse and touch events on chart background
- Dependency to earcut (https://github.com/mapbox/earcut). Used for Polygon triangulation.
Changed
- Attaching a series with color lookup table (LUT) now automatically visualizes the color steps with a LUTUICheckBox component.
- LegendBox title is no longer automatically set to match chart title. Title can be set with new method
LegendBox.setTitle. - Tweaked LegendBox default style to look a bit nicer.
LegendBox.addAPI has changed. Refer to migration guide for details.- LegendBoxEntry is now styled accordingly with series
PalettedFill. - Nib mouse wheel behavior is now more intuitive
- Default style of XY Markers was changed to same as AutoCursor
- Renamed CustomTick.setTopPadding -> setTickLabelPadding
- Renamed PointableTextBox -> UIPointableTextBox
- Major improvements to text rendering performance
- Changed default CheckBox button picture to UIButtonPictures.Circle
- Renamed
ResultTable.setFonttosetTextFont - Renamed
UITextBox.setFonttosetTextFont - Renamed
UICheckBox.setFonttosetTextFont - Renamed
LegendBoxEntry.setFonttosetTextFont - Theme.chartBackgroundFillStyle renamed to seriesBackgroundFillStyle
- Theme.chartBackgroundStrokeStyle renamed to seriesBackgroundStrokeStyle
- on/offChartBackground... event methods were renamed to on/offSeriesBackground...
- setChartBackgroundFillStyle methods renamed to setSeriesBackgroundFillStyle
- getChartBackgroundFillStyle methods renamed to getSeriesBackgroundFillStyle
- setChartBackgroundStrokeStyle methods renamed to setSeriesBackgroundStrokeStyle
- getChartBackgroundStrokeStyle methods renamed to getSeriesBackgroundStrokeStyle
- Changed default CheckBox button picture to
UIButtonPictures.Circle UILegendBoxPanel.addno longer accepts series, or other attachables. Only chart or dashboard can be supplied.- Default LegendBox alignment changed from horizontal to vertical.
- Improved default LegendBox positioning.
- Changed default cursor solve basis of all line series' to
'nearest-x'. This can be changed with new method:setCursorSolveBasis - Improved Line Series rendering algorithms for progressive and real-time rendering, to perform much faster and look better.
- Heavily optimized progressive Line Series with user zooming in/out and automatic scrolling
- Significantly improved Line Series memory usage in scrolling applications with data cleaning enabled
AreaSeriesandAreaRangeSeriescursor now behaves as expected, by picking closest data point along X dimension. Cursor now also performs better.- All
dataPatternoptions have been changed. Instead of selecting an option fromDataPatternsexport, use object format instead, for example{ pattern: 'ProgressiveX' }. See documentation/migration guide for details. onPanelBackground...-methods were renamed toonBackground...- Renamed
setResultTableFormatter, andgetResultTableFormattermethods tosetCursorResultTableFormatter, andgetCursorResultTableFormatterrespectively. - Improved API documentation
Removed
DefaultLibraryStyle- Use Themes.dark or any other Theme instead.UILegendBoxPaneltitle API (setTitle,getTitle,setTitleFillStyle,getTitleFillStyle,setTitleFont,getTitleFont).UILegendBoxPanel.setEntries, useUILegendBoxPanel.setLegendBoxesfor same functionality.- Boolean parameter to ChartXY.addAxisX and addAxisY. Replaced with object syntax
- NumericAxisTickStrategy.setFormattingFunction. Replaced with individual setters for each tick level.
- CustomTick.setPaddingBottom (can be accessed via TickMarker background)
- CustomTick.setSidePaddings (can be accessed via TickMarker background)
- CursorBuilderXY.setTickMarkerXBackground
- CursorBuilderXY.setTickMarkerYBackground
PointSeriesOptions3D.pointShape, usePointSeries3D.setPointStyleinstead.PointLineSeriesOptions3D.pointShape, usePointLineSeries3D.setPointStyleinstead.- Theme.numericTickStrategy3D use Theme.numericTickStrategy instead.
- Theme.dateTimeTickStrategy3D use Theme.dateTimeTickStrategy instead.
DataPatterns. Use object format instead, for example{ pattern: 'ProgressiveX' }. See documentation/migration guide for details.
Fixed
- Fixed ticks overlapping other ticks in some cases
- Fixed LUT unexpected color step behavior when interpolation is disabled
- Fixed Axis.fit() when Series points are in a straight line
- Fixed progressive Axis scrolling sometimes getting ahead of series
- Fixed scenario where chart rendered with 1px x 1px canvas
- Fixed Constant line and Band touch events not working inside dashboard.
- Fixed mouse leave event not fired correctly in all cases
- Fixed missing configuration for 3D chart creation inside dashboard, theme and disableAnimations can now be properly set
- Fixed improper dispose behavior of ChartXY
- IntensitySeries now supports highlighting when styled with SolidFill
- IntensitySeries style is now properly matched in LegendBox
- SurfaceSeries3D style is now properly matched in LegendBox
- SurfaceSeries3D is now properly highlighted when hovering over respective LegendBoxEntry
- Fixed some cases where series boundaries were one frame behind actual boundaries
- Resolved some Z-fighting issues with
SurfaceSeries3Dwireframe and surface. - Fixed SurfaceSeries3D and HeatmapMeshSeries not accounting boundaries of first and last column & row.
- Fixed axis nib mouse wheel scroll event wasn't properly stopped when interaction happened.
- Fixed IntensitySeries not updating when using
addColumnto add only values - Fixed type issues when using strict type checking mode with TypeScript
- Fixed linear gradient interpolation being incorrect when devicePixelRatio wasn't exactly 1.
- Fixed NumericTickStrategy formatting in very low value range (1e-6 and below)