mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) add 'Aggregate Values' option to chart config
Summary:
- adds the `aggregate values` option to chart config
- aggregation is performed by turning table into summary table
- change columns options of xaxis and split series selectors to be the source table columns when `aggregate values` is on
- change xAxis and split series computed to hold colId instead of column id
- change GristDoc saveViewSection routine to preserve old sections viewFields and options
- Rename `Group data` into `split series`
quip doc: https://grist.quip.com/tAsCAuv8RiMa/Charts-data-aggregation#temp:C:QcK0ce13e1e8ae64048988f44f9c
Test Plan: Adds ChartAggregate.ts nbrowser test.
Reviewers: jarek
Reviewed By: jarek
Differential Revision: https://phab.getgrist.com/D3336
This commit is contained in:
@@ -1654,6 +1654,13 @@ export async function addColumn(name: string) {
|
||||
await waitForServer();
|
||||
}
|
||||
|
||||
export async function showColumn(name: string) {
|
||||
await scrollIntoView(await driver.find('.active_section .mod-add-column'));
|
||||
await driver.find('.active_section .mod-add-column').click();
|
||||
await driver.findContent('.grist-floating-menu li', `Show column ${name}`).click();
|
||||
await waitForServer();
|
||||
}
|
||||
|
||||
// Select a range of columns, clicking on col1 and dragging to col2.
|
||||
export async function selectColumnRange(col1: string, col2: string) {
|
||||
await getColumnHeader({col: col1}).mouseMove();
|
||||
|
||||
Reference in New Issue
Block a user