Your users ask to see numbers drawn, and Gridsay fills the grid's open chart: the categories on its axis, the values it draws, and the grouping and totals that produce those numbers.
Chart total salary by department
group departmenttotal salary: sumchart dimensions: department; values: salaryChart total salary and total rating by department as two series
group departmenttotal salary: sumtotal rating: sumchart dimensions: department; values: salary, ratingA chart over a pivot:
Chart total salary by department across countries as a pivot table
pivot rows: departmentpivot columns: country, ascendingpivot values: salary sumchart dimensions: department; values: salaryThe chart draws what the grid shows, so a chart answer also sets the grouping and totals, or the pivot, behind it.
The chart is MUI's, beside the grid. Gridsay fills it; it cannot create it.
| Setting | With MUI's stock resolver | With the Gridsay helper |
|---|---|---|
| MUI's charts integration, set up with a chart open | Required. Without an open chart, a chart answer changes the grid but draws nothing. | Required. Without an open chart, Gridsay knows there is none and declines a chart question. |
| The chart type (bar, line, pie) | Chosen by your user in the charts panel. A question cannot change it: Gridsay charts the data and leaves the type. | The same. |
| A follow-up that changes the measure | The chart can write an older aggregation back over the answer. | The aggregation the answer asked for stays. |
With the helper and no chart open:
Chart total salary by department
Charts are turned off for this grid; try a table of total salary by department.
Your user reads this sentence. The table stays as it was.If an answer still fills a chart after one correction, the sentence is "This table has no chart."
Removing, hiding or creating a chart is outside what an answer can do, so a question asking for it is declined. Your app's own controls do that.