Range Charts from Cell Selection
The user selects a cell range and creates a chart from it via the context menu or toolbar. WarGrid infers categories and series from the selection, then renders the chart through the registered adapter. The chart can be opened in a docked panel or a floating window.
Planned. This page shows the specification from issue #198. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Flat grid of products × quarters with range selection enabled and the reference adapter registered.
Expected behavior
Selecting a range and choosing 'Chart range' renders a chart. Switching orientation swaps categories and series. Non-numeric cells in the value area are excluded with a notice.
Planned API surface
enableRangeChartscreateRangeChart()rangeChart.typerangeChart.categoryColumnrangeChart.seriesOrientationrangeChart.containeronRangeChartCreatedcloseChart()Acceptance criteria
- The category column is inferred as the first non-numeric column in the selection unless set explicitly. (pending)
- Series names come from the column headers. (pending)
- Multi-range selections are combined when their shapes are compatible, and rejected with a message otherwise. (pending)
- Pie charts with multiple series use only the first series and show a notice. (pending)