Skip to content

Releases: amcharts/amcharts5

5.9.1

10 Apr 10:59
Compare
Choose a tag to compare

[5.9.1] - 2024-04-10

Added

  • New control in StockChart's drawing toolbar: "Select". Allows toggling "selection" mode on and off. When it's on, clicking on any existing drawing will select it. Otherwise drawing will be initiated using currently selected tool. This allows drawing over existing drawings. Default: off.
  • New StockChart setting: drawingSelectionEnabled (default: false). If set to true, all drawings will be selectable by clicking on them.

Changed

  • Bundled xlsx library code updated to 0.20.2.
  • All drawings are not selectable by default (they were selectable since 5.9.0). To enable selection, use the newly introduced "Select" control, or via StockChart's drawingSelectionEnabled setting.

  • Revisited fix to tabindexOrder with a safer approach.
  • Arrow-navigating between grouped focusable items were not "jumping over" hidden items.
  • LineSeries' axis ranges were not properly using stroke/fill templates from data.

5.9.0

09 Apr 12:21
Compare
Choose a tag to compare

[5.9.0] - 2024-04-09

Added

  • zoomToDataItems(dataItems, rotate) method added to MapPolygonSeries.
  • Bigger hit circle added to Stock charts drawings bullets, which becomes visible when hovered.
  • A public method markDirtyKey() added. Could be used to trigger an adapter.
  • A "Reset to default" link added to StockChart's settings modal.
  • New StockChart/DrawingSeries methods added related to drawing selection: selectDrawing(id, keepSelection), unselectDrawing(id), unselectDrawings().
  • New StockChart/DrawingSeries methods added related to drawing deletion: deleteDrawing(id), deleteSelectedDrawings().
  • New StockChart events: drawingadded, drawingremoved, drawingselected, drawingunselected.
  • New DropdownListControl methods: getItemById(id) and setItemById(id).
  • New IconControl methods: getIconByPath(path) and setIconByPath(path).
  • New drawing tools added to StockChart: "Triangle" and "Polyfill".

Changed

  • Improved handling of moving lines of an XYCursor. It will now move by one cell automatically, or by 5 cells if pressed together with CTRL.
  • Improved styling of a color picker control in StockChart's toolbar and settings modals.
  • Drawing functionality was completely revamped: all drawings are now selectable, editable, movable, and can be deleted by selecting them and pressing DEL.
  • Accessibility: Pressing SPACE when element with role="checkbox" set is focused, will now toggle it just like pressing ENTER.
  • pdfmake updated to 0.2.10.

Fixed

  • Sprite was not marking its bounds dirty when margins changed. It was causing layouts with margins not to be redrawn after margins changed.
  • When drawing mode was enabled in a StockChart while in the percent scale, it used to reset scale to regular.
  • Tooltip no longer overwrites user-provided background.
  • Treemap was not redrawing when layout algorithm was changed dynamically.
  • Tooltip position was not being updated when bounds of a Sprite changed.
  • Moving line of an XYCursor with a keyboard press could result in an axis line to be out of sync with series tooltips.
  • tabindexOrder was not working properly in some cases.
  • Font family and font size controls were showing unnecessary "+" icon.
  • In some rare cases setting value on an object / data item was not working.

5.8.7

25 Mar 11:02
Compare
Choose a tag to compare

[5.8.7] - 2024-03-25

Fixed

  • If a Label with background was hidden due to oversizedBehavior rule, the background was still visible.
  • Moving XYCursor with keyboard were not always properly updating adapter-populated tooltips.
  • HTML-based tooltips were not being updated properly in some cases.
  • Labels of a zero-value slices on a Venn diagram will not be displayed anymore.
  • Sankey links were ignoring dx and dy settings set on nodes.
  • A JS error could occur when loading on-demand data in some specific cases.
  • Series range affected by an axis range was not using settings from its tempalteField.
  • When data grouping was enabled on DateAxis, calling zoomToDates() (and zoomToValues()) could result zooming to slightly different dates.

5.8.6

20 Mar 11:23
Compare
Choose a tag to compare

[5.8.6] - 2024-03-20

Fixed

  • pancancelled event of an XYChart was not being fired in some cases.
  • When old series were removed from an XYChart and a new added, related ValueAxis was not zooming out to new data if Animated theme was not used.
  • Series.on("tooltipDataItem") was not working in some setups since 5.8.3.
  • If a ValueAxis width extraMin and/or extraMax set was being synced with another axis (via syncWith) chart could go into an SO in some setups/cases.

5.8.5

15 Mar 14:58
Compare
Choose a tag to compare

[5.8.5] - 2024-03-15

Added

  • forceHidden (default: false) setting added to StockControl. Enables forcing some StockChart controls to be always hidden.
  • New DateRangeSelector event added: "rangeselected".
  • New PriodSelector event added: "periodselected".

Fixed

  • A JavaScript error was being triggered if a Picture was disposed before external image was finished loading (since 5.8.3).
  • Inputs in DateRangeSelector were ignoring Root's timezone and utc settings.
  • Thicker stroke (strokeWidth > 1) was being ignored as a hit target for interactive elements.
  • Scrollbar grips would not update their position according to maxZoomCount/minZoomCount setting in some cases.
  • Hovering over the border of a Treemap node could result tooltip of some other node to appear.
  • In some cases pointer over tooltip of a hovered Treemap node would remain on the same node, even if pointer would move to some other node.
  • If a { timeUnit: "week", count: 2 } (count > 1) was added to a DateAxis, labels were flickering while scrolling.
  • Calling zoomToDates()/zoomToValues() on a DateAxis was resulting not exact dates when data grouping was enabled and grouping period would changed during zoom.

5.8.4

22 Feb 10:56
Compare
Choose a tag to compare

[5.8.4] - 2024-02-22

Added

  • New DrawingSeries method: getIndex(drawingId). Will return index of a drawing corresponding to a unique id, or null if not found.

Changed

  • PeriodSelector will now zoom to last/first data items if stockSeries is set on StockChart. Previously it used to zoom to X-axis scale end/start, regardless of data.
  • All DrawingSeries will now add a unique drawingId to all drawing data.
  • Stock indicatos adjusted so that they could handle data with negative values, 0 volume values and all OHLC values being equal.

Fixed

  • Scale of a ValueAxis was not adjusting properly if its height/width changed during zoom.
  • Standalone DrawingControl (one that was not added to a toolbar) was erroring out when parent Root was disposed.
  • HTML content in a Label (with html set) was not inheriting labels actual color (fill).
  • Setting a selectedDataItem to a data item without children on a Hierarchy series was resulting in error.
  • Heat rules were setting "neutral" color on the default state of a target even if it was undefined, resulting in some issues when value was not set.
  • Heat rules were ignoring customFunction if value was not set.

5.8.3

19 Feb 09:50
Compare
Choose a tag to compare

[5.8.3] - 2024-02-19

Fixed

  • Picture's events "loaded" and "loaderror" were kicking in before actual picture was fully loaded/errored.
  • ClusteredPointSeries of a MapChart were updating clustered bullets with delay and sometimes they remained in a wrong position.
  • StockChart's cursor used to freeze after chart was panned and it was not snapped to Y value (if snapping was enabled) (since 5.8.1).

5.8.2

16 Feb 09:28
Compare
Choose a tag to compare

[5.8.2] - 2024-02-16

Fixed

  • DateRangeSelector was sometimes selecting an extra day on GapplessDateAxis.
  • Some leftover console debug messages removed.

5.8.1

14 Feb 15:56
Compare
Choose a tag to compare

[5.8.1] - 2024-02-14

Changed

  • VolumeProfile indicator will now not let select an unreasonably small value for its "ticks per row" setting.

Fixed

  • Using DrawingControl in standalone mode was resulting in error when trying to enable drawing tool from API.
  • Volume profile indicator was taking one extra date which was out of selection in some cases.
  • If snapToSeries was set on XYCursor, tooltipDataItem was set one extra time with incorrect value on XYSeries.
  • XYSeries was not updating legend if legendRangeValueText text was set on series and range was changed from outside without animated theme enabled.

5.8.0

01 Feb 10:03
Compare
Choose a tag to compare

[5.8.0] - 2024-02-01

Added

  • New container type ZoomableContainer added, which allows adding zoom capabilities to virtually any chart. More info.
  • New class ZoomTools added. Can be used to quickly add zoom support for elements compatible with IZoomable interface, e.g. ZoomableContainer.
  • New read-only property of DrawingControl: drawingSeries. Contains an object where key is a drawing tool name and values are array with references to actual drawing series.

Changed

  • Default value for strokeOpacity for the grid line of a StockChart changed from 0 to 0.4 so that it would differ from regular grid lines.

Fixed

  • Resizing stock chart's panels after moving them up/down was not working properly.
  • Hierarchy.addChildData was duplicating node's children which were added before.
  • If topDepth was set to 1 on Partition, initially the chart was showing not all levels of nodes.
  • When clicking on particular partitions of a Partion chart, zoom animation was not playing.
  • DateRangeSelector was showing extra day in automatically-calculated end date.
  • DateRangeSelector was zooming to the start of the selected day, instead of end.
  • Tooltip background color passed to HeatLegend.showValue(value, text, color) was being ignored.
  • ClusteredPointSeries was not showing charts if they were added to clustered bullets.
  • Fixed issue with DrawingControl which was unnecessarily duplicating drawing series with each tool selection / API call.
  • Using "1M" button in PeriodSelector was not always selecting full month.
  • Restoring drawings with DrawingControl.unserializeDrawings() will now correctly update indexes of the restored drawings based on current drawing counter.
  • In some cases StockChart was taking a data item which was just outside of zoom range when calculating aggregate values for its series, affecting percent change values and some other aggregates.
  • Legend value was not being updated when series axis' range changed. This caused legendRangeLabelText to not being updated (if set) when chart was being zoomed-in/out.
  • If a type of StockChart series was changed with data grouping enabled, some duplicate candlesticks or ohlc sticks were displayed until first zoom.
  • In some rare cases chart would show incorrect last segment of a LineSeries when in percent mode.