Releases: amcharts/amcharts5
Releases · amcharts/amcharts5
5.9.1
[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 totrue
, all drawings will be selectable by clicking on them.
Changed
- Bundled
xlsx
library code updated to0.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
'sdrawingSelectionEnabled
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 usingstroke
/fill
templates from data.
5.9.0
[5.9.0] - 2024-04-09
Added
zoomToDataItems(dataItems, rotate)
method added toMapPolygonSeries
.- 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)
andsetItemById(id)
. - New
IconControl
methods:getIconByPath(path)
andsetIconByPath(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 withCTRL
. - 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 to0.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-providedbackground
.Treemap
was not redrawing when layout algorithm was changed dynamically.Tooltip
position was not being updated when bounds of aSprite
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
[5.8.7] - 2024-03-25
Fixed
- If a
Label
with background was hidden due tooversizedBehavior
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 ignoringdx
anddy
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
, callingzoomToDates()
(andzoomToValues()
) could result zooming to slightly different dates.
5.8.6
[5.8.6] - 2024-03-20
Fixed
pancancelled
event of anXYChart
was not being fired in some cases.- When old series were removed from an
XYChart
and a new added, relatedValueAxis
was not zooming out to new data if Animated theme was not used. Series.on("tooltipDataItem")
was not working in some setups since5.8.3
.- If a
ValueAxis
widthextraMin
and/orextraMax
set was being synced with another axis (viasyncWith
) chart could go into an SO in some setups/cases.
5.8.5
[5.8.5] - 2024-03-15
Added
forceHidden
(default:false
) setting added toStockControl
. Enables forcing someStockChart
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 ignoringRoot
'stimezone
andutc
settings. - Thicker stroke (
strokeWidth > 1
) was being ignored as a hit target for interactive elements. Scrollbar
grips would not update their position according tomaxZoomCount
/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 aDateAxis
, labels were flickering while scrolling. - Calling
zoomToDates()
/zoomToValues()
on aDateAxis
was resulting not exact dates when data grouping was enabled and grouping period would changed during zoom.
5.8.4
[5.8.4] - 2024-02-22
Added
- New
DrawingSeries
method:getIndex(drawingId)
. Will return index of a drawing corresponding to a unique id, ornull
if not found.
Changed
PeriodSelector
will now zoom to last/first data items ifstockSeries
is set onStockChart
. Previously it used to zoom to X-axis scale end/start, regardless of data.- All
DrawingSeries
will now add a uniquedrawingId
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 parentRoot
was disposed. - HTML content in a
Label
(withhtml
set) was not inheriting labels actual color (fill
). - Setting a
selectedDataItem
to a data item without children on aHierarchy
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
[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 aMapChart
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) (since5.8.1
).
5.8.2
[5.8.2] - 2024-02-16
Fixed
DateRangeSelector
was sometimes selecting an extra day onGapplessDateAxis
.- Some leftover console debug messages removed.
5.8.1
[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 onXYCursor
,tooltipDataItem
was set one extra time with incorrect value onXYSeries
. XYSeries
was not updating legend iflegendRangeValueText
text was set on series and range was changed from outside without animated theme enabled.
5.8.0
[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 withIZoomable
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 aStockChart
changed from0
to0.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 to1
onPartition
, 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.