Skip to main content
Version: 5.2.0

v4.2.0

Original release news here

Release video here

[4.2.0] - 2023-08-08

Added

  • Added TimeTickStrategy.setFormattingFunction, setMajorFormattingFunction, setMinorFormattingFunction
  • Control.translateCoordinate
    • This method is present on all chart types and Dashboard
    • It replaces translatePoint and similar previous APIs.
  • Added Control.getSizePixels(): Point
    • Simple method for getting size of a chart in pixels.
  • Added Control.onResize, Control.offResize
    • Methods were missing for Dashboard and ZoomBandChart
  • Added BarChart
    • Dedicated chart type for visualizing categorical data with convenient high level end user API.
    • Features (to mention some): cursor, sorting, animations, overlapping label hiding, different label position options, events API, high performance, support for large number of bars, logarithmic value axis, vertical + horizontal bars.
  • Added type guards for all style objects.
    • isSolidFill, isSolidLine, isFontSettings, etc.
  • Added convenience function: DateTimeTickStrategy.setFormatting
    • Easier way of configuring date time ticks formatting for cases with simple requirements.
  • Added PolarHeatmapSeries, PolarHeatmapSeriesFormatter, PolarHeatmapSeriesOptions

Fixed

  • Fixed FormattingFunctions.NumericUnits sometimes not adding decimal places where necessary.
  • Fixed errors and crashes when supplying LCJS with style objects created from separate ES module based library.
    • Problem appeared when using lcjs-themes, for example.
  • Fixed PolarChart radial axis stroke having clearly visible angle steps especially on large monitors.
  • Fixed issue where axis didn't scroll to show data if all coordinates were same.
  • Fixed LineSeries with DashedLine visualization error when appending 1 or very few data points at a time.
  • Fixed slight performance degradation with static Line Series
    • Introduced in v4.1.0
    • With 1 million data points, about 1 millisecond of extra loading time
  • Fixed DateTime tick display error in major = months range
    • Sometimes right side great tick would display next year even if its not in axis range.

Deprecated

  • Deprecated translatePoint, translatePoint3D, PublicEngine.scale, PublicEngine.clientLocation2Engine, PublicEngine.engineLocation2Client
    • See Control.translateCoordinate for newer syntax of coordinate translations
  • Deprecated previous method signature of solveNearestFromScreen
    • New signature was added to replace it. It expects object with { clientX: number, clientY: number } properties, instead of { x: number, y: number }. These values should be proper HTML client coordinates rather than internal LCJS engine coordinates like before.
  • Deprecated pixelScale properties.
    • Use coordsRelative property instead, it works exactly same.
  • Deprecated Chart3D.world, Chart3D.axes over Chart3D.coordsWorld, Chart3D.coordsAxis