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 32.
Breaking Changes
This release includes the following breaking changes:
- The
AgChart
entrypoint is renamed toAgCharts
. - The
AgChartsReact
export is renamed toAgCharts
. AgCharts.update()
moved toAgChartInstance.update()
.AgCharts.updateDelta()
moved toAgChartInstance.updateDelta()
.AgCharts.download()
moved toAgChartInstance.download()
.AgCharts.getImageDataURL()
moved toAgChartInstance.getImageDataURL()
.autosize
is removed. Charts will autosize automatically by default. Useheight
,width
,minHeight
,minWidth
to change this.- Charts smaller than the provided container, now display in the centre of the container instead of top-left.
- The height of the chart container is no longer automatically set to 100%.
containerStyle
is renamed tostyle
.- Series
key
properties no longer support general expressions. The only acceptable property paths are.dot
and['square-bracket']
expressions. AgNodeDoubleClickEvent
,AgSeriesNodeClickEvent
andAgSeriesNodeDoubleClickEvent
are all replaced byAgNodeClickEvent
.
Series Changes
innerRadiusOffset
,innerRadiusRatio
,innerCircle
,innerLabels
are removed frompie
series. Usedonut
series instead.pie
anddonut
series strokes are now rendered on the inside of each sector. Instead of usingstrokeWidth
to add spacing between the sectors, usesectorSpacing
.innerLabels.margin
ondonut
series is renamed toinnerLabels.spacing
.scatter
andbubble
series options contained withinmarker
object are moved to the top level.marker.enabled
is removed.formatter
function on all series, marker and error-bars is renamed toitemStyler
.- All
SeriesFormatterParams
are renamed toSeriesItemStylerParams
.AgBarSeriesFormatterParams
is renamed to `AgBarSeriesItemStylerParams``.AgPieSeriesFormatterParams
is renamed toAgPieSeriesItemStylerParams
.AgDonutSeriesFormatterParams
is renamed toAgDonutSeriesItemStylerParams
.AgBoxPlotSeriesFormatterParams
is renamed toAgBoxPlotSeriesItemStylerParams
.AgCandlestickSeriesFormatterParams
is renamed toAgCandlestickSeriesItemStylerParams
.AgHeatmapSeriesFormatterParams
is renamed toAgHeatmapSeriesItemStylerParams
.AgOhlcSeriesFormatterParams
is renamed toAgOhlcSeriesItemStylerParams
.AgWaterfallSeriesFormatterParams
is renamed toAgWaterfallSeriesItemStylerParams
.AgSunburstSeriesFormatterParams
is renamed toAgSunburstSeriesItemStylerParams
.AgTreemapSeriesFormatterParams
is renamed toAgTreemapSeriesItemStylerParams
.AgRadialSeriesFormatterParams
is renamed toAgRadialSeriesItemStylerParams
.AgMapLineSeriesFormatterParams
is renamed toAgMapLineSeriesItemStylerParams
.AgMapMarkerSeriesFormatterParams
is renamed toAgMapMarkerSeriesItemStylerParams
.AgMapShapeSeriesFormatterParams
is renamed toAgMapShapeSeriesItemStylerParams
.
AgSeriesMarkerFormatterParams
is renamed `AgSeriesMarkerStylerParamsAgErrorBarFormatterParams
is renamed toAgErrorBarItemStylerParams
.fills[]
andstrokes[]
are removed fromAgPieSeriesItemStylerParams
andAgDonutSeriesItemStylerParams
.value
is removed from waterfallAgWaterfallSeriesItemStylerParams
.AgPieSeriesFormat
is renamed toAgPieSeriesStyle
.AgDonutSeriesFormat
is renamed toAgDonutSeriesStyle
.AgRadialSeriesFormat
is renamed toAgRadialSeriesStyle
.AgWaterfallSeriesFormat
is renamed toAgWaterfallSeriesStyle
.AgRangeBarSeriesFormat
is renamed toAgRangeBarSeriesStyle
.AgHeatmapSeriesFormat
is renamed toAgHeatmapSeriesStyle
.AgBoxPlotSeriesStyles
is renamed toAgBoxPlotSeriesStyle
.AgRadarSeriesItemStylerParams
added a<TDatum>
generic.AgSunburstSeriesItemStylerParams
generic no longer has a default value.AgTreemapSeriesItemStylerParams
generic no longer has a default value.AgErrorBarOptions
added a<TDatum>
generic.AgPieSeriesTooltipRendererParams
added a<TDatum>
generic.AgDonutSeriesTooltipRendererParams
added a<TDatum>
generic.AgCandlestickSeriesTooltipRendererParams
added a<TDatum>
generic.AgHeatmapSeriesTooltipRendererParams
added a<TDatum>
generic.AgOhlcSeriesTooltipRendererParams
added a<TDatum>
generic.AgRangeBarSeriesTooltipRendererParams
added a<TDatum>
generic.AgRadialSeriesTooltipRendererParams
added a<TDatum>
generic.
Axes Changes
groupPaddingInner
on category axis has no effect when series are not grouped. UsepaddingInner
instead.axes.tick.color
is renamed toaxes.tick.stroke
.axes.line.color
is renamed toaxes.line.stroke
.axes.tick.minSpacing
,axes.tick.maxSpacing
,axes.tick.values
are moved toaxes.interval
.axes.tick.interval
is moved toaxes.interval.step
.formatter
property removed fromAgAxisLabelFormatterParams
.
Miscellaneous
legend.item.line.length
is now the length of the entire legend item line, regardless of whether or not a marker is present.legend.item.toggleSeriesVisible
is replaced bylegend.toggleSeries
.AgGradientLegendOptions.stop
is removed, usescale
instead.navigator.margin
is renamed tonavigator.spacing
.AgContextMenuActionParams
is replaced byAgNodeContextMenuActionEvent
.AgNodeContextMenuActionEvent.itemId
is removed, usexKey
,yKey
,angleKey
etc instead.fontWeight
no longer supports Strings for numeric values. Use numbers instead.AgChartThemeOptionalPalette
has been renamed and replacesAgChartThemePalette
.errorBar.cap.formatter
is removed. Cap options can be return in the top levelerrorBar.itemStyler
.type
property removed without replacement fromAgAngleCategoryAxisThemeOptions
AgAngleNumberAxisThemeOptions
AgRadiusCategoryAxisThemeOptions
AgRadiusNumberAxisThemeOptions
.
Behaviour Changes
This release includes the following behaviour changes:
Theme Defaults
- Gradient Legend values default to descending order when
position
is'left'
or'right'
. UsereverseOrder
to change. pie
anddonut
series strokes now default to palette colours.pie
anddonut
seriesstrokeWidth
now defaults to0
.- Crosshairs now
snap
by default for number axis ofrange-bar
andrange-area
series. Usesnap: false
to change. - Crosshair labels for dark modes now have a different background colour.
legend.item.showSeriesStroke
defaults totrue
.
Other Changes
- Pan left and Pan right zoom buttons move the chart by one step rather than the entire viewport width.
- Time format in tooltips and crosshair labels defaults to a prettier format.
- Time and Number format in tooltips now follows the
axis[].format
if provided. Use a tooltip renderer to specify a tooltip specific format. - The
zoom-in
andzoom-out
icons have been changed. The previous ones are renamed tozoom-in-alt
andzoom-out-alt
. - The zoom icons are now grouped. Use the
section
option to create your own groupings. - Wrapped and truncated text may display differently.
- More precise text measurement allows display of more characters from longer labels to be displayed before wrapping or truncating.
- Wrapping strategy is improved to give more balanced lines.
- Manual line breaks are respected even if
wrapping: 'never'
. - When manual line breaks are provided, wrapping and truncation is applied to each line separately.
Changes List
If you would like to see the full list of changes in this release, please see the Changelog.