-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use redux in favour of mobx (#281)
This commit remove MobX state manager and replace it with a Redux implementation. BREAKING CHANGE: `SpecId`,`AxisId`, `AnnotationId` types are down-casted to a `string` type. The `getSpecId`, `getAxisId` and `getAnnotationId` methods still exist and but return just the same passed string until deprecated in a future version. The spec ids, previously `id`, `axisId`,`annotationId` etc are now aligned to use the same prop name: `id`. The chart rendering status `data-ech-render-complete` and `data-ech-render-count` is no more at the root level of the `echChart` div, but on its child element: `echChartStatus`. The `Spec` has two new private properties called `chartType` and `specType`.
- Loading branch information
Showing
283 changed files
with
11,343 additions
and
9,397 deletions.
There are no files selected for viewing
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
Binary file modified
BIN
+368 Bytes
(100%)
...hart-stacked-with-separated-specs-same-naming-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3 Bytes
(100%)
...-tests-for-all-stories-area-chart-test-linear-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+15 Bytes
(100%)
...al-tests-for-all-stories-area-chart-test-time-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-812 Bytes
(98%)
...-for-all-stories-area-chart-w-axis-and-legend-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.28 KB
(97%)
...-tests-for-all-stories-area-chart-with-4-axes-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.32 KB
(110%)
...line-visual-tests-for-all-stories-axis-4-axes-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+380 Bytes
(100%)
...-customizing-domain-limits-mixed-linear-chart-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+5 KB
(120%)
...g-domain-limits-mixed-ordinal-linear-x-domain-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-76 Bytes
(99%)
...tomizing-domain-limits-only-one-bound-defined-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.57 KB
(110%)
...ests-for-all-stories-axis-tick-label-rotation-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-417 Bytes
(98%)
...or-all-stories-axis-with-multi-axis-bar-lines-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+281 Bytes
(100%)
...isual-tests-for-all-stories-bar-chart-1-y-1-g-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6 Bytes
(100%)
...isual-tests-for-all-stories-bar-chart-1-y-2-g-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-17 Bytes
(100%)
...isual-tests-for-all-stories-bar-chart-2-y-1-g-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7 Bytes
(100%)
...ies-bar-chart-clustered-multiple-series-specs-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-23 Bytes
(100%)
...ries-bar-chart-clustered-with-axis-and-legend-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7 Bytes
(100%)
...al-tests-for-all-stories-bar-chart-min-height-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11 KB
...l-stories-bar-chart-single-data-chart-ordinal-visually-looks-correct-2-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1 Byte
(100%)
...chart-test-clustered-bar-chart-with-null-bars-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+435 Bytes
(100%)
...r-all-stories-bar-chart-test-linear-clustered-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-81 Bytes
(99%)
...s-bar-chart-test-switch-ordinal-linear-x-axis-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-845 Bytes
(94%)
...for-all-stories-bar-chart-test-time-clustered-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-751 Bytes
(95%)
...ual-tests-for-all-stories-bar-chart-test-time-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3 Bytes
(100%)
...or-all-stories-bar-chart-with-axis-and-legend-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-81 Bytes
(99%)
...ual-tests-for-all-stories-bar-chart-with-axis-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.01 KB
(100%)
...r-all-stories-bar-chart-with-high-data-volume-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+102 Bytes
(100%)
...-for-all-stories-bar-chart-with-linear-x-axis-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-40 Bytes
(100%)
...for-all-stories-bar-chart-with-ordinal-x-axis-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+22 Bytes
(100%)
...ts-for-all-stories-bar-chart-with-value-label-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+32 Bytes
(100%)
...line-visual-tests-for-all-stories-grids-basic-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...es-grids-multiple-axes-with-the-same-position-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+993 Bytes
(100%)
...ies-interactions-area-point-clicks-and-hovers-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+11 Bytes
(100%)
...ll-stories-interactions-bar-clicks-and-hovers-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+263 Bytes
(100%)
...ions-brush-selection-tool-on-bar-chart-linear-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+14.8 KB
...brush-selection-tool-on-histogram-time-charts-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.32 KB
(110%)
...s-interactions-brush-selection-tool-on-linear-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+7.58 KB
(150%)
...eractions-brush-selection-tool-on-time-charts-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+10 Bytes
(100%)
...tions-click-hovers-on-legend-items-line-chart-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+11 Bytes
(100%)
...all-stories-interactions-cursor-update-action-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+70 Bytes
(100%)
...actions-line-area-bar-point-clicks-and-hovers-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1.28 KB
(95%)
...ies-interactions-line-point-clicks-and-hovers-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+80 Bytes
(100%)
...or-all-stories-interactions-png-export-action-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+11 Bytes
(100%)
...all-stories-interactions-render-change-action-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-286 Bytes
(99%)
...ne-visual-tests-for-all-stories-legend-bottom-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-682 Bytes
(99%)
...ries-legend-display-values-in-legend-elements-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+42 Bytes
(100%)
...-for-all-stories-legend-legend-spacing-buffer-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+155 Bytes
(100%)
...l-stories-line-chart-curved-w-axis-and-legend-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...es-with-log-values-limit-0-or-negative-values-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...stories-line-chart-multiple-w-axis-and-legend-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-4 Bytes
(100%)
...-stories-line-chart-stacked-w-axis-and-legend-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+16 Bytes
(100%)
...-for-all-stories-line-chart-w-axis-and-legend-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+76 Bytes
(100%)
...s-for-all-stories-mixed-charts-areas-and-bars-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+89 Bytes
(100%)
...-for-all-stories-mixed-charts-lines-and-areas-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+147 Bytes
(100%)
...ll-stories-mixed-charts-test-bar-lines-linear-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-10 Bytes
(100%)
...-all-stories-mixed-charts-test-bar-lines-time-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-35 Bytes
(100%)
...s-for-all-stories-rotations-with-ordinal-axis-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-63 Bytes
(100%)
...es-scales-line-chart-with-different-timezones-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-89 Bytes
(99%)
...or-all-stories-scales-remove-duplicate-scales-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-63 Bytes
(100%)
...es-scales-x-scale-utc-time-zone-local-tooltip-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-63 Bytes
(100%)
...ries-scales-x-scale-utc-time-zone-utc-tooltip-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-606 Bytes
(97%)
...-year-scale-custom-timezone-same-zone-tooltip-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+231 Bytes
(100%)
...ne-visual-tests-for-all-stories-stylings-axis-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-346 Bytes
(99%)
...for-all-stories-stylings-margins-and-paddings-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+499 Bytes
(100%)
...all-stories-stylings-style-accessor-overrides-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+1006 Bytes
(100%)
...al-tests-for-all-stories-stylings-theme-style-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+735 Bytes
(100%)
...ylings-tick-label-padding-both-prop-and-theme-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-68 Bytes
(100%)
...st-ts-area-series-stories-accessor-formats-should-show-custom-format-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+1.44 KB
(110%)
...napshots__/axis-stories-test-ts-axis-stories-should-hide-bottom-axis-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1.31 KB
(95%)
..._snapshots__/axis-stories-test-ts-axis-stories-should-hide-left-axis-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+8 Bytes
(100%)
...snapshots__/axis-stories-test-ts-axis-stories-should-hide-right-axis-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+1.02 KB
(100%)
...e_snapshots__/axis-stories-test-ts-axis-stories-should-hide-top-axis-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.38 KB
(110%)
...ories-test-ts-axis-stories-should-render-ticks-with-varied-rotations-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-81 Bytes
(99%)
...eries-stories-test-switch-ordinal-linear-x-axis-using-ordinal-x-axis-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+56 Bytes
(100%)
...shots__/legend-stories-test-ts-legend-stories-should-0-legend-buffer-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-73 Bytes
(100%)
...d-stories-test-ts-legend-stories-should-hide-line-series-legend-item-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-144 Bytes
(99%)
...hots__/line-stories-test-ts-line-series-stories-rotation-rotation-90-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2 Bytes
(100%)
...ne-stories-test-ts-line-series-stories-rotation-rotation-negative-90-1-snap.png
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { $Values } from 'utility-types'; | ||
|
||
export const ChartTypes = Object.freeze({ | ||
Global: 'global' as 'global', | ||
Pie: 'pie' as 'pie', | ||
XYAxis: 'xy_axis' as 'xy_axis', | ||
}); | ||
|
||
export type ChartTypes = $Values<typeof ChartTypes>; |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export { | ||
AreaSeries, | ||
BarSeries, | ||
LineSeries, | ||
Axis, | ||
LineAnnotation, | ||
RectAnnotation, | ||
HistogramBarSeries, | ||
} from './xy_chart/specs'; |
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
Oops, something went wrong.