mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) New chart view axis conf with picker for each of X,Y and group by
Summary: Chart view used to rely on the same view field configuration as used in any other widget. This diff allows to explicitely select X-AXIS, Y-AXIS and group by column with column picker. As charts supports several y-axis, we still use a draggable list to arrange them. Diff also fix doc to the `insertPositions` function. Test Plan: Updated the relevant test. Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3021
This commit is contained in:
@@ -8,7 +8,7 @@ var koArray = require('../lib/koArray');
|
||||
var SummaryConfig = require('./SummaryConfig');
|
||||
var commands = require('./commands');
|
||||
var {CustomSectionElement} = require('../lib/CustomSectionElement');
|
||||
const {buildChartConfigDom} = require('./ChartView');
|
||||
const {ChartConfig} = require('./ChartView');
|
||||
const {Computed, dom: grainjsDom, makeTestId, Observable, styled} = require('grainjs');
|
||||
|
||||
const {addToSort, flipColDirection, parseSortColRefs} = require('app/client/lib/sortUtil');
|
||||
@@ -608,7 +608,7 @@ ViewConfigTab.prototype._buildGridStyleDom = function() {
|
||||
};
|
||||
|
||||
ViewConfigTab.prototype._buildChartConfigDom = function() {
|
||||
return grainjsDom.maybe(this.viewModel.activeSection, buildChartConfigDom);
|
||||
return grainjsDom.maybe(this.viewModel.activeSection, (section) => grainjsDom.create(ChartConfig, this.gristDoc, section));
|
||||
};
|
||||
|
||||
ViewConfigTab.prototype._buildLayoutDom = function() {
|
||||
|
||||
Reference in New Issue
Block a user