amCharts 5: Stock Chart 5.9.2

Released: Apr 17, 2024

Updates in 5.9.2

Funktionen

  • Accessibility: Added two new Tooltip settings: readerAnnounce (boolean, default: false) and labelAriaLabel. If readerAnnounce is set to true, tooltip's contents (labelAriaLabel if set, or regular label text) will be read out by screen readers when tooltip is shown or its data item changes.
  • Accessibility: Added a new Label method: getAccessibleText(). It returns populated arialLabel text if set, or regular text content.
  • Added a new Sprite method: compositeScale(). It returns the actual scale of an element, compounded based on scale of its own and all of its ancestors.
  • Added a new am5.getRootById(id) Net global function, which returns Root instance stored in a <div> with specific ID.
  • Added 4 new StockPanel events: moved, closed, collapsed, and expanded.
  • Added 2 new Entity methods: off(key, callback?) and offPrivate(key, callback?). They allow you to remove setting/private setting value change events set via on()/onPrivate().
  • Added a new erasingEnabled StockChart setting. If set to true, the chart will go into "eraser" mode - same as clicking on an Eraser tool in stock toolbar.
  • HTML content will now scale according to its "composite" scale. (Scale calculated all the way its ancestor tree).
  • StockChart will now restore "selection mode" after briefly turning it off while drawing is being drawn.
  • Improved dangling of circular labels with Arabic text.

Fehlerkorrekturen

  • HTML content was sometimes being incorrectly positioned if either width or height was set, but not both.
  • Selecting a drawing on a StockChart was resulting in an error if there was no DrawingControl present in a chart's toolbar.
  • StockChart's eraser tool was not working properly since 5.9.1.
  • If a StockPanel was added to a zoomed StockChart it would not sync its zoom and would appear fully zoomed out.