Skip to content
OGE logoOGE

Chart Integration

getChartData() turns the current pivot view into dataSource + series for <oge-chart>: one argument per visible row line, one series per column line × measure. Expanding, collapsing, filtering or re-pivoting fires resultChange, so a linked chart follows the grid; a clicked row narrows the chart to that row.

getChartData resultChange toChartSeries selection
expand state cell click selection bar / stacked / line
Expand a region, click a value cell to chart that row only (click a grand-total cell to reset).
2022
2023
2024
2025
Grand Total
$136,400
$188,419
$135,938
$188,881
$649,638
$125,356
$125,818
$126,280
$125,818
$503,272
$147,944
$260,363
$154,282
$257,201
$819,790
Grand Total
$409,700
$574,600
$416,500
$571,900
$1,972,700
Amount by region
Americas Asia Europe 0 50K 100K 150K 200K 250K
Chart data
Argument2022202320242025
Americas136,400188,419135,938188,881
Asia125,356125,818126,280125,818
Europe147,944260,363154,282257,201

Notes

  • Options: argumentAxis ('row' / 'column'), measures, includeTotals / includeGrandTotals, argumentIndexes / seriesIndexes (a selection), type and pathSeparator.
  • The adapter is toChartSeries(result) in @oge-ui/pivot-engine — plain data, no chart import — so the commercial pivot packages keep no dependency on @oge-ui/charts.
  • Calculated measures (see Calculated Fields) chart like any other measure.