Releases: amcharts/amcharts4
Releases · amcharts/amcharts4
4.9.37
[4.9.37] - 2020-08-21
Fixed
- Colors for markers in Legend with
useDefaultMarkers = true
were broken since last release.
4.9.36
[4.9.36] - 2020-08-20
Added
- New adapter on
XYSeries
:groupDataitem
. When data grouping occurs, each aggregate data item will be passed through this adapter, where you can modify its aggregate value. More info. - Two new
MapPolygonSeries
properties:sortPolygonsBy
("area"
(default),"name"
,"longitude"
,"latitude"
,"id"
, and"none"
) andsortPolygonsReversed
(defaultfalse
).
Fixed
- Export:
fontSize
option was being ignored when exporting data in PDF. - Better format object type checks in
DateFormatter
andNumberFormatter
. - Older (non-Chromium) EDGE browser was not showing patterns in the legend markers.
- If a stacked series was hidden with data item grouping enabled and then axis zoomed in or zoomed out so that group perdiod changes, series were stacked on the wrong position.
CircularAxis
line was flickering while start/end angle was animating.
4.9.35
[4.9.35] - 2020-08-12
Added
- New adapter on
XYSeries
:groupValue
. It's now possible to apply custom aggregate value calculation functions for grouped data items. More info. - New adapter on
Cursor
:cursorPoint
. Use it to custom-position chart cursor using your own logic.
Changed
- Accessibility: Now if ENTER is pressed when object with an enabled
"hit"
event is focused, that event will be triggered automatically. - Clicking anywhere on the plot area with
XYCursor
will now trigger blur on any focused element on the page (consistent to clicking anywhere else on the document).
Fixed
- RangeSelector plugin was not properly inheriting chart's locale.
"x"
(timestamp) ininputDateFormat
was not working properly.- If all values of
SankeyDiagram
were0
(zero), nodes were not being arranged and their rectangles were not being displayed. - First
CategoryAxis
label was not visible ifminGridDistance
was set to0
(zero). - Old series bullets of an
XYSeries
remained visible when data was updated and data grouping was enabled on relatedDateAxis
. Utils.random()
function was not returning value in proper from/to range.- Stacking now works only between series of the same type. Previously a
LineSeries
between two stackedColumnSeries
could mess up stacking for the latter. - Zooming in on a part of
LineSeries
which hadstrokeDashArray
enabled viapropertyFields
was making the whole line dashed. - On a chart with
XYCursor
hovering on category with a null value for some series, used to display a tooltip for a different category in some cases.
4.9.34
[4.9.34] - 2020-07-31
Added
- New bullet
ShapeBullet
inBullets
plugin. Please refer to this documentation article for more info. treatZeroAs
added toValueAxis
. Use it to work around zero-value restriction on a logarithmic scale.stackToNegative
(default:true
) added toXYSeries
. Determines whether negative values in a stack will stack in relation to base (zero) line (true
; default) or in relation to the previous value in the stack (false
).
Changed
- xlsx dependency was updated from
0.15.4
to0.16.4
. - Tooltip snapping on
DateAxis
now takes Series' location into account.
Fixed
- Regression plugin:
reorder
option was not working properly. snapToSeries
was not working properly if there was a hidden Series with exactly the same value as the other visible Series.TreeMap
andForceDirectedTree
with a single data item and no children were not working properly with chart legend.- Horizontal (X) Axis tooltip in a very small document was sometimes positioned with an offset.
zoomToRectangle()
method ofMapChart
withdeltaLongitude
was not working properly if a rectangle crossed the 180 meridian.
4.9.33
[4.9.33] - 2020-07-23
Fixed
- If an item from a chart with
CategoryAxis
was removed and then a new item with the same category name was added, chart was not rendering the new item. - A chart with multiple series starting/ending not at the same position could result in wrong zoom on
ValueAxis
- Last bullet/column from
XYSeries
could disappear if end date was not exact as last data items date. LineSeries
could skip a point in case distance between data points was very small, resulting in incorrect line series.
4.9.31
[4.9.31] - 2020-07-21
Changed
- Global adapters are being deprecated due to performance reasons. They will still work on some properties, but may be turned off at some future version. If you are using
am4core.globalAdapter
, please consider refactoring your code in some other way. - If
groupInterval
is manually set,DateAxis
now prepares all intervals. Normally, the chart does not prepare data sets for time intervals longer than the span of dates in the data. This causes problem in case user sets these intervals manually usinggroupInterval
. Note, the groupInterval must be set initially, before data parsing in order data to be grouped into all groupIntervals.
Fixed
- "Year of week" (
YYYY
) was not being calculated correctly byDateFormatter
. - Regression plugin was not working correctly in an all-
ValueAxis
scenarios. ColumnSeries
were not working withdropFromPreviousState
.- If data was changed on a chart which was zoomed and there were less data items in the new data than there was before, a JS error was triggered.
- Sometimes a chart with
XYChartScrollbar
with series in it could produce a JS error if series has itsfillOpacity > 0
. - Series in an
XYChartScrollbar
was not being shown ifoptions.onlyShowOnViewport = true
. zoomToRectangle()
call was resulting in an error if called after theMapChart
was rotated.CurvedColumnSeries
columns were not being filled with proper color (black was being used instead).- A chart with multiple series starting/ending not at the same position could result in wrong zoom on
ValueAxis
. DateAxis
with millisecondbaseInterval
sometimes could show one millisecond less than actual data point in its tooltip.
4.9.30
[4.9.30] - 2020-07-10
Added
am4core.options.suppressWarnings
global option added (default:false
). If set totrue
, the charts won't output any warnings into console (e.g. "Chart was not disposed").
Fixed
- Drill-down map with
geodataSource
problem fixed (since last release only). - Issues with cursor/tooltip and other element positioning fixed, when chart was being initialized outside of DOM (no container on init).
4.9.29
[4.9.29] - 2020-07-09
Changed
- Export: data exported as HTML will now have
<thead>
and<tbody>
tags. XYChart.getClosest()
method is now public.- Accessibility: Now pressing ENTER while there's a
MapChart
element focused (using TAB key) will invoke itshit
event, if set.
Fixed
- JSON: heat rules referring to series' bullets were not working, e.g.
target: "bullet[0].circle"
. - IE: More fixes to polyfill overriding.
ColorSet
methodnext()
would fail ifcurrentStep
was bigger thanminColors
, affectingSliceGrouper
plugin setups with a lot of slices in particular.- On
MapChart
settingsminZoomLevel
andmaxZoomLevel
were being ignored when pinch-zooming. - Syncing of axes improved, especially when series of one axis were hidden/shown.
- If a
MapSeries
had its geodata loaded viageodataSource
, the map used to disappear after div size changed. - Legend had a
maxWidth
set to200
and this could result labels to be truncated even if there was enough space for them to fit in. - Ticks/grid could disappear if
ValueAxis
hadmin
/max
set and data of a chart changed.
4.9.28
[4.9.28] - 2020-06-29
Added
- New adapter
xlsxWorkbook
inExport
. Will allow decorating a Workbook object before it is exported. chart.exporting
text-based API functions (getSVG()
,getCSV()
,getJSON()
,getHTML()
) now have third parameter (boolean). If set tofalse
they will return a raw output, rather than data:uri.zoomable
property added to all axes (default:true
). Setting it tofalse
will make axis not react to zoom events from scrollbar/cursor.
Changed
- Removed
focusable
from map chart background series. - Polyfills in
.js
file will now only load on-demand, making it with some frameworks that override default objects.
Fixed
- Regression plugin: the regression line was not being drawn correctly on a chart with horizontal
ValueAxis
. - Export: images exported on zoomed-out pages sometimes were showing visual artifacts.
- If a chart cursor was visible (because of soft or hard
triggerMove()
calls) but the real mouse was out of the plot area, the cursor used to react to clicks even though it shouldn't have. ForceDirectedNode
'sfill
andstroke
adapters were not working properly if nodes were initially collapsed.Sprite.hitTest()
method was not working properly withnonScaling = true
.- If a
MapChart
had geodata loaded viageodataSource.url
, the map used to disappear after div size changed. - If a legend of a
MapChart
was disposed, a JS error might happen in some cases.
4.9.27
[4.9.27] - 2020-06-18
Added
ExportMenu
item definition can now havetitle
property. If set, it will be added to item'stitle
property, which should show a system tooltip on hover.
Changed
- Hex color parser now supports RGBA format which includes alpha value, e.g.
"#FF000080"
will produce a 50% transparent red.
Fixed
- Fixed performance issue with a logarithmic
ValueAxis
withstrictMinMax
set totrue
. - Calculated value of
sum
in the selection of anXYChart
could include one extra data item, not visible in the selection. - Pie slices with 0 values were sorted incorrectly in FF.