What's New
See the release post for feature highlights of what's new in this major version.
Users of integrated charting on AG Grid, should refer to this migration guide when upgrading to AG Grid 33.
Breaking Changes
This release includes the following breaking changes:
AgCharts.setLicenseKey()
- removed, useLicenseManager.setLicenseKey()
instead.
Compatibility
The minimum version of React you can use with AG Charts is now React 18.
Series Changes
- Series type
bullet
- removed, use the Linear Gauge instead. - Bar Series
label.placement
:inside
- removed, useinside-center
instead.outside
- removed, useoutside-end
instead.
- Waterfall Series
label.placement
:inside
- removed, useinside-center
instead.start
- removed, useoutside-start
instead.end
- removed, useoutside-end
instead.
Axes Changes
- All
AgCrossLineLabelPosition
options are changed to kebab-case. For example,topLeft
becomestop-left
. - If
axes[].tick.enabled: false
, any providedaxis[].label.padding
is the distance between the label and the axis. - On all axis labels,
padding
- removed, usespacing
instead. axes[].crosshair.label.className
- removed, use the provided classes for adding custom styles or provide a custom HTML renderer instead.ag-crosshair-label*
CSS classes - removed, useag-charts-crosshair-label*
instead.- Removed redundant
format
of category axis labels:axes[type = 'category'].label.format
axes[type = 'category'].crosshair.label.format
axes[type = 'angle-category'].label.format
axes[type = 'radius-category'].label.format
Tooltip Changes
- The tooltips have an improved visual layout and now include more information about the hovered item.
- The
tooltip.renderer
has changed:- It now takes
heading
,title
anddata
properties instead oftitle
andcontent
. - The
heading
andtitle
properties are typed asString
and thedata
property is typed asString[]
. These no longer accept HTML. - The
params
provided no longer returncolor
. Usefill
andstroke
instead. - With the exception of
ohlc
,candlestick
, andwaterfall
series types,itemId
is no longer provided in theparams
.
- It now takes
- The CSS classes have changed:
ag-chart-tooltip
- removed, useag-charts-tooltip
instead.ag-chart-tooltip-title
- removed, useag-charts-tooltip-heading
andag-charts-tooltip-title
instead.ag-chart-tooltip-content
- removed, useag-charts-tooltip-label
andag-charts-tooltip-value
instead.
tooltip.class
- removed, use the provided classes for adding custom styles or provide a custom HTML renderer instead.
Financial Charts Changes
chartType
ofrange-area
- removed, usehlc
instead.AgPriceVolumePreset.rangeToolbar
- removed, userangeButtons
instead.AgPriceVolumePreset.xKey
- removed, usedateKey
instead.AgPriceVolumePreset.annotations
- removed, usetoolbar
instead.
Miscellaneous
legendItemClick
andlegendItemDoubleClick
events no longer return the state of the clicked item in theparams
. To get this information, subscribe to thechart.seriesVisibilityChange
event.MarkerShape
union is no longer typedany
.- Custom marker shapes are now defined with a callback function instead of extending a
Marker
class. AgChartSerializableState
- removed, useAgChartState
instead.navigator.min
andnavigator.max
- removed, useinitialState.zoom.ratioX.start
andinitialState.zoom.ratioX.end
instead.zoom.ratioX
,zoom.ratioY
- removed, useinitialState.zoom.ratioX
andinitialState.zoom.ratioY
instead.zoom.rangeX
,zoom.rangeY
- removed, useinitialState.zoom.rangeX
andinitialState.zoom.rangeY
instead.navigator.miniChart.label.padding
- removed, usenavigator.miniChart.label.spacing
instead.- Locale string
toolbarAnnotationsColor
- removed, usetoolbarAnnotationsLineColor
instead. - All icons with
-legacy
suffix have been removed. toolbar.zoom
- removed, usezoom.buttons
instead. Unused options ofposition
,align
,size
,draggable
,buttons[].id
, andbuttons[].role
are removed.toolbar.annotations
- removed, useannotations.toolbar
instead. Unused options ofposition
,align
,size
,draggable
,buttons[].id
, andbuttons[].role
are removed.toolbar.ranges
- removed, usechart.ranges
instead. Unused options ofposition
,align
,size
,draggable
,buttons[].id
, andbuttons[].role
are removed.toolbar.annotationsOptions
- removed, useannotations.optionsToolbar
instead. Unused options ofposition
,align
,size
,draggable
,buttons[].id
, andbuttons[].role
are removed.toolbar.seriesType
- removed, usechart.chartToolbar
instead. Unused options ofposition
,align
,size
,draggable
, andbuttons
areag-chart-context-menu*
CSS classes - removed, useag-charts-context-menu*
instead.- Overlay CSS classes have changed:
ag-chart-loading-overlay
- removed, useag-charts-loading-overlay
instead.ag-chart-no-data-overlay
- removed, useag-charts-no-data-overlay
instead.ag-chart-no-visible-series
- removed, useag-charts-o-visible-series
instead.
Behaviour Changes
This release includes the following behaviour changes:
Theme Defaults
- If
axes[].tick.enabled: true
, the labels default to a padding of 5px away from the tick. - The Navigator - including its mask and handles - have updated height, fill and corner radius defaults.
Other Changes
- All series and axis labels default to removing trailing zeros. Use the
format
andformatter
options to modify.- Additionally some incorrect rounding scenarios have been fixed, e.g. 5.555 now correctly rounds to 5.56 instead of 5.55.
- Pie and Donut Series labels default to displaying two decimal places without trailing zeros. Use the
formatter
orformat
options to modify. - A stacked normalized area series datum where all the values are 0, will connect to a point at 0 rather than leaving a gap.
- The default Zoom selection area when
axes: 'xy'
now ignores aspect ratio. Usezoom.keepAspectRatio
to change this. - Scrolling events on a chart with zoom enabled, will now be passed to the parent if zoom is at minimum or maximum levels.
Changes List
If you would like to see the full list of changes in this release, please see the Changelog.