What's New Copy Link
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 Copy Link
This release includes the following breaking changes:
- The
AgChartentrypoint is renamed toAgCharts. - The
AgChartsReactexport is renamed toAgCharts. AgCharts.update()moved toAgChartInstance.update().AgCharts.updateDelta()moved toAgChartInstance.updateDelta().AgCharts.download()moved toAgChartInstance.download().AgCharts.getImageDataURL()moved toAgChartInstance.getImageDataURL().autosizeis removed. Charts will autosize automatically by default. Useheight,width,minHeight,minWidthto 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%.
containerStyleis renamed tostyle.- Series
keyproperties no longer support general expressions. The only acceptable property paths are.dotand['square-bracket']expressions. AgNodeDoubleClickEvent,AgSeriesNodeClickEventandAgSeriesNodeDoubleClickEventare all replaced byAgNodeClickEvent.
Series Changes Copy Link
innerRadiusOffset,innerRadiusRatio,innerCircle,innerLabelsare removed frompieseries. Usedonutseries instead.pieanddonutseries strokes are now rendered on the inside of each sector. Instead of usingstrokeWidthto add spacing between the sectors, usesectorSpacing.innerLabels.marginondonutseries is renamed toinnerLabels.spacing.scatterandbubbleseries options contained withinmarkerobject are moved to the top level.marker.enabledis removed.formatterfunction on all series, marker and error-bars is renamed toitemStyler.- All
SeriesFormatterParamsare renamed toSeriesItemStylerParams.AgBarSeriesFormatterParamsis renamed to `AgBarSeriesItemStylerParams``.AgPieSeriesFormatterParamsis renamed toAgPieSeriesItemStylerParams.AgDonutSeriesFormatterParamsis renamed toAgDonutSeriesItemStylerParams.AgBoxPlotSeriesFormatterParamsis renamed toAgBoxPlotSeriesItemStylerParams.AgCandlestickSeriesFormatterParamsis renamed toAgCandlestickSeriesItemStylerParams.AgHeatmapSeriesFormatterParamsis renamed toAgHeatmapSeriesItemStylerParams.AgOhlcSeriesFormatterParamsis renamed toAgOhlcSeriesItemStylerParams.AgWaterfallSeriesFormatterParamsis renamed toAgWaterfallSeriesItemStylerParams.AgSunburstSeriesFormatterParamsis renamed toAgSunburstSeriesItemStylerParams.AgTreemapSeriesFormatterParamsis renamed toAgTreemapSeriesItemStylerParams.AgRadialSeriesFormatterParamsis renamed toAgRadialSeriesItemStylerParams.AgMapLineSeriesFormatterParamsis renamed toAgMapLineSeriesItemStylerParams.AgMapMarkerSeriesFormatterParamsis renamed toAgMapMarkerSeriesItemStylerParams.AgMapShapeSeriesFormatterParamsis renamed toAgMapShapeSeriesItemStylerParams.
AgSeriesMarkerFormatterParamsis renamed `AgSeriesMarkerStylerParamsAgErrorBarFormatterParamsis renamed toAgErrorBarItemStylerParams.fills[]andstrokes[]are removed fromAgPieSeriesItemStylerParamsandAgDonutSeriesItemStylerParams.valueis removed from waterfallAgWaterfallSeriesItemStylerParams.AgPieSeriesFormatis renamed toAgPieSeriesStyle.AgDonutSeriesFormatis renamed toAgDonutSeriesStyle.AgRadialSeriesFormatis renamed toAgRadialSeriesStyle.AgWaterfallSeriesFormatis renamed toAgWaterfallSeriesStyle.AgRangeBarSeriesFormatis renamed toAgRangeBarSeriesStyle.AgHeatmapSeriesFormatis renamed toAgHeatmapSeriesStyle.AgBoxPlotSeriesStylesis renamed toAgBoxPlotSeriesStyle.AgRadarSeriesItemStylerParamsadded a<TDatum>generic.AgSunburstSeriesItemStylerParamsgeneric no longer has a default value.AgTreemapSeriesItemStylerParamsgeneric no longer has a default value.AgErrorBarOptionsadded a<TDatum>generic.AgPieSeriesTooltipRendererParamsadded a<TDatum>generic.AgDonutSeriesTooltipRendererParamsadded a<TDatum>generic.AgCandlestickSeriesTooltipRendererParamsadded a<TDatum>generic.AgHeatmapSeriesTooltipRendererParamsadded a<TDatum>generic.AgOhlcSeriesTooltipRendererParamsadded a<TDatum>generic.AgRangeBarSeriesTooltipRendererParamsadded a<TDatum>generic.AgRadialSeriesTooltipRendererParamsadded a<TDatum>generic.
Axes Changes Copy Link
groupPaddingInneron category axis has no effect when series are not grouped. UsepaddingInnerinstead.axes.tick.coloris renamed toaxes.tick.stroke.axes.line.coloris renamed toaxes.line.stroke.axes.tick.minSpacing,axes.tick.maxSpacing,axes.tick.valuesare moved toaxes.interval.axes.tick.intervalis moved toaxes.interval.step.formatterproperty removed fromAgAxisLabelFormatterParams.
Miscellaneous Copy Link
legend.item.line.lengthis now the length of the entire legend item line, regardless of whether or not a marker is present.legend.item.toggleSeriesVisibleis replaced bylegend.toggleSeries.AgGradientLegendOptions.stopis removed, usescaleinstead.navigator.marginis renamed tonavigator.spacing.AgContextMenuActionParamsis replaced byAgNodeContextMenuActionEvent.AgNodeContextMenuActionEvent.itemIdis removed, usexKey,yKey,angleKeyetc instead.fontWeightno longer supports Strings for numeric values. Use numbers instead.AgChartThemeOptionalPalettehas been renamed and replacesAgChartThemePalette.errorBar.cap.formatteris removed. Cap options can be return in the top levelerrorBar.itemStyler.typeproperty removed without replacement fromAgAngleCategoryAxisThemeOptionsAgAngleNumberAxisThemeOptionsAgRadiusCategoryAxisThemeOptionsAgRadiusNumberAxisThemeOptions.
Behaviour Changes Copy Link
This release includes the following behaviour changes:
Theme Defaults Copy Link
- Gradient Legend values default to descending order when
positionis'left'or'right'. UsereverseOrderto change. pieanddonutseries strokes now default to palette colours.pieanddonutseriesstrokeWidthnow defaults to0.- Crosshairs now
snapby default for number axis ofrange-barandrange-areaseries. Usesnap: falseto change. - Crosshair labels for dark modes now have a different background colour.
legend.item.showSeriesStrokedefaults totrue.
Other Changes Copy Link
- 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[].formatif provided. Use a tooltip renderer to specify a tooltip specific format. - The
zoom-inandzoom-outicons have been changed. The previous ones are renamed tozoom-in-altandzoom-out-alt. - The zoom icons are now grouped. Use the
sectionoption 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 Copy Link
If you would like to see the full list of changes in this release, please see the Changelog.