v5.0.1
[5.0.1] - 2023-11-08
Original release news here
warning
This version is not available under @lightningchart in NPM.
It can only be accessed via legacy @arction organization.
Added
- Shared WebGL Context rendering.
- Removes the old 16 chart limit. Now you can have 1000+ charts on a single page depending on the hardware running the page.
- Has two modes:
- Individual canvas mode. In this mode each chart is render to it's own canvas. This is the default mode.
- Shared canvas mode. All charts are render to a single shared canvas. Can have better performance than the individual canvas mode.
- See Developer Documentation "Grouping charts" for more information
- Starting with LCJS v5.0.0, it's important to do only one call to the
lightningChart()library
- Added automatic sandbox licensing.
- When charts are used in specific, popular sandbox sites (like Stack Overflow, Codepen, JSFiddle), the charts work automatically, without passing any license.
- New event
isInView- This event is triggered when a chart becomes visible in the browser viewport.
dispose()to the library entry point interface (lightningChart())`- This can be used to dispose the shared WebGL context and all charts that have been created with it.
- Added option to have different fonts and fill styles within result table content.
- See changes to
ResultTableContentandTableContentBuilder.addRow
- See changes to
- Added
PointShape.Arrow,Cross,Diamond,Minus,Plus,Star - Added
HeatmapScrollingGridSeriesIntensityValues.invalidateIntensityValues,getSampleCountmethods- Allows backwards invalidation of previously added samples and pushing data by sample index.
- Directed to make heatmap time series applications more convenient.
- Added
MapChart.getRegionUnderMouse - Added
ResultTable.setPadding,ResultTable.getPadding - Added auto cursors to
PieChart,FunnelChartandPyramidChart- New methods:
setAutoCursor,getAutoCursor,setAutoCursorMode,getAutoCursorMode,setCursorResultTableFormatter
- New methods:
- Added optional
matchStyleExactlyflag when adding components to legend box to match button color exactly to attached components rather than making default gradient - Added
PieChartWithLabelsOnSides.setLabelSliceOffset,getLabelSliceOffset,setLabelConnectorGapStart,getLabelConnectorGapStart,setLabelConnectorEndLength,getLabelConnectorEndLength - Added option to
captureFramemethod to return the result as a Data URL.- See LegendBoxAddOptions in API reference to learn more.
- Added
UICheckBox.setTextFillStyleHidden,getTextFillStyleHiddenmethods
Changed
- Changed non-commercial license terms
- Before, omitting license key meant approving to non-commercial use terms
- Now, license key is always required. Get a license at
https://lightningchart.com/js-charts/#license-key
- Reworked
OHLCSeries.- Performance massively improved. Loading time 40x faster, data capacity 200x more (average desktop GPU).
- See migration guide for instructions of using reworked feature.
- Reworked
ZoomBandChart- The feature has been reimplemented from scratch with two goals: better UX + simpler API.
- See migration guide for details.
- Refactored
FigureSeries(RectangleSeries,SegmentSeries,PolygonSeries,BoxSeries,EllipseSeries)- Main motivation to improve performance greatly, enabling use cases that need large numbers of figures.
- New implementation is much more performance efficient, on average ~50x more powerful or even more.
- Changed visual look of
LegendBoxbuttons.- Now the text and button are dimmed when series is hidden, rather than the previous "check box ticked" approach.
- Built-in
Themescursor gridstroke style changed toDashedLine - Changed interfaces around tick styles.
TickStyleshould now be only needed interface. It has all APIs necessary for styling axis ticks.emptyTickcan be used as convenience to hide ticks completely.VisibleTicksandEmptyTicksclasses are removed.- When mutating a tick style, there is no longer a need to check
isVisibleTicksin TypeScript applications. - This should mainly remove type errors, rather than introduce them.
LegendBoxbuttons now match the shape of attached point-based series.- Concerns following series:
PointSeries,PointLineSeries,StepSeries,SplineSeries,PolarPointSeries,PolarPointLineSeriesandSpiderSeries. - If this behavior is undesirable, it can be prevented like:
LegendBox.add(component, { builder: UIElementBuilders.CheckBox }) - This also let's you choose any shape from
PointShapecollection. SeeLegendBoxAddOptionsin API reference for more information.
- Concerns following series:
- Changed parameters of
onHighlightmethods.- First parameter is now reference to object itself. Other parameters shifted right.
- Change done to be symmetrical with other event APIs.
- Changed parameters of
CustomTick.onValueChangemethod.- First parameter is now reference to object itself. Other parameters shifted right.
- Change done to be symmetrical with other event APIs.
- Changed
PointMarkerAPI- Removed
setStrokeStyle,getStrokeStyle - Added
setShape,getShape,setRotation,getRotation - PointMarkers can no longer have borders, but their shape and rotation can be easily changed.
- Removed
- Changed default look of cursor PointMarkers
- Previously was not visible, now it is a small crosshair
- To restore previous look you can either use
chart.setAutoCursor((cursor) => cursor.setPointMarkerVisible(false))ortheme: { ...Themes.darkGold, cursorPointMarkerFillStyle: emptyFill }
CursorPoint.seriesproperty name changed toownerand type tounknown.PieChartWithLabelsOnSidesvisual look changed.- Labels are now next to labels rather than at left/right edges of chart area.
- Moved
SpiderChartaxis nibs draw order behind series.- This was causing some cursor interaction issues due to the nibs having priority over series
- Changed
Themeproperties:- +cursorPointMarkerSize
- +cursorPointMarkerShape
- +chartMarkerPointMarkerSize
- +chartMarkerPointMarkerShape
- +seriesMarkerPointMarkerFillStyle
- +seriesMarkerPointMarkerSize
- +seriesMarkerPointMarkerShape
- +uiButtonFillStyleHidden
- +uiTextFillStyleHidden
- +ohlcCandleThicknessPixels
- +ohlcCandleTailStrokeStylePositive
- +ohlcCandleTailStrokeStyleNegative
- +ohlcBarThicknessPixels
- -ohlcCandleBodyStrokeStylePositive
- -ohlcCandleBodyStrokeStyleNegative
- -cursorPointMarkerStrokeStyle
- -chartMarkerPointMarkerStrokeStyle
Removed
- Removed
BoxAndWhiskers,BoxFigureConstructor,CustomizableFigure,SimpleFigureSeries- Can be replaced with
BoxSeries,BoxFigure
- Can be replaced with
- Removed
Figure.setHighlight,getHighlight,onHighlight,offHighlightmethods- They can still be used via the
FigureSeries(same value shared for all figures)
- They can still be used via the
- Removed
VisibleTicks,isVisibleTicks- Can be replaced with
TickStyle,isTickStyle
- Can be replaced with
- Removed
MarkerBuilders.XY- Can be replaced with
MarkerBuilders.ChartMarkerXYorMarkerBuilders.SeriesMarkerXYinstead
- Can be replaced with
- Removed
PointMarkers,EmptyPointMarker, all generic type parameters related toPointMarkersPointMarkerconcept still exists, but has been simplified. SeePointMarkerin API reference for more information.
- Removed
PieChartWithLabelsOnSides.getLabelConnectorGap,getLabelConnectorLength,setLabelConnectorGap,setLabelConnectorLength - Removed
UICheckBoxBuilder.setPictureOff,setPictureOnmethods- Replaced by
setButtonShapemethod
- Replaced by
- Removed
UICheckBox.setButtonOffSize,setButtonOnSizemethods- Replaced by
setButtonSizemethod
- Replaced by
- Removed
UICheckBox.setButtonOnStrokeStyle,setButtonOffStrokeStylemethods- No equivalent method exists, check boxes no longer have borders, only fill style.
Fixed
- Fixed some Firefox specific render and console warning issues
MapChartstroke not rendered and potentially other unidentified occurences.
- Fixed
ChartXYseries background border sometimes being clipped 1 pixel on some sides - Fixed
ChartXYaxis stroke not aligning with series background border- Before axis stroke was offset by half its thickness so they partially overlapped.
- Fixed effects leaking outside series area
- Fixed
PieChartWithLabelsOnSidespushing labels out of view. - Minor CPU performance optimizations for all chart types.
- Fixed
BarChartcategory axis title mispositioned with bipolar data set - Improved some situations where
BarChartlooked off when it had not been supplied data yet - Fixed
BarChartvalue axis gridstroke plotted in wrong direction - Fixed
ZoomBandChartmissing series background style API
Deprecated
- Deprecated all
disableAnimationsreadonly configurations.- Added new
animationsEnabledoption to replace these.
- Added new