This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update data format returned from query api and add getGroupBys (#…
…72) * fix: update data format returned from query api * fix: format * fix: remove unnecessary type * fix: remove hack prior to typescript 3.4
- Loading branch information
Showing
10 changed files
with
367 additions
and
361 deletions.
There are no files selected for viewing
447 changes: 222 additions & 225 deletions
447
packages/superset-ui-plugins-demo/storybook/stories/preset-chart-xy/Line/data/data.js
Large diffs are not rendered by default.
Oops, something went wrong.
183 changes: 90 additions & 93 deletions
183
packages/superset-ui-plugins-demo/storybook/stories/preset-chart-xy/Line/data/data2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,91 @@ | ||
/* eslint-disable sort-keys, no-magic-numbers */ | ||
export default { | ||
keys: ['snapshot', 'x', 'y'], | ||
values: [ | ||
{ x: -157766400000, y: 24703, snapshot: 'Last year' }, | ||
{ x: -126230400000, y: 27861, snapshot: 'Last year' }, | ||
{ x: -94694400000, y: 29436, snapshot: 'Last year' }, | ||
{ x: -63158400000, y: 31463, snapshot: 'Last year' }, | ||
{ x: -31536000000, y: 35718, snapshot: 'Last year' }, | ||
{ x: 0, y: 41758, snapshot: 'Last year' }, | ||
{ x: 31536000000, y: 48172, snapshot: 'Last year' }, | ||
{ x: 63072000000, y: 52092, snapshot: 'Last year' }, | ||
{ x: 94694400000, y: 48217, snapshot: 'Last year' }, | ||
{ x: 126230400000, y: 48476, snapshot: 'Last year' }, | ||
{ x: 157766400000, y: 46438, snapshot: 'Last year' }, | ||
{ x: 189302400000, y: 45086, snapshot: 'Last year' }, | ||
{ x: 220924800000, y: 46610, snapshot: 'Last year' }, | ||
{ x: 252460800000, y: 47107, snapshot: 'Last year' }, | ||
{ x: 283996800000, y: 50514, snapshot: 'Last year' }, | ||
{ x: 315532800000, y: 48969, snapshot: 'Last year' }, | ||
{ x: 347155200000, y: 50108, snapshot: 'Last year' }, | ||
{ x: 378691200000, y: 59055, snapshot: 'Last year' }, | ||
{ x: 410227200000, y: 59188, snapshot: 'Last year' }, | ||
{ x: 441763200000, y: 59859, snapshot: 'Last year' }, | ||
{ x: 473385600000, y: 59516, snapshot: 'Last year' }, | ||
{ x: 504921600000, y: 56633, snapshot: 'Last year' }, | ||
{ x: 536457600000, y: 54466, snapshot: 'Last year' }, | ||
{ x: 567993600000, y: 52996, snapshot: 'Last year' }, | ||
{ x: 599616000000, y: 53205, snapshot: 'Last year' }, | ||
{ x: 631152000000, y: 52322, snapshot: 'Last year' }, | ||
{ x: 662688000000, y: 47109, snapshot: 'Last year' }, | ||
{ x: 694224000000, y: 42470, snapshot: 'Last year' }, | ||
{ x: 725846400000, y: 38257, snapshot: 'Last year' }, | ||
{ x: 757382400000, y: 34823, snapshot: 'Last year' }, | ||
{ x: 788918400000, y: 32728, snapshot: 'Last year' }, | ||
{ x: 820454400000, y: 30988, snapshot: 'Last year' }, | ||
{ x: 852076800000, y: 29179, snapshot: 'Last year' }, | ||
{ x: 883612800000, y: 27083, snapshot: 'Last year' }, | ||
{ x: 915148800000, y: 25700, snapshot: 'Last year' }, | ||
{ x: 946684800000, y: 24959, snapshot: 'Last year' }, | ||
{ x: 978307200000, y: 23180, snapshot: 'Last year' }, | ||
{ x: 1009843200000, y: 21731, snapshot: 'Last year' }, | ||
{ x: 1041379200000, y: 20793, snapshot: 'Last year' }, | ||
{ x: 1072915200000, y: 19739, snapshot: 'Last year' }, | ||
{ x: 1104537600000, y: 19190, snapshot: 'Last year' }, | ||
{ x: 1136073600000, y: 19674, snapshot: 'Last year' }, | ||
{ x: 1167609600000, y: 19986, snapshot: 'Last year' }, | ||
{ x: 1199145600000, y: 17771, snapshot: 'Last year' }, | ||
{ x: -157766400000, y: 80812, snapshot: 'Current' }, | ||
{ x: -126230400000, y: 79709, snapshot: 'Current' }, | ||
{ x: -94694400000, y: 82204, snapshot: 'Current' }, | ||
{ x: -63158400000, y: 81785, snapshot: 'Current' }, | ||
{ x: -31536000000, y: 84893, snapshot: 'Current' }, | ||
{ x: 0, y: 85015, snapshot: 'Current' }, | ||
{ x: 31536000000, y: 77321, snapshot: 'Current' }, | ||
{ x: 63072000000, y: 71197, snapshot: 'Current' }, | ||
{ x: 94694400000, y: 67598, snapshot: 'Current' }, | ||
{ x: 126230400000, y: 67304, snapshot: 'Current' }, | ||
{ x: 157766400000, y: 68149, snapshot: 'Current' }, | ||
{ x: 189302400000, y: 66686, snapshot: 'Current' }, | ||
{ x: 220924800000, y: 67344, snapshot: 'Current' }, | ||
{ x: 252460800000, y: 66875, snapshot: 'Current' }, | ||
{ x: 283996800000, y: 67473, snapshot: 'Current' }, | ||
{ x: 315532800000, y: 68375, snapshot: 'Current' }, | ||
{ x: 347155200000, y: 68467, snapshot: 'Current' }, | ||
{ x: 378691200000, y: 67904, snapshot: 'Current' }, | ||
{ x: 410227200000, y: 67708, snapshot: 'Current' }, | ||
{ x: 441763200000, y: 67457, snapshot: 'Current' }, | ||
{ x: 473385600000, y: 64667, snapshot: 'Current' }, | ||
{ x: 504921600000, y: 63959, snapshot: 'Current' }, | ||
{ x: 536457600000, y: 63442, snapshot: 'Current' }, | ||
{ x: 567993600000, y: 63924, snapshot: 'Current' }, | ||
{ x: 599616000000, y: 65233, snapshot: 'Current' }, | ||
{ x: 631152000000, y: 65138, snapshot: 'Current' }, | ||
{ x: 662688000000, y: 60646, snapshot: 'Current' }, | ||
{ x: 694224000000, y: 54216, snapshot: 'Current' }, | ||
{ x: 725846400000, y: 49443, snapshot: 'Current' }, | ||
{ x: 757382400000, y: 44361, snapshot: 'Current' }, | ||
{ x: 788918400000, y: 41311, snapshot: 'Current' }, | ||
{ x: 820454400000, y: 38284, snapshot: 'Current' }, | ||
{ x: 852076800000, y: 37459, snapshot: 'Current' }, | ||
{ x: 883612800000, y: 36525, snapshot: 'Current' }, | ||
{ x: 915148800000, y: 33820, snapshot: 'Current' }, | ||
{ x: 946684800000, y: 31956, snapshot: 'Current' }, | ||
{ x: 978307200000, y: 29612, snapshot: 'Current' }, | ||
{ x: 1009843200000, y: 28156, snapshot: 'Current' }, | ||
{ x: 1041379200000, y: 27031, snapshot: 'Current' }, | ||
{ x: 1072915200000, y: 25418, snapshot: 'Current' }, | ||
{ x: 1104537600000, y: 23678, snapshot: 'Current' }, | ||
{ x: 1136073600000, y: 22498, snapshot: 'Current' }, | ||
{ x: 1167609600000, y: 21805, snapshot: 'Current' }, | ||
{ x: 1199145600000, y: 20271, snapshot: 'Current' }, | ||
], | ||
}; | ||
export default [ | ||
{ x: -157766400000, y: 24703, snapshot: 'Last year' }, | ||
{ x: -126230400000, y: 27861, snapshot: 'Last year' }, | ||
{ x: -94694400000, y: 29436, snapshot: 'Last year' }, | ||
{ x: -63158400000, y: 31463, snapshot: 'Last year' }, | ||
{ x: -31536000000, y: 35718, snapshot: 'Last year' }, | ||
{ x: 0, y: 41758, snapshot: 'Last year' }, | ||
{ x: 31536000000, y: 48172, snapshot: 'Last year' }, | ||
{ x: 63072000000, y: 52092, snapshot: 'Last year' }, | ||
{ x: 94694400000, y: 48217, snapshot: 'Last year' }, | ||
{ x: 126230400000, y: 48476, snapshot: 'Last year' }, | ||
{ x: 157766400000, y: 46438, snapshot: 'Last year' }, | ||
{ x: 189302400000, y: 45086, snapshot: 'Last year' }, | ||
{ x: 220924800000, y: 46610, snapshot: 'Last year' }, | ||
{ x: 252460800000, y: 47107, snapshot: 'Last year' }, | ||
{ x: 283996800000, y: 50514, snapshot: 'Last year' }, | ||
{ x: 315532800000, y: 48969, snapshot: 'Last year' }, | ||
{ x: 347155200000, y: 50108, snapshot: 'Last year' }, | ||
{ x: 378691200000, y: 59055, snapshot: 'Last year' }, | ||
{ x: 410227200000, y: 59188, snapshot: 'Last year' }, | ||
{ x: 441763200000, y: 59859, snapshot: 'Last year' }, | ||
{ x: 473385600000, y: 59516, snapshot: 'Last year' }, | ||
{ x: 504921600000, y: 56633, snapshot: 'Last year' }, | ||
{ x: 536457600000, y: 54466, snapshot: 'Last year' }, | ||
{ x: 567993600000, y: 52996, snapshot: 'Last year' }, | ||
{ x: 599616000000, y: 53205, snapshot: 'Last year' }, | ||
{ x: 631152000000, y: 52322, snapshot: 'Last year' }, | ||
{ x: 662688000000, y: 47109, snapshot: 'Last year' }, | ||
{ x: 694224000000, y: 42470, snapshot: 'Last year' }, | ||
{ x: 725846400000, y: 38257, snapshot: 'Last year' }, | ||
{ x: 757382400000, y: 34823, snapshot: 'Last year' }, | ||
{ x: 788918400000, y: 32728, snapshot: 'Last year' }, | ||
{ x: 820454400000, y: 30988, snapshot: 'Last year' }, | ||
{ x: 852076800000, y: 29179, snapshot: 'Last year' }, | ||
{ x: 883612800000, y: 27083, snapshot: 'Last year' }, | ||
{ x: 915148800000, y: 25700, snapshot: 'Last year' }, | ||
{ x: 946684800000, y: 24959, snapshot: 'Last year' }, | ||
{ x: 978307200000, y: 23180, snapshot: 'Last year' }, | ||
{ x: 1009843200000, y: 21731, snapshot: 'Last year' }, | ||
{ x: 1041379200000, y: 20793, snapshot: 'Last year' }, | ||
{ x: 1072915200000, y: 19739, snapshot: 'Last year' }, | ||
{ x: 1104537600000, y: 19190, snapshot: 'Last year' }, | ||
{ x: 1136073600000, y: 19674, snapshot: 'Last year' }, | ||
{ x: 1167609600000, y: 19986, snapshot: 'Last year' }, | ||
{ x: 1199145600000, y: 17771, snapshot: 'Last year' }, | ||
{ x: -157766400000, y: 80812, snapshot: 'Current' }, | ||
{ x: -126230400000, y: 79709, snapshot: 'Current' }, | ||
{ x: -94694400000, y: 82204, snapshot: 'Current' }, | ||
{ x: -63158400000, y: 81785, snapshot: 'Current' }, | ||
{ x: -31536000000, y: 84893, snapshot: 'Current' }, | ||
{ x: 0, y: 85015, snapshot: 'Current' }, | ||
{ x: 31536000000, y: 77321, snapshot: 'Current' }, | ||
{ x: 63072000000, y: 71197, snapshot: 'Current' }, | ||
{ x: 94694400000, y: 67598, snapshot: 'Current' }, | ||
{ x: 126230400000, y: 67304, snapshot: 'Current' }, | ||
{ x: 157766400000, y: 68149, snapshot: 'Current' }, | ||
{ x: 189302400000, y: 66686, snapshot: 'Current' }, | ||
{ x: 220924800000, y: 67344, snapshot: 'Current' }, | ||
{ x: 252460800000, y: 66875, snapshot: 'Current' }, | ||
{ x: 283996800000, y: 67473, snapshot: 'Current' }, | ||
{ x: 315532800000, y: 68375, snapshot: 'Current' }, | ||
{ x: 347155200000, y: 68467, snapshot: 'Current' }, | ||
{ x: 378691200000, y: 67904, snapshot: 'Current' }, | ||
{ x: 410227200000, y: 67708, snapshot: 'Current' }, | ||
{ x: 441763200000, y: 67457, snapshot: 'Current' }, | ||
{ x: 473385600000, y: 64667, snapshot: 'Current' }, | ||
{ x: 504921600000, y: 63959, snapshot: 'Current' }, | ||
{ x: 536457600000, y: 63442, snapshot: 'Current' }, | ||
{ x: 567993600000, y: 63924, snapshot: 'Current' }, | ||
{ x: 599616000000, y: 65233, snapshot: 'Current' }, | ||
{ x: 631152000000, y: 65138, snapshot: 'Current' }, | ||
{ x: 662688000000, y: 60646, snapshot: 'Current' }, | ||
{ x: 694224000000, y: 54216, snapshot: 'Current' }, | ||
{ x: 725846400000, y: 49443, snapshot: 'Current' }, | ||
{ x: 757382400000, y: 44361, snapshot: 'Current' }, | ||
{ x: 788918400000, y: 41311, snapshot: 'Current' }, | ||
{ x: 820454400000, y: 38284, snapshot: 'Current' }, | ||
{ x: 852076800000, y: 37459, snapshot: 'Current' }, | ||
{ x: 883612800000, y: 36525, snapshot: 'Current' }, | ||
{ x: 915148800000, y: 33820, snapshot: 'Current' }, | ||
{ x: 946684800000, y: 31956, snapshot: 'Current' }, | ||
{ x: 978307200000, y: 29612, snapshot: 'Current' }, | ||
{ x: 1009843200000, y: 28156, snapshot: 'Current' }, | ||
{ x: 1041379200000, y: 27031, snapshot: 'Current' }, | ||
{ x: 1072915200000, y: 25418, snapshot: 'Current' }, | ||
{ x: 1104537600000, y: 23678, snapshot: 'Current' }, | ||
{ x: 1136073600000, y: 22498, snapshot: 'Current' }, | ||
{ x: 1167609600000, y: 21805, snapshot: 'Current' }, | ||
{ x: 1199145600000, y: 20271, snapshot: 'Current' }, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters