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:
@@ -19,8 +19,8 @@ const G = require('../lib/browserGlobals').get('document', 'DOMParser');
|
||||
* If an upperPos is not given, return consecutive values greater than lowerPos
|
||||
* If a lowerPos is not given, return consecutive values lower than upperPos
|
||||
* Else return the avg position of to-be neighboring elements.
|
||||
* Ex: insertPositions(null, 0, 4) = [1, 2, 3, 4]
|
||||
* insertPositions(0, null, 4) = [-4, -3, -2, -1]
|
||||
* Ex: insertPositions(null, 0, 4) = [-4, -3, -2, -1]
|
||||
* insertPositions(0, null, 4) = [1, 2, 3, 4]
|
||||
* insertPositions(0, 1, 4) = [0.2, 0.4, 0.6, 0.8]
|
||||
*/
|
||||
function insertPositions(lowerPos, upperPos, numInserts) {
|
||||
|
||||
Reference in New Issue
Block a user