@carbon/charts 0.41.20 → 0.41.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -46
- package/axis-chart.d.ts +4 -4
- package/axis-chart.js +46 -46
- package/axis-chart.js.map +1 -1
- package/build/demo/create-codesandbox.d.ts +42 -42
- package/build/demo/data/bar.d.ts +2 -2
- package/build/demo/data/index.d.ts +13 -13
- package/build/demo/data/line.d.ts +4 -4
- package/build/demo/data/meter.d.ts +1 -1
- package/build/src/axis-chart.d.ts +4 -4
- package/build/src/chart.d.ts +3 -3
- package/build/src/charts/area-stacked.d.ts +2 -2
- package/build/src/charts/area.d.ts +2 -2
- package/build/src/charts/bar-grouped.d.ts +2 -2
- package/build/src/charts/bar-simple.d.ts +2 -2
- package/build/src/charts/bar-stacked.d.ts +2 -2
- package/build/src/charts/bubble.d.ts +2 -2
- package/build/src/charts/combo.d.ts +2 -2
- package/build/src/charts/donut.d.ts +2 -2
- package/build/src/charts/gauge.d.ts +3 -3
- package/build/src/charts/index.d.ts +16 -16
- package/build/src/charts/line.d.ts +2 -2
- package/build/src/charts/lollipop.d.ts +2 -2
- package/build/src/charts/meter.d.ts +3 -3
- package/build/src/charts/pie.d.ts +3 -3
- package/build/src/charts/radar.d.ts +2 -2
- package/build/src/charts/scatter.d.ts +2 -2
- package/build/src/charts/treemap.d.ts +2 -2
- package/build/src/components/axes/axis.d.ts +3 -3
- package/build/src/components/axes/chart-clip.d.ts +2 -2
- package/build/src/components/axes/grid-brush.d.ts +1 -1
- package/build/src/components/axes/grid.d.ts +1 -1
- package/build/src/components/axes/ruler-stacked.d.ts +1 -1
- package/build/src/components/axes/ruler.d.ts +2 -2
- package/build/src/components/axes/toolbar.d.ts +2 -2
- package/build/src/components/axes/two-dimensional-axes.d.ts +2 -2
- package/build/src/components/axes/zero-line.d.ts +1 -1
- package/build/src/components/axes/zoom-bar.d.ts +2 -2
- package/build/src/components/component.d.ts +1 -1
- package/build/src/components/essentials/legend.d.ts +1 -1
- package/build/src/components/essentials/threshold.d.ts +3 -3
- package/build/src/components/essentials/title-meter.d.ts +1 -1
- package/build/src/components/essentials/title.d.ts +1 -1
- package/build/src/components/essentials/tooltip-axis.d.ts +1 -1
- package/build/src/components/essentials/tooltip.d.ts +3 -3
- package/build/src/components/graphs/area-stacked.d.ts +1 -1
- package/build/src/components/graphs/area.d.ts +1 -1
- package/build/src/components/graphs/bar-grouped.d.ts +2 -2
- package/build/src/components/graphs/bar-simple.d.ts +1 -1
- package/build/src/components/graphs/bar-stacked.d.ts +1 -1
- package/build/src/components/graphs/bar.d.ts +1 -1
- package/build/src/components/graphs/bubble.d.ts +2 -2
- package/build/src/components/graphs/donut.d.ts +1 -1
- package/build/src/components/graphs/gauge.d.ts +1 -1
- package/build/src/components/graphs/line.d.ts +1 -1
- package/build/src/components/graphs/lollipop.d.ts +1 -1
- package/build/src/components/graphs/meter.d.ts +1 -1
- package/build/src/components/graphs/pie.d.ts +1 -1
- package/build/src/components/graphs/radar.d.ts +1 -1
- package/build/src/components/graphs/scatter-stacked.d.ts +1 -1
- package/build/src/components/graphs/scatter.d.ts +2 -2
- package/build/src/components/graphs/skeleton-lines.d.ts +1 -1
- package/build/src/components/graphs/skeleton.d.ts +1 -1
- package/build/src/components/graphs/treemap.d.ts +1 -1
- package/build/src/components/index.d.ts +36 -36
- package/build/src/components/layout/layout.d.ts +3 -3
- package/build/src/components/layout/spacer.d.ts +1 -1
- package/build/src/configuration-non-customizable.d.ts +7 -7
- package/build/src/configuration.d.ts +2 -2
- package/build/src/interfaces/axis-scales.d.ts +7 -7
- package/build/src/interfaces/charts.d.ts +11 -4
- package/build/src/interfaces/components.d.ts +3 -3
- package/build/src/interfaces/enums.d.ts +1 -1
- package/build/src/interfaces/index.d.ts +7 -7
- package/build/src/interfaces/layout.d.ts +1 -1
- package/build/src/interfaces/model.d.ts +1 -1
- package/build/src/model-cartesian-charts.d.ts +1 -1
- package/build/src/model-gauge.d.ts +1 -1
- package/build/src/model-meter.d.ts +1 -1
- package/build/src/model-pie.d.ts +1 -1
- package/build/src/model.d.ts +1 -9
- package/build/src/services/angle-utils.d.ts +1 -1
- package/build/src/services/curves.d.ts +2 -2
- package/build/src/services/essentials/dom-utils.d.ts +2 -2
- package/build/src/services/essentials/events.d.ts +1 -1
- package/build/src/services/essentials/gradient-utils.d.ts +1 -1
- package/build/src/services/essentials/transitions.d.ts +2 -2
- package/build/src/services/index.d.ts +7 -7
- package/build/src/services/scales-cartesian.d.ts +2 -2
- package/build/src/services/service.d.ts +1 -1
- package/build/src/services/time-series.d.ts +1 -1
- package/build/src/services/zoom.d.ts +2 -2
- package/build/src/tools.d.ts +2 -2
- package/build/stories/all.stories.d.ts +1 -1
- package/build/stories/tutorials/index.d.ts +11 -11
- package/build/stories/tutorials.stories.d.ts +1 -1
- package/bundle.js +1 -1
- package/chart.d.ts +3 -3
- package/chart.js +35 -35
- package/chart.js.map +1 -1
- package/charts/area-stacked.d.ts +2 -2
- package/charts/area-stacked.js +8 -8
- package/charts/area-stacked.js.map +1 -1
- package/charts/area.d.ts +2 -2
- package/charts/area.js +8 -8
- package/charts/area.js.map +1 -1
- package/charts/bar-grouped.d.ts +2 -2
- package/charts/bar-grouped.js +7 -7
- package/charts/bar-grouped.js.map +1 -1
- package/charts/bar-simple.d.ts +2 -2
- package/charts/bar-simple.js +7 -7
- package/charts/bar-simple.js.map +1 -1
- package/charts/bar-stacked.d.ts +2 -2
- package/charts/bar-stacked.js +7 -7
- package/charts/bar-stacked.js.map +1 -1
- package/charts/bubble.d.ts +2 -2
- package/charts/bubble.js +7 -7
- package/charts/bubble.js.map +1 -1
- package/charts/combo.d.ts +2 -2
- package/charts/combo.js +12 -12
- package/charts/combo.js.map +1 -1
- package/charts/donut.d.ts +2 -2
- package/charts/donut.js +7 -7
- package/charts/donut.js.map +1 -1
- package/charts/gauge.d.ts +3 -3
- package/charts/gauge.js +5 -5
- package/charts/gauge.js.map +1 -1
- package/charts/index.d.ts +16 -16
- package/charts/index.js +16 -16
- package/charts/index.js.map +1 -1
- package/charts/line.d.ts +2 -2
- package/charts/line.js +5 -5
- package/charts/line.js.map +1 -1
- package/charts/lollipop.d.ts +2 -2
- package/charts/lollipop.js +7 -7
- package/charts/lollipop.js.map +1 -1
- package/charts/meter.d.ts +3 -3
- package/charts/meter.js +18 -18
- package/charts/meter.js.map +1 -1
- package/charts/pie.d.ts +3 -3
- package/charts/pie.js +8 -8
- package/charts/pie.js.map +1 -1
- package/charts/radar.d.ts +2 -2
- package/charts/radar.js +5 -5
- package/charts/radar.js.map +1 -1
- package/charts/scatter.d.ts +2 -2
- package/charts/scatter.js +7 -7
- package/charts/scatter.js.map +1 -1
- package/charts/treemap.d.ts +2 -2
- package/charts/treemap.js +4 -4
- package/charts/treemap.js.map +1 -1
- package/components/axes/axis.d.ts +3 -3
- package/components/axes/axis.js +98 -98
- package/components/axes/axis.js.map +1 -1
- package/components/axes/chart-clip.d.ts +2 -2
- package/components/axes/chart-clip.js +9 -9
- package/components/axes/chart-clip.js.map +1 -1
- package/components/axes/grid-brush.d.ts +1 -1
- package/components/axes/grid-brush.js +32 -32
- package/components/axes/grid-brush.js.map +1 -1
- package/components/axes/grid.d.ts +1 -1
- package/components/axes/grid.js +34 -34
- package/components/axes/grid.js.map +1 -1
- package/components/axes/ruler-stacked.d.ts +1 -1
- package/components/axes/ruler-stacked.js +5 -5
- package/components/axes/ruler-stacked.js.map +1 -1
- package/components/axes/ruler.d.ts +2 -2
- package/components/axes/ruler.js +36 -36
- package/components/axes/ruler.js.map +1 -1
- package/components/axes/toolbar.d.ts +2 -2
- package/components/axes/toolbar.js +85 -85
- package/components/axes/toolbar.js.map +1 -1
- package/components/axes/two-dimensional-axes.d.ts +2 -2
- package/components/axes/two-dimensional-axes.js +13 -13
- package/components/axes/two-dimensional-axes.js.map +1 -1
- package/components/axes/zero-line.d.ts +1 -1
- package/components/axes/zero-line.js +12 -12
- package/components/axes/zero-line.js.map +1 -1
- package/components/axes/zoom-bar.d.ts +2 -2
- package/components/axes/zoom-bar.js +114 -114
- package/components/axes/zoom-bar.js.map +1 -1
- package/components/component.d.ts +1 -1
- package/components/component.js +13 -13
- package/components/component.js.map +1 -1
- package/components/essentials/legend.d.ts +1 -1
- package/components/essentials/legend.js +95 -92
- package/components/essentials/legend.js.map +1 -1
- package/components/essentials/threshold.d.ts +3 -3
- package/components/essentials/threshold.js +39 -39
- package/components/essentials/threshold.js.map +1 -1
- package/components/essentials/title-meter.d.ts +1 -1
- package/components/essentials/title-meter.js +42 -42
- package/components/essentials/title-meter.js.map +1 -1
- package/components/essentials/title.d.ts +1 -1
- package/components/essentials/title.js +19 -19
- package/components/essentials/title.js.map +1 -1
- package/components/essentials/tooltip-axis.d.ts +1 -1
- package/components/essentials/tooltip-axis.js +23 -23
- package/components/essentials/tooltip-axis.js.map +1 -1
- package/components/essentials/tooltip.d.ts +3 -3
- package/components/essentials/tooltip.js +31 -31
- package/components/essentials/tooltip.js.map +1 -1
- package/components/graphs/area-stacked.d.ts +1 -1
- package/components/graphs/area-stacked.js +28 -29
- package/components/graphs/area-stacked.js.map +1 -1
- package/components/graphs/area.d.ts +1 -1
- package/components/graphs/area.js +62 -57
- package/components/graphs/area.js.map +1 -1
- package/components/graphs/bar-grouped.d.ts +2 -2
- package/components/graphs/bar-grouped.js +56 -56
- package/components/graphs/bar-grouped.js.map +1 -1
- package/components/graphs/bar-simple.d.ts +1 -1
- package/components/graphs/bar-simple.js +45 -45
- package/components/graphs/bar-simple.js.map +1 -1
- package/components/graphs/bar-stacked.d.ts +1 -1
- package/components/graphs/bar-stacked.js +50 -51
- package/components/graphs/bar-stacked.js.map +1 -1
- package/components/graphs/bar.d.ts +1 -1
- package/components/graphs/bar.js +4 -4
- package/components/graphs/bar.js.map +1 -1
- package/components/graphs/bubble.d.ts +2 -2
- package/components/graphs/bubble.js +19 -19
- package/components/graphs/bubble.js.map +1 -1
- package/components/graphs/donut.d.ts +1 -1
- package/components/graphs/donut.js +20 -20
- package/components/graphs/donut.js.map +1 -1
- package/components/graphs/gauge.d.ts +1 -1
- package/components/graphs/gauge.js +89 -87
- package/components/graphs/gauge.js.map +1 -1
- package/components/graphs/line.d.ts +1 -1
- package/components/graphs/line.js +33 -33
- package/components/graphs/line.js.map +1 -1
- package/components/graphs/lollipop.d.ts +1 -1
- package/components/graphs/lollipop.js +32 -32
- package/components/graphs/lollipop.js.map +1 -1
- package/components/graphs/meter.d.ts +1 -1
- package/components/graphs/meter.js +39 -39
- package/components/graphs/meter.js.map +1 -1
- package/components/graphs/pie.d.ts +1 -1
- package/components/graphs/pie.js +102 -100
- package/components/graphs/pie.js.map +1 -1
- package/components/graphs/radar.d.ts +1 -1
- package/components/graphs/radar.js +180 -180
- package/components/graphs/radar.js.map +1 -1
- package/components/graphs/scatter-stacked.d.ts +1 -1
- package/components/graphs/scatter-stacked.js +22 -22
- package/components/graphs/scatter-stacked.js.map +1 -1
- package/components/graphs/scatter.d.ts +2 -2
- package/components/graphs/scatter.js +67 -66
- package/components/graphs/scatter.js.map +1 -1
- package/components/graphs/skeleton-lines.d.ts +1 -1
- package/components/graphs/skeleton-lines.js +27 -27
- package/components/graphs/skeleton-lines.js.map +1 -1
- package/components/graphs/skeleton.d.ts +1 -1
- package/components/graphs/skeleton.js +85 -85
- package/components/graphs/skeleton.js.map +1 -1
- package/components/graphs/treemap.d.ts +1 -1
- package/components/graphs/treemap.js +82 -82
- package/components/graphs/treemap.js.map +1 -1
- package/components/index.d.ts +36 -36
- package/components/index.js +36 -36
- package/components/index.js.map +1 -1
- package/components/layout/layout.d.ts +3 -3
- package/components/layout/layout.js +28 -28
- package/components/layout/layout.js.map +1 -1
- package/components/layout/spacer.d.ts +1 -1
- package/components/layout/spacer.js +10 -10
- package/components/layout/spacer.js.map +1 -1
- package/configuration-non-customizable.d.ts +7 -7
- package/configuration-non-customizable.js +37 -37
- package/configuration-non-customizable.js.map +1 -1
- package/configuration.d.ts +2 -2
- package/configuration.js +81 -78
- package/configuration.js.map +1 -1
- package/demo/create-codesandbox.d.ts +42 -42
- package/demo/create-codesandbox.js +100 -100
- package/demo/create-codesandbox.js.map +1 -1
- package/demo/data/area.js +220 -190
- package/demo/data/area.js.map +1 -1
- package/demo/data/bar.d.ts +2 -2
- package/demo/data/bar.js +302 -302
- package/demo/data/bar.js.map +1 -1
- package/demo/data/bubble.js +108 -108
- package/demo/data/bubble.js.map +1 -1
- package/demo/data/combo.js +323 -323
- package/demo/data/combo.js.map +1 -1
- package/demo/data/donut.js +19 -19
- package/demo/data/donut.js.map +1 -1
- package/demo/data/gauge.js +20 -20
- package/demo/data/gauge.js.map +1 -1
- package/demo/data/high-scale.js +3 -3
- package/demo/data/high-scale.js.map +1 -1
- package/demo/data/index.d.ts +13 -13
- package/demo/data/index.js +299 -299
- package/demo/data/index.js.map +1 -1
- package/demo/data/line.d.ts +4 -4
- package/demo/data/line.js +332 -332
- package/demo/data/line.js.map +1 -1
- package/demo/data/lollipop.js +19 -19
- package/demo/data/lollipop.js.map +1 -1
- package/demo/data/meter.d.ts +1 -1
- package/demo/data/meter.js +22 -22
- package/demo/data/meter.js.map +1 -1
- package/demo/data/pie.js +17 -17
- package/demo/data/pie.js.map +1 -1
- package/demo/data/radar.js +84 -84
- package/demo/data/radar.js.map +1 -1
- package/demo/data/scatter.js +125 -125
- package/demo/data/scatter.js.map +1 -1
- package/demo/data/step.js +11 -11
- package/demo/data/step.js.map +1 -1
- package/demo/data/time-series-axis.js +164 -164
- package/demo/data/time-series-axis.js.map +1 -1
- package/demo/data/toolbar.js +15 -15
- package/demo/data/toolbar.js.map +1 -1
- package/demo/data/treemap.js +63 -63
- package/demo/data/treemap.js.map +1 -1
- package/demo/data/zoom-bar.js +65 -65
- package/demo/data/zoom-bar.js.map +1 -1
- package/demo/styles.css +1 -1
- package/demo/styles.min.css +1 -1
- package/demo/tsconfig.tsbuildinfo +45 -45
- package/index.d.ts +3 -3
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/interfaces/a11y.js.map +1 -1
- package/interfaces/axis-scales.d.ts +7 -7
- package/interfaces/axis-scales.js.map +1 -1
- package/interfaces/charts.d.ts +11 -4
- package/interfaces/charts.js.map +1 -1
- package/interfaces/components.d.ts +3 -3
- package/interfaces/components.js.map +1 -1
- package/interfaces/enums.d.ts +1 -1
- package/interfaces/enums.js +1 -1
- package/interfaces/enums.js.map +1 -1
- package/interfaces/events.js.map +1 -1
- package/interfaces/index.d.ts +7 -7
- package/interfaces/index.js +2 -2
- package/interfaces/index.js.map +1 -1
- package/interfaces/layout.d.ts +1 -1
- package/interfaces/layout.js.map +1 -1
- package/interfaces/model.d.ts +1 -1
- package/interfaces/model.js.map +1 -1
- package/model-cartesian-charts.d.ts +1 -1
- package/model-cartesian-charts.js +7 -7
- package/model-cartesian-charts.js.map +1 -1
- package/model-gauge.d.ts +1 -1
- package/model-gauge.js +2 -2
- package/model-gauge.js.map +1 -1
- package/model-meter.d.ts +1 -1
- package/model-meter.js +7 -7
- package/model-meter.js.map +1 -1
- package/model-pie.d.ts +1 -1
- package/model-pie.js +1 -1
- package/model-pie.js.map +1 -1
- package/model.d.ts +1 -9
- package/model.js +31 -42
- package/model.js.map +1 -1
- package/package.json +2 -3
- package/polyfills.js +9 -9
- package/polyfills.js.map +1 -1
- package/services/angle-utils.d.ts +1 -1
- package/services/angle-utils.js +9 -9
- package/services/angle-utils.js.map +1 -1
- package/services/curves.d.ts +2 -2
- package/services/curves.js +6 -6
- package/services/curves.js.map +1 -1
- package/services/essentials/dom-utils.d.ts +2 -2
- package/services/essentials/dom-utils.js +37 -37
- package/services/essentials/dom-utils.js.map +1 -1
- package/services/essentials/events.d.ts +1 -1
- package/services/essentials/events.js +3 -3
- package/services/essentials/events.js.map +1 -1
- package/services/essentials/gradient-utils.d.ts +1 -1
- package/services/essentials/gradient-utils.js +25 -25
- package/services/essentials/gradient-utils.js.map +1 -1
- package/services/essentials/transitions.d.ts +2 -2
- package/services/essentials/transitions.js +8 -8
- package/services/essentials/transitions.js.map +1 -1
- package/services/index.d.ts +7 -7
- package/services/index.js +7 -7
- package/services/index.js.map +1 -1
- package/services/scales-cartesian.d.ts +2 -2
- package/services/scales-cartesian.js +57 -60
- package/services/scales-cartesian.js.map +1 -1
- package/services/service.d.ts +1 -1
- package/services/service.js.map +1 -1
- package/services/time-series.d.ts +1 -1
- package/services/time-series.js +27 -27
- package/services/time-series.js.map +1 -1
- package/services/zoom.d.ts +2 -2
- package/services/zoom.js +20 -20
- package/services/zoom.js.map +1 -1
- package/styles/_type.scss +7 -7
- package/styles/color-palatte.scss +218 -218
- package/styles/colors.scss +3 -3
- package/styles/components/_axis.scss +5 -5
- package/styles/components/_ruler.scss +2 -2
- package/styles/components/_threshold.scss +1 -1
- package/styles/components/_title.scss +3 -3
- package/styles/components/_toolbar.scss +1 -1
- package/styles/components/_tooltip.scss +6 -6
- package/styles/components/index.scss +16 -16
- package/styles/graphs/_bubble.scss +1 -1
- package/styles/graphs/_radar.scss +2 -2
- package/styles/graphs/_scatter.scss +1 -1
- package/styles/graphs/_treemap.scss +1 -1
- package/styles/graphs/index.scss +9 -9
- package/styles/styles-g10.scss +2 -2
- package/styles/styles-g100.scss +2 -2
- package/styles/styles-g90.scss +2 -2
- package/styles/styles-white.scss +2 -2
- package/styles/styles.scss +10 -10
- package/tools.d.ts +2 -2
- package/tools.js +26 -26
- package/tools.js.map +1 -1
- package/tsconfig.tsbuildinfo +173 -173
package/demo/data/index.js
CHANGED
|
@@ -1,1036 +1,1036 @@
|
|
|
1
|
-
import * as areaDemos from
|
|
2
|
-
import * as barDemos from
|
|
3
|
-
import * as bubbleDemos from
|
|
4
|
-
import * as donutDemos from
|
|
5
|
-
import * as lineDemos from
|
|
6
|
-
import * as pieDemos from
|
|
7
|
-
import * as gaugeDemos from
|
|
8
|
-
import * as scatterDemos from
|
|
9
|
-
import * as lollipopDemos from
|
|
10
|
-
import * as stepDemos from
|
|
11
|
-
import * as meterDemos from
|
|
12
|
-
import * as timeSeriesAxisDemos from
|
|
13
|
-
import * as radarDemos from
|
|
14
|
-
import * as treemapDemos from
|
|
15
|
-
import * as toolbarDemos from
|
|
16
|
-
import * as zoomBarDemos from
|
|
17
|
-
import * as comboDemos from
|
|
18
|
-
import * as highScaleDemos from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
31
|
-
export * from
|
|
32
|
-
import { createChartSandbox, createReactChartApp, createAngularChartApp, createVueChartApp, createVanillaChartApp, createSvelteChartApp } from
|
|
33
|
-
import { Tools } from
|
|
1
|
+
import * as areaDemos from './area';
|
|
2
|
+
import * as barDemos from './bar';
|
|
3
|
+
import * as bubbleDemos from './bubble';
|
|
4
|
+
import * as donutDemos from './donut';
|
|
5
|
+
import * as lineDemos from './line';
|
|
6
|
+
import * as pieDemos from './pie';
|
|
7
|
+
import * as gaugeDemos from './gauge';
|
|
8
|
+
import * as scatterDemos from './scatter';
|
|
9
|
+
import * as lollipopDemos from './lollipop';
|
|
10
|
+
import * as stepDemos from './step';
|
|
11
|
+
import * as meterDemos from './meter';
|
|
12
|
+
import * as timeSeriesAxisDemos from './time-series-axis';
|
|
13
|
+
import * as radarDemos from './radar';
|
|
14
|
+
import * as treemapDemos from './treemap';
|
|
15
|
+
import * as toolbarDemos from './toolbar';
|
|
16
|
+
import * as zoomBarDemos from './zoom-bar';
|
|
17
|
+
import * as comboDemos from './combo';
|
|
18
|
+
import * as highScaleDemos from './high-scale';
|
|
19
|
+
export * from './area';
|
|
20
|
+
export * from './bar';
|
|
21
|
+
export * from './bubble';
|
|
22
|
+
export * from './donut';
|
|
23
|
+
export * from './line';
|
|
24
|
+
export * from './meter';
|
|
25
|
+
export * from './pie';
|
|
26
|
+
export * from './gauge';
|
|
27
|
+
export * from './scatter';
|
|
28
|
+
export * from './step';
|
|
29
|
+
export * from './radar';
|
|
30
|
+
export * from './combo';
|
|
31
|
+
export * from './treemap';
|
|
32
|
+
import { createChartSandbox, createReactChartApp, createAngularChartApp, createVueChartApp, createVanillaChartApp, createSvelteChartApp, } from '../create-codesandbox';
|
|
33
|
+
import { Tools } from '@carbon/charts/tools';
|
|
34
34
|
export var chartTypes = {
|
|
35
35
|
AreaChart: {
|
|
36
|
-
vanilla:
|
|
37
|
-
angular:
|
|
38
|
-
vue:
|
|
36
|
+
vanilla: 'AreaChart',
|
|
37
|
+
angular: 'ibm-area-chart',
|
|
38
|
+
vue: 'ccv-area-chart',
|
|
39
39
|
},
|
|
40
40
|
SimpleBarChart: {
|
|
41
|
-
vanilla:
|
|
42
|
-
angular:
|
|
43
|
-
vue:
|
|
41
|
+
vanilla: 'SimpleBarChart',
|
|
42
|
+
angular: 'ibm-simple-bar-chart',
|
|
43
|
+
vue: 'ccv-simple-bar-chart',
|
|
44
44
|
},
|
|
45
45
|
GroupedBarChart: {
|
|
46
|
-
vanilla:
|
|
47
|
-
angular:
|
|
48
|
-
vue:
|
|
46
|
+
vanilla: 'GroupedBarChart',
|
|
47
|
+
angular: 'ibm-grouped-bar-chart',
|
|
48
|
+
vue: 'ccv-grouped-bar-chart',
|
|
49
49
|
},
|
|
50
50
|
StackedBarChart: {
|
|
51
|
-
vanilla:
|
|
52
|
-
angular:
|
|
53
|
-
vue:
|
|
51
|
+
vanilla: 'StackedBarChart',
|
|
52
|
+
angular: 'ibm-stacked-bar-chart',
|
|
53
|
+
vue: 'ccv-stacked-bar-chart',
|
|
54
54
|
},
|
|
55
55
|
BubbleChart: {
|
|
56
|
-
vanilla:
|
|
57
|
-
angular:
|
|
58
|
-
vue:
|
|
56
|
+
vanilla: 'BubbleChart',
|
|
57
|
+
angular: 'ibm-bubble-chart',
|
|
58
|
+
vue: 'ccv-bubble-chart',
|
|
59
59
|
},
|
|
60
60
|
LineChart: {
|
|
61
|
-
vanilla:
|
|
62
|
-
angular:
|
|
63
|
-
vue:
|
|
61
|
+
vanilla: 'LineChart',
|
|
62
|
+
angular: 'ibm-line-chart',
|
|
63
|
+
vue: 'ccv-line-chart',
|
|
64
64
|
},
|
|
65
65
|
StackedAreaChart: {
|
|
66
|
-
vanilla:
|
|
67
|
-
angular:
|
|
68
|
-
vue:
|
|
66
|
+
vanilla: 'StackedAreaChart',
|
|
67
|
+
angular: 'ibm-stacked-area-chart',
|
|
68
|
+
vue: 'ccv-stacked-area-chart',
|
|
69
69
|
},
|
|
70
70
|
ScatterChart: {
|
|
71
|
-
vanilla:
|
|
72
|
-
angular:
|
|
73
|
-
vue:
|
|
71
|
+
vanilla: 'ScatterChart',
|
|
72
|
+
angular: 'ibm-scatter-chart',
|
|
73
|
+
vue: 'ccv-scatter-chart',
|
|
74
74
|
},
|
|
75
75
|
LollipopChart: {
|
|
76
|
-
vanilla:
|
|
77
|
-
angular:
|
|
78
|
-
vue:
|
|
76
|
+
vanilla: 'LollipopChart',
|
|
77
|
+
angular: 'ibm-lollipop-chart',
|
|
78
|
+
vue: 'ccv-lollipop-chart',
|
|
79
79
|
},
|
|
80
80
|
PieChart: {
|
|
81
|
-
vanilla:
|
|
82
|
-
angular:
|
|
83
|
-
vue:
|
|
81
|
+
vanilla: 'PieChart',
|
|
82
|
+
angular: 'ibm-pie-chart',
|
|
83
|
+
vue: 'ccv-pie-chart',
|
|
84
84
|
},
|
|
85
85
|
GaugeChart: {
|
|
86
|
-
vanilla:
|
|
87
|
-
angular:
|
|
88
|
-
vue:
|
|
86
|
+
vanilla: 'GaugeChart',
|
|
87
|
+
angular: 'ibm-gauge-chart',
|
|
88
|
+
vue: 'ccv-gauge-chart',
|
|
89
89
|
},
|
|
90
90
|
DonutChart: {
|
|
91
|
-
vanilla:
|
|
92
|
-
angular:
|
|
93
|
-
vue:
|
|
91
|
+
vanilla: 'DonutChart',
|
|
92
|
+
angular: 'ibm-donut-chart',
|
|
93
|
+
vue: 'ccv-donut-chart',
|
|
94
94
|
},
|
|
95
95
|
MeterChart: {
|
|
96
|
-
vanilla:
|
|
97
|
-
angular:
|
|
98
|
-
vue:
|
|
96
|
+
vanilla: 'MeterChart',
|
|
97
|
+
angular: 'ibm-meter-chart',
|
|
98
|
+
vue: 'ccv-meter-chart',
|
|
99
99
|
},
|
|
100
100
|
RadarChart: {
|
|
101
|
-
vanilla:
|
|
102
|
-
angular:
|
|
103
|
-
vue:
|
|
101
|
+
vanilla: 'RadarChart',
|
|
102
|
+
angular: 'ibm-radar-chart',
|
|
103
|
+
vue: 'ccv-radar-chart',
|
|
104
104
|
},
|
|
105
105
|
ComboChart: {
|
|
106
|
-
vanilla:
|
|
107
|
-
angular:
|
|
108
|
-
vue:
|
|
106
|
+
vanilla: 'ComboChart',
|
|
107
|
+
angular: 'ibm-combo-chart',
|
|
108
|
+
vue: 'ccv-combo-chart',
|
|
109
109
|
},
|
|
110
110
|
TreemapChart: {
|
|
111
|
-
vanilla:
|
|
112
|
-
angular:
|
|
113
|
-
vue:
|
|
114
|
-
}
|
|
111
|
+
vanilla: 'TreemapChart',
|
|
112
|
+
angular: 'ibm-treemap-chart',
|
|
113
|
+
vue: 'ccv-treemap-chart',
|
|
114
|
+
},
|
|
115
115
|
};
|
|
116
116
|
var allDemoGroups = [
|
|
117
117
|
{
|
|
118
|
-
title:
|
|
119
|
-
description:
|
|
118
|
+
title: 'Area',
|
|
119
|
+
description: 'Area charts are similar to line charts, but the areas below the lines are filled with colors or patterns. Stacked charts are useful for comparing proportional contributions within a category. They plot the relative value that each data series contributes to the total.',
|
|
120
120
|
demos: [
|
|
121
121
|
{
|
|
122
122
|
options: areaDemos.areaTimeSeriesCurvedOptions,
|
|
123
123
|
data: areaDemos.areaTimeSeriesCurvedData,
|
|
124
|
-
chartType: chartTypes.AreaChart
|
|
124
|
+
chartType: chartTypes.AreaChart,
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
options: areaDemos.areaTimeSeriesOptions,
|
|
128
128
|
data: areaDemos.areaTimeSeriesData,
|
|
129
129
|
chartType: chartTypes.AreaChart,
|
|
130
|
-
isDemoExample: false
|
|
130
|
+
isDemoExample: false,
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
options: areaDemos.areaDiscreteDomainOptions,
|
|
134
134
|
data: areaDemos.areaDiscreteDomain,
|
|
135
|
-
chartType: chartTypes.AreaChart
|
|
135
|
+
chartType: chartTypes.AreaChart,
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
options: areaDemos.stackedAreaTimeSeriesOptions,
|
|
139
139
|
data: areaDemos.stackedAreaTimeSeriesData,
|
|
140
140
|
chartType: chartTypes.StackedAreaChart,
|
|
141
|
-
isDemoExample: true
|
|
141
|
+
isDemoExample: true,
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
options: areaDemos.stackedAreaTimeSeriesUnevenDataOptions,
|
|
145
145
|
data: areaDemos.stackedAreaTimeSeriesUnevenData,
|
|
146
146
|
chartType: chartTypes.StackedAreaChart,
|
|
147
|
-
isDemoExample: true
|
|
147
|
+
isDemoExample: true,
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
options: areaDemos.stackedAreaPercentageTimeSeriesOptions,
|
|
151
151
|
data: areaDemos.stackedAreaTimeSeriesData,
|
|
152
152
|
chartType: chartTypes.StackedAreaChart,
|
|
153
|
-
isDemoExample: true
|
|
153
|
+
isDemoExample: true,
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
options: areaDemos.sparklineOptions,
|
|
157
157
|
data: areaDemos.sparklineTimeSeriesData,
|
|
158
158
|
chartType: chartTypes.AreaChart,
|
|
159
|
-
isDemoExample: true
|
|
159
|
+
isDemoExample: true,
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
options: areaDemos.boundedAreaTimeSeriesOptions,
|
|
163
163
|
data: areaDemos.boundedAreaTimeSeriesData,
|
|
164
164
|
chartType: chartTypes.AreaChart,
|
|
165
|
-
isDemoExample: true
|
|
165
|
+
isDemoExample: true,
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
options: areaDemos.areaSkeletonOptions,
|
|
169
169
|
data: areaDemos.areaSkeletonData,
|
|
170
|
-
chartType: chartTypes.AreaChart
|
|
170
|
+
chartType: chartTypes.AreaChart,
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
options: areaDemos.areaEmptyOptions,
|
|
174
174
|
data: areaDemos.areaEmptyData,
|
|
175
|
-
chartType: chartTypes.AreaChart
|
|
176
|
-
}
|
|
177
|
-
]
|
|
175
|
+
chartType: chartTypes.AreaChart,
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
|
-
title:
|
|
181
|
-
description:
|
|
180
|
+
title: 'Bar (vertical)',
|
|
181
|
+
description: 'Bar charts use vertical or horizontal data markers to compare individual values. You can use them to compare discrete data or show trends over time.',
|
|
182
182
|
demos: [
|
|
183
183
|
{
|
|
184
184
|
options: barDemos.simpleBarOptions,
|
|
185
185
|
data: barDemos.simpleBarData,
|
|
186
|
-
chartType: chartTypes.SimpleBarChart
|
|
186
|
+
chartType: chartTypes.SimpleBarChart,
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
options: barDemos.simpleBarColorOverrideOptions,
|
|
190
190
|
data: barDemos.simpleBarData,
|
|
191
|
-
chartType: chartTypes.SimpleBarChart
|
|
191
|
+
chartType: chartTypes.SimpleBarChart,
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
options: barDemos.simpleBarOptionsCustomTicks,
|
|
195
195
|
data: barDemos.simpleBarDataCustomTicks,
|
|
196
196
|
chartType: chartTypes.SimpleBarChart,
|
|
197
|
-
isDemoExample: false
|
|
197
|
+
isDemoExample: false,
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
options: barDemos.simpleBarCustomLegendOrderOptions,
|
|
201
201
|
data: barDemos.simpleBarData,
|
|
202
|
-
chartType: chartTypes.SimpleBarChart
|
|
202
|
+
chartType: chartTypes.SimpleBarChart,
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
options: barDemos.simpleBarCenteredLegendOptions,
|
|
206
206
|
data: barDemos.simpleBarCenteredLegendData,
|
|
207
|
-
chartType: chartTypes.SimpleBarChart
|
|
207
|
+
chartType: chartTypes.SimpleBarChart,
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
options: barDemos.simpleBarLongLabelOptions,
|
|
211
211
|
data: barDemos.simpleBarLongLabelData,
|
|
212
212
|
chartType: chartTypes.SimpleBarChart,
|
|
213
|
-
isDemoExample: true
|
|
213
|
+
isDemoExample: true,
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
options: barDemos.simpleBarFixedDomainOptions,
|
|
217
217
|
data: barDemos.simpleBarData,
|
|
218
|
-
chartType: chartTypes.SimpleBarChart
|
|
218
|
+
chartType: chartTypes.SimpleBarChart,
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
options: barDemos.simpleBarTimeSeriesDenseOptions,
|
|
222
222
|
data: barDemos.simpleBarTimeSeriesDenseData,
|
|
223
223
|
chartType: chartTypes.SimpleBarChart,
|
|
224
|
-
isDemoExample: true
|
|
224
|
+
isDemoExample: true,
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
options: barDemos.simpleBarTimeSeriesOptions,
|
|
228
228
|
data: barDemos.simpleBarTimeSeriesData,
|
|
229
|
-
chartType: chartTypes.SimpleBarChart
|
|
229
|
+
chartType: chartTypes.SimpleBarChart,
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
options: barDemos.simpleBarEmptyStateOptions,
|
|
233
233
|
data: barDemos.simpleBarEmptyStateData,
|
|
234
234
|
chartType: chartTypes.SimpleBarChart,
|
|
235
|
-
isDemoExample: false
|
|
235
|
+
isDemoExample: false,
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
options: barDemos.simpleBarSkeletonOptions,
|
|
239
239
|
data: barDemos.simpleBarSkeletonData,
|
|
240
240
|
chartType: chartTypes.SimpleBarChart,
|
|
241
|
-
isDemoExample: false
|
|
241
|
+
isDemoExample: false,
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
|
-
description:
|
|
244
|
+
description: 'A grouped bar chart, also known as a clustered bar graph, multi-set bar chart, or grouped column chart, is a type of bar graph that is used to compare values across multiple categories.',
|
|
245
245
|
options: barDemos.groupedBarOptions,
|
|
246
246
|
data: barDemos.groupedBarData,
|
|
247
|
-
chartType: chartTypes.GroupedBarChart
|
|
247
|
+
chartType: chartTypes.GroupedBarChart,
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
250
|
options: barDemos.groupedBarSelectedGroupsOptions,
|
|
251
251
|
data: barDemos.groupedBarSelectedGroupsData,
|
|
252
|
-
chartType: chartTypes.GroupedBarChart
|
|
252
|
+
chartType: chartTypes.GroupedBarChart,
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
255
|
options: barDemos.groupedBarEmptyStateOptions,
|
|
256
256
|
data: barDemos.groupedBarEmptyStateData,
|
|
257
257
|
chartType: chartTypes.GroupedBarChart,
|
|
258
|
-
isDemoExample: false
|
|
258
|
+
isDemoExample: false,
|
|
259
259
|
},
|
|
260
260
|
{
|
|
261
261
|
options: barDemos.groupedBarSkeletonOptions,
|
|
262
262
|
data: barDemos.groupedBarSkeletonData,
|
|
263
263
|
chartType: chartTypes.GroupedBarChart,
|
|
264
|
-
isDemoExample: false
|
|
264
|
+
isDemoExample: false,
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
|
-
description:
|
|
267
|
+
description: 'Stacked bar charts are useful for comparing proportional contributions within a category. They plot the relative value that each data series contributes to the total.',
|
|
268
268
|
options: barDemos.stackedBarOptions,
|
|
269
269
|
data: barDemos.stackedBarData,
|
|
270
|
-
chartType: chartTypes.StackedBarChart
|
|
270
|
+
chartType: chartTypes.StackedBarChart,
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
273
|
options: barDemos.stackedBarTimeSeriesOptions,
|
|
274
274
|
data: barDemos.stackedBarTimeSeriesData,
|
|
275
|
-
chartType: chartTypes.StackedBarChart
|
|
275
|
+
chartType: chartTypes.StackedBarChart,
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
options: barDemos.stackedBarTimeSeriesOptionsCustomTicks,
|
|
279
279
|
data: barDemos.stackedBarTimeSeriesDataCustomTicks,
|
|
280
280
|
chartType: chartTypes.StackedBarChart,
|
|
281
|
-
isDemoExample: false
|
|
281
|
+
isDemoExample: false,
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
284
|
options: barDemos.stackedBarEmptyStateOptions,
|
|
285
285
|
data: barDemos.stackedBarEmptyStateData,
|
|
286
286
|
chartType: chartTypes.StackedBarChart,
|
|
287
|
-
isDemoExample: false
|
|
287
|
+
isDemoExample: false,
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
options: barDemos.stackedBarSkeletonOptions,
|
|
291
291
|
data: barDemos.stackedBarSkeletonData,
|
|
292
292
|
chartType: chartTypes.StackedBarChart,
|
|
293
|
-
isDemoExample: false
|
|
294
|
-
}
|
|
295
|
-
]
|
|
293
|
+
isDemoExample: false,
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
|
-
title:
|
|
298
|
+
title: 'Bar (horizontal)',
|
|
299
299
|
demos: [
|
|
300
300
|
{
|
|
301
301
|
options: barDemos.simpleHorizontalBarOptions,
|
|
302
302
|
data: barDemos.simpleHorizontalBarData,
|
|
303
|
-
chartType: chartTypes.SimpleBarChart
|
|
303
|
+
chartType: chartTypes.SimpleBarChart,
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
306
|
options: barDemos.simpleHorizontalBarCenteredLegendOptions,
|
|
307
307
|
data: barDemos.simpleHorizontalBarCenteredLegendData,
|
|
308
|
-
chartType: chartTypes.SimpleBarChart
|
|
308
|
+
chartType: chartTypes.SimpleBarChart,
|
|
309
309
|
},
|
|
310
310
|
{
|
|
311
311
|
options: barDemos.simpleHorizontalBarLongLabelOptions,
|
|
312
312
|
data: barDemos.simpleHorizontalBarLongLabelData,
|
|
313
313
|
chartType: chartTypes.SimpleBarChart,
|
|
314
|
-
isDemoExample: true
|
|
314
|
+
isDemoExample: true,
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
317
|
options: barDemos.simpleHorizontalBarTimeSeriesOptions,
|
|
318
318
|
data: barDemos.simpleHorizontalBarTimeSeriesData,
|
|
319
|
-
chartType: chartTypes.SimpleBarChart
|
|
319
|
+
chartType: chartTypes.SimpleBarChart,
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
322
|
options: barDemos.simpleHorizontalBarEmptyStateOptions,
|
|
323
323
|
data: barDemos.simpleHorizontalBarEmptyStateData,
|
|
324
324
|
chartType: chartTypes.SimpleBarChart,
|
|
325
|
-
isDemoExample: false
|
|
325
|
+
isDemoExample: false,
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
328
|
options: barDemos.simpleHorizontalBarSkeletonOptions,
|
|
329
329
|
data: barDemos.simpleHorizontalBarSkeletonData,
|
|
330
330
|
chartType: chartTypes.SimpleBarChart,
|
|
331
|
-
isDemoExample: false
|
|
331
|
+
isDemoExample: false,
|
|
332
332
|
},
|
|
333
333
|
{
|
|
334
334
|
options: barDemos.groupedHorizontalBarOptions,
|
|
335
335
|
data: barDemos.groupedHorizontalBarData,
|
|
336
|
-
chartType: chartTypes.GroupedBarChart
|
|
336
|
+
chartType: chartTypes.GroupedBarChart,
|
|
337
337
|
},
|
|
338
338
|
{
|
|
339
339
|
options: barDemos.groupedHorizontalBarEmptyStateOptions,
|
|
340
340
|
data: barDemos.groupedHorizontalBarEmptyStateData,
|
|
341
341
|
chartType: chartTypes.GroupedBarChart,
|
|
342
|
-
isDemoExample: false
|
|
342
|
+
isDemoExample: false,
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
345
|
options: barDemos.groupedHorizontalBarSkeletonOptions,
|
|
346
346
|
data: barDemos.groupedHorizontalBarSkeletonData,
|
|
347
347
|
chartType: chartTypes.GroupedBarChart,
|
|
348
|
-
isDemoExample: false
|
|
348
|
+
isDemoExample: false,
|
|
349
349
|
},
|
|
350
350
|
{
|
|
351
351
|
options: barDemos.stackedHorizontalBarOptions,
|
|
352
352
|
data: barDemos.stackedHorizontalBarData,
|
|
353
|
-
chartType: chartTypes.StackedBarChart
|
|
353
|
+
chartType: chartTypes.StackedBarChart,
|
|
354
354
|
},
|
|
355
355
|
{
|
|
356
356
|
options: barDemos.stackedHorizontalBarTimeSeriesOptions,
|
|
357
357
|
data: barDemos.stackedHorizontalBarTimeSeriesData,
|
|
358
|
-
chartType: chartTypes.StackedBarChart
|
|
358
|
+
chartType: chartTypes.StackedBarChart,
|
|
359
359
|
},
|
|
360
360
|
{
|
|
361
361
|
options: barDemos.stackedHorizontalBarEmptyStateOptions,
|
|
362
362
|
data: barDemos.stackedHorizontalBarEmptyStateData,
|
|
363
363
|
chartType: chartTypes.StackedBarChart,
|
|
364
|
-
isDemoExample: false
|
|
364
|
+
isDemoExample: false,
|
|
365
365
|
},
|
|
366
366
|
{
|
|
367
367
|
options: barDemos.stackedHorizontalBarSkeletonOptions,
|
|
368
368
|
data: barDemos.stackedHorizontalBarSkeletonData,
|
|
369
369
|
chartType: chartTypes.StackedBarChart,
|
|
370
|
-
isDemoExample: false
|
|
371
|
-
}
|
|
372
|
-
]
|
|
370
|
+
isDemoExample: false,
|
|
371
|
+
},
|
|
372
|
+
],
|
|
373
373
|
},
|
|
374
374
|
{
|
|
375
|
-
title:
|
|
376
|
-
description:
|
|
375
|
+
title: 'Bubble',
|
|
376
|
+
description: 'Bubble charts use data points and bubbles to plot measures anywhere along a scale. One measure is plotted along each axis. The size of the bubble represents the third measure. You can use bubble charts to represent financial data or any data where measured values are related.',
|
|
377
377
|
demos: [
|
|
378
378
|
{
|
|
379
379
|
options: bubbleDemos.bubbleDoubleLinearOptions,
|
|
380
380
|
data: bubbleDemos.bubbleDoubleLinearData,
|
|
381
|
-
chartType: chartTypes.BubbleChart
|
|
381
|
+
chartType: chartTypes.BubbleChart,
|
|
382
382
|
},
|
|
383
383
|
{
|
|
384
384
|
options: bubbleDemos.bubbleTimeSeriesOptions,
|
|
385
385
|
data: bubbleDemos.bubbleTimeSeriesData,
|
|
386
|
-
chartType: chartTypes.BubbleChart
|
|
386
|
+
chartType: chartTypes.BubbleChart,
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
options: bubbleDemos.bubbleDiscreteOptions,
|
|
390
390
|
data: bubbleDemos.bubbleDiscreteData,
|
|
391
|
-
chartType: chartTypes.BubbleChart
|
|
391
|
+
chartType: chartTypes.BubbleChart,
|
|
392
392
|
},
|
|
393
393
|
{
|
|
394
394
|
options: bubbleDemos.bubbleEmptyStateOptions,
|
|
395
395
|
data: bubbleDemos.bubbleEmptyStateData,
|
|
396
396
|
chartType: chartTypes.BubbleChart,
|
|
397
|
-
isDemoExample: false
|
|
397
|
+
isDemoExample: false,
|
|
398
398
|
},
|
|
399
399
|
{
|
|
400
400
|
options: bubbleDemos.bubbleSkeletonOptions,
|
|
401
401
|
data: bubbleDemos.bubbleSkeletonData,
|
|
402
402
|
chartType: chartTypes.BubbleChart,
|
|
403
|
-
isDemoExample: false
|
|
403
|
+
isDemoExample: false,
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
406
|
options: bubbleDemos.bubbleDualDiscreteOptions,
|
|
407
407
|
data: bubbleDemos.bubbleDualDiscreteData,
|
|
408
408
|
chartType: chartTypes.BubbleChart,
|
|
409
|
-
isDemoExample: false
|
|
410
|
-
}
|
|
411
|
-
]
|
|
409
|
+
isDemoExample: false,
|
|
410
|
+
},
|
|
411
|
+
],
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
|
-
title:
|
|
414
|
+
title: 'Donut',
|
|
415
415
|
demos: [
|
|
416
416
|
{
|
|
417
417
|
options: donutDemos.donutOptions,
|
|
418
418
|
data: donutDemos.donutData,
|
|
419
|
-
chartType: chartTypes.DonutChart
|
|
419
|
+
chartType: chartTypes.DonutChart,
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
422
|
options: donutDemos.donutCenteredOptions,
|
|
423
423
|
data: donutDemos.donutCenteredData,
|
|
424
|
-
chartType: chartTypes.DonutChart
|
|
424
|
+
chartType: chartTypes.DonutChart,
|
|
425
425
|
},
|
|
426
426
|
{
|
|
427
427
|
options: donutDemos.donutEmptyStateOptions,
|
|
428
428
|
data: donutDemos.donutEmptyStateData,
|
|
429
429
|
chartType: chartTypes.DonutChart,
|
|
430
|
-
isDemoExample: false
|
|
430
|
+
isDemoExample: false,
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
433
|
options: donutDemos.donutSkeletonOptions,
|
|
434
434
|
data: donutDemos.donutSkeletonData,
|
|
435
435
|
chartType: chartTypes.DonutChart,
|
|
436
|
-
isDemoExample: false
|
|
437
|
-
}
|
|
438
|
-
]
|
|
436
|
+
isDemoExample: false,
|
|
437
|
+
},
|
|
438
|
+
],
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
|
-
title:
|
|
442
|
-
description:
|
|
441
|
+
title: 'Line',
|
|
442
|
+
description: 'Line charts plot data at regular intervals connected by lines. You can use line visualizations to show trends over time and compare several data sets.',
|
|
443
443
|
demos: [
|
|
444
444
|
{
|
|
445
445
|
options: lineDemos.lineOptions,
|
|
446
446
|
data: lineDemos.lineData,
|
|
447
|
-
chartType: chartTypes.LineChart
|
|
447
|
+
chartType: chartTypes.LineChart,
|
|
448
448
|
},
|
|
449
449
|
{
|
|
450
450
|
options: lineDemos.lineCustomColorOptions,
|
|
451
451
|
data: lineDemos.lineData,
|
|
452
|
-
chartType: chartTypes.LineChart
|
|
452
|
+
chartType: chartTypes.LineChart,
|
|
453
453
|
},
|
|
454
454
|
{
|
|
455
455
|
options: lineDemos.lineCenteredLegendOptions,
|
|
456
456
|
data: lineDemos.lineCenteredLegendData,
|
|
457
|
-
chartType: chartTypes.LineChart
|
|
457
|
+
chartType: chartTypes.LineChart,
|
|
458
458
|
},
|
|
459
459
|
{
|
|
460
460
|
options: lineDemos.lineLongLabelOptions,
|
|
461
461
|
data: lineDemos.lineLongLabelData,
|
|
462
|
-
chartType: chartTypes.LineChart
|
|
462
|
+
chartType: chartTypes.LineChart,
|
|
463
463
|
},
|
|
464
464
|
{
|
|
465
465
|
options: lineDemos.lineCustomDomainOptions,
|
|
466
466
|
data: lineDemos.lineData,
|
|
467
|
-
chartType: chartTypes.LineChart
|
|
467
|
+
chartType: chartTypes.LineChart,
|
|
468
468
|
},
|
|
469
469
|
{
|
|
470
470
|
options: lineDemos.lineSelectedGroupsOptions,
|
|
471
471
|
data: lineDemos.lineSelectedGroupsData,
|
|
472
|
-
chartType: chartTypes.LineChart
|
|
472
|
+
chartType: chartTypes.LineChart,
|
|
473
473
|
},
|
|
474
474
|
{
|
|
475
475
|
options: lineDemos.lineTimeSeriesOptions,
|
|
476
476
|
data: lineDemos.lineTimeSeriesData,
|
|
477
|
-
chartType: chartTypes.LineChart
|
|
477
|
+
chartType: chartTypes.LineChart,
|
|
478
478
|
},
|
|
479
479
|
{
|
|
480
480
|
options: lineDemos.lineTimeSeriesCustomDomainOptions,
|
|
481
481
|
data: lineDemos.lineTimeSeriesData,
|
|
482
|
-
chartType: chartTypes.LineChart
|
|
482
|
+
chartType: chartTypes.LineChart,
|
|
483
483
|
},
|
|
484
484
|
{
|
|
485
485
|
options: lineDemos.lineTimeSeriesDenseOptions,
|
|
486
486
|
data: lineDemos.lineTimeSeriesDenseData,
|
|
487
|
-
chartType: chartTypes.LineChart
|
|
487
|
+
chartType: chartTypes.LineChart,
|
|
488
488
|
},
|
|
489
489
|
{
|
|
490
490
|
options: lineDemos.lineTimeSeriesRotatedTicksOptions,
|
|
491
491
|
data: lineDemos.lineTimeSeriesDataRotatedTicks,
|
|
492
492
|
chartType: chartTypes.LineChart,
|
|
493
|
-
isDemoExample: false
|
|
493
|
+
isDemoExample: false,
|
|
494
494
|
},
|
|
495
495
|
{
|
|
496
496
|
options: lineDemos.lineHorizontalOptions,
|
|
497
497
|
data: lineDemos.lineData,
|
|
498
498
|
chartType: chartTypes.LineChart,
|
|
499
|
-
isDemoExample: false
|
|
499
|
+
isDemoExample: false,
|
|
500
500
|
},
|
|
501
501
|
{
|
|
502
502
|
options: lineDemos.lineTimeSeriesHorizontalOptions,
|
|
503
503
|
data: lineDemos.lineTimeSeriesData,
|
|
504
504
|
chartType: chartTypes.LineChart,
|
|
505
|
-
isDemoExample: false
|
|
505
|
+
isDemoExample: false,
|
|
506
506
|
},
|
|
507
507
|
{
|
|
508
508
|
options: lineDemos.lineTimeSeriesWithThresholdsOptions,
|
|
509
509
|
data: lineDemos.lineTimeSeriesData,
|
|
510
|
-
chartType: chartTypes.LineChart
|
|
510
|
+
chartType: chartTypes.LineChart,
|
|
511
511
|
},
|
|
512
512
|
{
|
|
513
513
|
options: lineDemos.lineEmptyStateOptions,
|
|
514
514
|
data: lineDemos.lineEmptyStateData,
|
|
515
515
|
chartType: chartTypes.LineChart,
|
|
516
|
-
isDemoExample: false
|
|
516
|
+
isDemoExample: false,
|
|
517
517
|
},
|
|
518
518
|
{
|
|
519
519
|
options: lineDemos.lineSkeletonOptions,
|
|
520
520
|
data: lineDemos.lineSkeletonData,
|
|
521
521
|
chartType: chartTypes.LineChart,
|
|
522
|
-
isDemoExample: false
|
|
522
|
+
isDemoExample: false,
|
|
523
523
|
},
|
|
524
524
|
{
|
|
525
525
|
options: lineDemos.dualLine,
|
|
526
526
|
data: lineDemos.lineTimeSeriesDualAxesData,
|
|
527
527
|
chartType: chartTypes.LineChart,
|
|
528
|
-
isDemoExample: true
|
|
528
|
+
isDemoExample: true,
|
|
529
529
|
},
|
|
530
530
|
{
|
|
531
531
|
options: lineDemos.sparklineLoadingOptions,
|
|
532
532
|
data: lineDemos.lineSkeletonData,
|
|
533
|
-
chartType: chartTypes.LineChart
|
|
534
|
-
}
|
|
535
|
-
]
|
|
533
|
+
chartType: chartTypes.LineChart,
|
|
534
|
+
},
|
|
535
|
+
],
|
|
536
536
|
},
|
|
537
537
|
{
|
|
538
|
-
title:
|
|
538
|
+
title: 'Area',
|
|
539
539
|
demos: [
|
|
540
540
|
{
|
|
541
541
|
options: areaDemos.stackedAreaTimeSeriesOptions,
|
|
542
542
|
data: areaDemos.stackedAreaTimeSeriesData,
|
|
543
|
-
chartType: chartTypes.StackedAreaChart
|
|
543
|
+
chartType: chartTypes.StackedAreaChart,
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
546
|
options: areaDemos.stackedAreaPercentageTimeSeriesOptions,
|
|
547
547
|
data: areaDemos.stackedAreaTimeSeriesData,
|
|
548
|
-
chartType: chartTypes.StackedAreaChart
|
|
549
|
-
}
|
|
550
|
-
]
|
|
548
|
+
chartType: chartTypes.StackedAreaChart,
|
|
549
|
+
},
|
|
550
|
+
],
|
|
551
551
|
},
|
|
552
552
|
{
|
|
553
|
-
title:
|
|
553
|
+
title: 'Pie',
|
|
554
554
|
demos: [
|
|
555
555
|
{
|
|
556
556
|
options: pieDemos.pieOptions,
|
|
557
557
|
data: pieDemos.pieData,
|
|
558
|
-
chartType: chartTypes.PieChart
|
|
558
|
+
chartType: chartTypes.PieChart,
|
|
559
559
|
},
|
|
560
560
|
{
|
|
561
561
|
options: pieDemos.pieCenteredOptions,
|
|
562
562
|
data: pieDemos.pieCenteredData,
|
|
563
|
-
chartType: chartTypes.PieChart
|
|
563
|
+
chartType: chartTypes.PieChart,
|
|
564
564
|
},
|
|
565
565
|
{
|
|
566
566
|
options: pieDemos.pieEmptyStateOptions,
|
|
567
567
|
data: pieDemos.pieEmptyStateData,
|
|
568
568
|
chartType: chartTypes.PieChart,
|
|
569
|
-
isDemoExample: false
|
|
569
|
+
isDemoExample: false,
|
|
570
570
|
},
|
|
571
571
|
{
|
|
572
572
|
options: pieDemos.pieSkeletonOptions,
|
|
573
573
|
data: pieDemos.pieSkeletonData,
|
|
574
574
|
chartType: chartTypes.PieChart,
|
|
575
|
-
isDemoExample: false
|
|
576
|
-
}
|
|
577
|
-
]
|
|
575
|
+
isDemoExample: false,
|
|
576
|
+
},
|
|
577
|
+
],
|
|
578
578
|
},
|
|
579
579
|
{
|
|
580
|
-
title:
|
|
580
|
+
title: 'Gauge',
|
|
581
581
|
demos: [
|
|
582
582
|
{
|
|
583
583
|
options: gaugeDemos.gaugeOptionsSemi,
|
|
584
584
|
data: gaugeDemos.gaugeData,
|
|
585
585
|
chartType: chartTypes.GaugeChart,
|
|
586
|
-
isDemoExample: true
|
|
586
|
+
isDemoExample: true,
|
|
587
587
|
},
|
|
588
588
|
{
|
|
589
589
|
options: gaugeDemos.gaugeOptionsCircular,
|
|
590
590
|
data: gaugeDemos.gaugeData,
|
|
591
591
|
chartType: chartTypes.GaugeChart,
|
|
592
|
-
isDemoExample: true
|
|
592
|
+
isDemoExample: true,
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
595
|
options: gaugeDemos.gaugeOptionsCircularNoDelta,
|
|
596
596
|
data: gaugeDemos.gaugeDataNoDelta,
|
|
597
597
|
chartType: chartTypes.GaugeChart,
|
|
598
|
-
isDemoExample: true
|
|
599
|
-
}
|
|
600
|
-
]
|
|
598
|
+
isDemoExample: true,
|
|
599
|
+
},
|
|
600
|
+
],
|
|
601
601
|
},
|
|
602
602
|
{
|
|
603
|
-
title:
|
|
604
|
-
description:
|
|
603
|
+
title: 'Scatter',
|
|
604
|
+
description: 'Scatter plot visualizations use data points to plot two measures anywhere along a scale, not only at regular tick marks. You can use scatter plots to explore correlations between different measures.',
|
|
605
605
|
demos: [
|
|
606
606
|
{
|
|
607
607
|
options: scatterDemos.doubleLinearScatterOptions,
|
|
608
608
|
data: scatterDemos.doubleLinearScatterData,
|
|
609
|
-
chartType: chartTypes.ScatterChart
|
|
609
|
+
chartType: chartTypes.ScatterChart,
|
|
610
610
|
},
|
|
611
611
|
{
|
|
612
612
|
options: scatterDemos.scatterTimeSeriesOptions,
|
|
613
613
|
data: scatterDemos.scatterTimeSeriesData,
|
|
614
|
-
chartType: chartTypes.ScatterChart
|
|
614
|
+
chartType: chartTypes.ScatterChart,
|
|
615
615
|
},
|
|
616
616
|
{
|
|
617
617
|
options: scatterDemos.scatterDiscreteOptions,
|
|
618
618
|
data: scatterDemos.scatterDiscreteData,
|
|
619
|
-
chartType: chartTypes.ScatterChart
|
|
619
|
+
chartType: chartTypes.ScatterChart,
|
|
620
620
|
},
|
|
621
621
|
{
|
|
622
622
|
options: scatterDemos.scatterLongLabelDiscreteOptions,
|
|
623
623
|
data: scatterDemos.scatterLongLabelDiscreteData,
|
|
624
|
-
chartType: chartTypes.ScatterChart
|
|
624
|
+
chartType: chartTypes.ScatterChart,
|
|
625
625
|
},
|
|
626
626
|
{
|
|
627
627
|
options: scatterDemos.scatterEmptyStateOptions,
|
|
628
628
|
data: scatterDemos.scatterEmptyStateData,
|
|
629
629
|
chartType: chartTypes.ScatterChart,
|
|
630
|
-
isDemoExample: false
|
|
630
|
+
isDemoExample: false,
|
|
631
631
|
},
|
|
632
632
|
{
|
|
633
633
|
options: scatterDemos.scatterSkeletonOptions,
|
|
634
634
|
data: scatterDemos.scatterSkeletonData,
|
|
635
635
|
chartType: chartTypes.ScatterChart,
|
|
636
|
-
isDemoExample: false
|
|
636
|
+
isDemoExample: false,
|
|
637
637
|
},
|
|
638
638
|
{
|
|
639
639
|
options: scatterDemos.scatterDualAxesOptions,
|
|
640
640
|
data: scatterDemos.scatterDualAxesData,
|
|
641
641
|
chartType: chartTypes.ScatterChart,
|
|
642
|
-
isDemoExample: false
|
|
643
|
-
}
|
|
644
|
-
]
|
|
642
|
+
isDemoExample: false,
|
|
643
|
+
},
|
|
644
|
+
],
|
|
645
645
|
},
|
|
646
646
|
{
|
|
647
|
-
title:
|
|
647
|
+
title: 'Lollipop',
|
|
648
648
|
demos: [
|
|
649
649
|
{
|
|
650
650
|
options: lollipopDemos.lollipopDiscreteOptions,
|
|
651
651
|
data: lollipopDemos.lollipopDiscreteData,
|
|
652
|
-
chartType: chartTypes.LollipopChart
|
|
652
|
+
chartType: chartTypes.LollipopChart,
|
|
653
653
|
},
|
|
654
654
|
{
|
|
655
655
|
options: lollipopDemos.lollipopDiscretePresentationOptions,
|
|
656
656
|
data: lollipopDemos.lollipopDiscretePresentationData,
|
|
657
|
-
chartType: chartTypes.LollipopChart
|
|
658
|
-
}
|
|
659
|
-
]
|
|
657
|
+
chartType: chartTypes.LollipopChart,
|
|
658
|
+
},
|
|
659
|
+
],
|
|
660
660
|
},
|
|
661
661
|
{
|
|
662
|
-
title:
|
|
663
|
-
description:
|
|
662
|
+
title: 'Step',
|
|
663
|
+
description: 'Stepped line charts plot data at regular intervals, forming a series of steps between data points. You can use line visualizations to show trends over time and compare several data sets.',
|
|
664
664
|
demos: [
|
|
665
665
|
{
|
|
666
666
|
options: stepDemos.stepOptions,
|
|
667
667
|
data: stepDemos.stepData,
|
|
668
|
-
chartType: chartTypes.LineChart
|
|
668
|
+
chartType: chartTypes.LineChart,
|
|
669
669
|
},
|
|
670
670
|
{
|
|
671
671
|
options: stepDemos.stepTimeSeriesOptions,
|
|
672
672
|
data: stepDemos.stepTimeSeriesData,
|
|
673
|
-
chartType: chartTypes.LineChart
|
|
673
|
+
chartType: chartTypes.LineChart,
|
|
674
674
|
},
|
|
675
675
|
{
|
|
676
676
|
options: stepDemos.stepEmptyStateOptions,
|
|
677
677
|
data: stepDemos.stepEmptyStateData,
|
|
678
678
|
chartType: chartTypes.LineChart,
|
|
679
|
-
isDemoExample: false
|
|
679
|
+
isDemoExample: false,
|
|
680
680
|
},
|
|
681
681
|
{
|
|
682
682
|
options: stepDemos.stepSkeletonOptions,
|
|
683
683
|
data: stepDemos.stepSkeletonData,
|
|
684
684
|
chartType: chartTypes.LineChart,
|
|
685
|
-
isDemoExample: false
|
|
686
|
-
}
|
|
687
|
-
]
|
|
685
|
+
isDemoExample: false,
|
|
686
|
+
},
|
|
687
|
+
],
|
|
688
688
|
},
|
|
689
689
|
{
|
|
690
|
-
title:
|
|
690
|
+
title: 'Meter',
|
|
691
691
|
demos: [
|
|
692
692
|
{
|
|
693
693
|
options: meterDemos.meterOptionsWithStatus,
|
|
694
694
|
data: meterDemos.meterData,
|
|
695
695
|
chartType: chartTypes.MeterChart,
|
|
696
|
-
isDemoExample: true
|
|
696
|
+
isDemoExample: true,
|
|
697
697
|
},
|
|
698
698
|
{
|
|
699
699
|
options: meterDemos.meterOptionsCustomColor,
|
|
700
700
|
data: meterDemos.meterData,
|
|
701
701
|
chartType: chartTypes.MeterChart,
|
|
702
|
-
isDemoExample: true
|
|
702
|
+
isDemoExample: true,
|
|
703
703
|
},
|
|
704
704
|
{
|
|
705
705
|
options: meterDemos.meterOptionsNoStatus,
|
|
706
706
|
data: meterDemos.meterData,
|
|
707
707
|
chartType: chartTypes.MeterChart,
|
|
708
|
-
isDemoExample: true
|
|
709
|
-
}
|
|
710
|
-
]
|
|
708
|
+
isDemoExample: true,
|
|
709
|
+
},
|
|
710
|
+
],
|
|
711
711
|
},
|
|
712
712
|
{
|
|
713
|
-
title:
|
|
713
|
+
title: 'Time series axis',
|
|
714
714
|
demos: [
|
|
715
715
|
{
|
|
716
716
|
options: timeSeriesAxisDemos.lineTimeSeries15secondsOptions,
|
|
717
717
|
data: timeSeriesAxisDemos.lineTimeSeriesData15seconds,
|
|
718
718
|
chartType: chartTypes.LineChart,
|
|
719
|
-
isDemoExample: false
|
|
719
|
+
isDemoExample: false,
|
|
720
720
|
},
|
|
721
721
|
{
|
|
722
722
|
options: timeSeriesAxisDemos.lineTimeSeriesMinuteOptions,
|
|
723
723
|
data: timeSeriesAxisDemos.lineTimeSeriesDataMinute,
|
|
724
724
|
chartType: chartTypes.LineChart,
|
|
725
|
-
isDemoExample: false
|
|
725
|
+
isDemoExample: false,
|
|
726
726
|
},
|
|
727
727
|
{
|
|
728
728
|
options: timeSeriesAxisDemos.lineTimeSeries30minutesOptions,
|
|
729
729
|
data: timeSeriesAxisDemos.lineTimeSeriesData30minutes,
|
|
730
730
|
chartType: chartTypes.LineChart,
|
|
731
|
-
isDemoExample: false
|
|
731
|
+
isDemoExample: false,
|
|
732
732
|
},
|
|
733
733
|
{
|
|
734
734
|
options: timeSeriesAxisDemos.lineTimeSeriesHourlyDefaultLocaleOptions,
|
|
735
735
|
data: timeSeriesAxisDemos.lineTimeSeriesDataHourlyDefaultTicksFormats,
|
|
736
736
|
chartType: chartTypes.LineChart,
|
|
737
|
-
isDemoExample: false
|
|
737
|
+
isDemoExample: false,
|
|
738
738
|
},
|
|
739
739
|
{
|
|
740
740
|
options: timeSeriesAxisDemos.lineTimeSeriesHourlyCustomTicksFormatsOptions,
|
|
741
741
|
data: timeSeriesAxisDemos.lineTimeSeriesDataHourlyCustomTicksFormats,
|
|
742
742
|
chartType: chartTypes.LineChart,
|
|
743
|
-
isDemoExample: false
|
|
743
|
+
isDemoExample: false,
|
|
744
744
|
},
|
|
745
745
|
{
|
|
746
746
|
data: timeSeriesAxisDemos.lineTimeSeriesDataDaily,
|
|
747
747
|
options: timeSeriesAxisDemos.lineTimeSeriesDailyOptions,
|
|
748
748
|
chartType: chartTypes.LineChart,
|
|
749
|
-
isDemoExample: false
|
|
749
|
+
isDemoExample: false,
|
|
750
750
|
},
|
|
751
751
|
{
|
|
752
752
|
data: timeSeriesAxisDemos.lineTimeSeriesDataWeekly,
|
|
753
753
|
options: timeSeriesAxisDemos.lineTimeSeriesWeeklyOptions,
|
|
754
754
|
chartType: chartTypes.LineChart,
|
|
755
|
-
isDemoExample: false
|
|
755
|
+
isDemoExample: false,
|
|
756
756
|
},
|
|
757
757
|
{
|
|
758
758
|
data: timeSeriesAxisDemos.lineTimeSeriesDataMonthlyDefaultLocale,
|
|
759
759
|
options: timeSeriesAxisDemos.lineTimeSeriesMonthlyDefaultLocaleOptions,
|
|
760
760
|
chartType: chartTypes.LineChart,
|
|
761
|
-
isDemoExample: false
|
|
761
|
+
isDemoExample: false,
|
|
762
762
|
},
|
|
763
763
|
{
|
|
764
764
|
data: timeSeriesAxisDemos.lineTimeSeriesDataMonthlyCustomLocale,
|
|
765
765
|
options: timeSeriesAxisDemos.lineTimeSeriesMonthlyCustomLocaleOptions,
|
|
766
766
|
chartType: chartTypes.LineChart,
|
|
767
|
-
isDemoExample: false
|
|
767
|
+
isDemoExample: false,
|
|
768
768
|
},
|
|
769
769
|
{
|
|
770
770
|
data: timeSeriesAxisDemos.lineTimeSeriesDataQuarterly,
|
|
771
771
|
options: timeSeriesAxisDemos.lineTimeSeriesQuarterlyOptions,
|
|
772
772
|
chartType: chartTypes.LineChart,
|
|
773
|
-
isDemoExample: false
|
|
773
|
+
isDemoExample: false,
|
|
774
774
|
},
|
|
775
775
|
{
|
|
776
776
|
data: timeSeriesAxisDemos.lineTimeSeriesDataYearly,
|
|
777
777
|
options: timeSeriesAxisDemos.lineTimeSeriesYearlyOptions,
|
|
778
778
|
chartType: chartTypes.LineChart,
|
|
779
|
-
isDemoExample: false
|
|
779
|
+
isDemoExample: false,
|
|
780
780
|
},
|
|
781
781
|
{
|
|
782
782
|
data: timeSeriesAxisDemos.lineTimeSeriesDataSingleDatum,
|
|
783
783
|
options: timeSeriesAxisDemos.lineTimeSeriesSingleDatumOptions,
|
|
784
784
|
chartType: chartTypes.LineChart,
|
|
785
|
-
isDemoExample: false
|
|
785
|
+
isDemoExample: false,
|
|
786
786
|
},
|
|
787
787
|
{
|
|
788
788
|
data: timeSeriesAxisDemos.lineTimeSeriesNoExtendedDomainData,
|
|
789
789
|
options: timeSeriesAxisDemos.lineTimeSeriesNoExtendedDomainOptions,
|
|
790
790
|
chartType: chartTypes.LineChart,
|
|
791
|
-
isDemoExample: false
|
|
791
|
+
isDemoExample: false,
|
|
792
792
|
},
|
|
793
793
|
{
|
|
794
794
|
data: timeSeriesAxisDemos.lineTimeSeriesDataTwoIdenticalLabels,
|
|
795
795
|
options: timeSeriesAxisDemos.lineTimeSeriesTwoIdenticalLabelsOptions,
|
|
796
796
|
chartType: chartTypes.LineChart,
|
|
797
|
-
isDemoExample: false
|
|
797
|
+
isDemoExample: false,
|
|
798
798
|
},
|
|
799
799
|
{
|
|
800
800
|
data: timeSeriesAxisDemos.lineTimeSeriesDataAllLabelsInPrimaryFormat,
|
|
801
801
|
options: timeSeriesAxisDemos.lineTimeSeriesAllLabelsInPrimaryFormatOptions,
|
|
802
802
|
chartType: chartTypes.LineChart,
|
|
803
|
-
isDemoExample: false
|
|
804
|
-
}
|
|
805
|
-
]
|
|
803
|
+
isDemoExample: false,
|
|
804
|
+
},
|
|
805
|
+
],
|
|
806
806
|
},
|
|
807
807
|
{
|
|
808
|
-
title:
|
|
808
|
+
title: 'Radar',
|
|
809
809
|
demos: [
|
|
810
810
|
{
|
|
811
811
|
data: radarDemos.radarData,
|
|
812
812
|
options: radarDemos.radarOptions,
|
|
813
|
-
chartType: chartTypes.RadarChart
|
|
813
|
+
chartType: chartTypes.RadarChart,
|
|
814
814
|
},
|
|
815
815
|
{
|
|
816
816
|
data: radarDemos.radarCenteredData,
|
|
817
817
|
options: radarDemos.radarCenteredOptions,
|
|
818
|
-
chartType: chartTypes.RadarChart
|
|
818
|
+
chartType: chartTypes.RadarChart,
|
|
819
819
|
},
|
|
820
820
|
{
|
|
821
821
|
data: radarDemos.radarWithMissingDataData,
|
|
822
822
|
options: radarDemos.radarWithMissingDataOptions,
|
|
823
|
-
chartType: chartTypes.RadarChart
|
|
823
|
+
chartType: chartTypes.RadarChart,
|
|
824
824
|
},
|
|
825
825
|
{
|
|
826
826
|
data: radarDemos.radarDenseData,
|
|
827
827
|
options: radarDemos.radarDenseOptions,
|
|
828
|
-
chartType: chartTypes.RadarChart
|
|
829
|
-
}
|
|
830
|
-
]
|
|
828
|
+
chartType: chartTypes.RadarChart,
|
|
829
|
+
},
|
|
830
|
+
],
|
|
831
831
|
},
|
|
832
832
|
{
|
|
833
|
-
title:
|
|
833
|
+
title: 'Combo',
|
|
834
834
|
demos: [
|
|
835
835
|
{
|
|
836
836
|
options: comboDemos.comboSimpleOptions,
|
|
837
837
|
data: comboDemos.comboSimpleData,
|
|
838
838
|
chartType: chartTypes.ComboChart,
|
|
839
|
-
isDemoExample: true
|
|
839
|
+
isDemoExample: true,
|
|
840
840
|
},
|
|
841
841
|
{
|
|
842
842
|
options: comboDemos.comboStackedOptions,
|
|
843
843
|
data: comboDemos.comboStackedData,
|
|
844
844
|
chartType: chartTypes.ComboChart,
|
|
845
|
-
isDemoExample: true
|
|
845
|
+
isDemoExample: true,
|
|
846
846
|
},
|
|
847
847
|
{
|
|
848
848
|
options: comboDemos.comboGroupedOptions,
|
|
849
849
|
data: comboDemos.comboGroupedData,
|
|
850
850
|
chartType: chartTypes.ComboChart,
|
|
851
|
-
isDemoExample: true
|
|
851
|
+
isDemoExample: true,
|
|
852
852
|
},
|
|
853
853
|
{
|
|
854
854
|
options: comboDemos.comboGroupedHorizontalOptions,
|
|
855
855
|
data: comboDemos.comboGroupedHorizontalData,
|
|
856
856
|
chartType: chartTypes.ComboChart,
|
|
857
|
-
isDemoExample: true
|
|
857
|
+
isDemoExample: true,
|
|
858
858
|
},
|
|
859
859
|
{
|
|
860
860
|
options: comboDemos.comboHorizontalOptions,
|
|
861
861
|
data: comboDemos.comboHorizontalData,
|
|
862
862
|
chartType: chartTypes.ComboChart,
|
|
863
|
-
isDemoExample: true
|
|
863
|
+
isDemoExample: true,
|
|
864
864
|
},
|
|
865
865
|
{
|
|
866
866
|
options: comboDemos.comboAreaLineOptions,
|
|
867
867
|
data: comboDemos.comboAreaLineData,
|
|
868
868
|
chartType: chartTypes.ComboChart,
|
|
869
|
-
isDemoExample: true
|
|
869
|
+
isDemoExample: true,
|
|
870
870
|
},
|
|
871
871
|
{
|
|
872
872
|
options: comboDemos.comboStackedAreaLineOptions,
|
|
873
873
|
data: comboDemos.comboStackedAreaLine,
|
|
874
874
|
chartType: chartTypes.ComboChart,
|
|
875
|
-
isDemoExample: true
|
|
875
|
+
isDemoExample: true,
|
|
876
876
|
},
|
|
877
877
|
{
|
|
878
878
|
options: comboDemos.comboLineScatterOptions,
|
|
879
879
|
data: comboDemos.comboLineScatterData,
|
|
880
880
|
chartType: chartTypes.ComboChart,
|
|
881
|
-
isDemoExample: true
|
|
881
|
+
isDemoExample: true,
|
|
882
882
|
},
|
|
883
883
|
{
|
|
884
884
|
options: comboDemos.comboEmptyOptions,
|
|
885
885
|
data: comboDemos.comboEmptyData,
|
|
886
886
|
chartType: chartTypes.ComboChart,
|
|
887
|
-
isDemoExample: true
|
|
887
|
+
isDemoExample: true,
|
|
888
888
|
},
|
|
889
889
|
{
|
|
890
890
|
options: comboDemos.comboLoadingOptions,
|
|
891
891
|
data: comboDemos.comboLoadingData,
|
|
892
892
|
chartType: chartTypes.ComboChart,
|
|
893
|
-
isDemoExample: true
|
|
893
|
+
isDemoExample: true,
|
|
894
894
|
},
|
|
895
895
|
{
|
|
896
896
|
options: comboDemos.comboErrorOptions,
|
|
897
897
|
data: comboDemos.comboErrorData,
|
|
898
898
|
chartType: chartTypes.ComboChart,
|
|
899
|
-
isDemoExample: true
|
|
900
|
-
}
|
|
901
|
-
]
|
|
899
|
+
isDemoExample: true,
|
|
900
|
+
},
|
|
901
|
+
],
|
|
902
902
|
},
|
|
903
903
|
{
|
|
904
|
-
title:
|
|
904
|
+
title: 'Treemap',
|
|
905
905
|
demos: [
|
|
906
906
|
{
|
|
907
907
|
data: treemapDemos.treemapData,
|
|
908
908
|
options: treemapDemos.treemapOptions,
|
|
909
|
-
chartType: chartTypes.TreemapChart
|
|
910
|
-
}
|
|
911
|
-
]
|
|
909
|
+
chartType: chartTypes.TreemapChart,
|
|
910
|
+
},
|
|
911
|
+
],
|
|
912
912
|
},
|
|
913
913
|
{
|
|
914
|
-
title:
|
|
914
|
+
title: 'Toolbar (alpha)',
|
|
915
915
|
demos: [
|
|
916
916
|
{
|
|
917
917
|
options: toolbarDemos.toolbarStackedBarTimeSeriesOptions,
|
|
918
918
|
data: toolbarDemos.toolbarStackedBarTimeSeriesData,
|
|
919
919
|
chartType: chartTypes.StackedBarChart,
|
|
920
|
-
isDemoExample: false
|
|
920
|
+
isDemoExample: false,
|
|
921
921
|
},
|
|
922
922
|
{
|
|
923
923
|
options: toolbarDemos.toolbarLineTimeSeriesOptions,
|
|
924
924
|
data: toolbarDemos.toolbarLineTimeSeriesData,
|
|
925
925
|
chartType: chartTypes.LineChart,
|
|
926
|
-
isDemoExample: false
|
|
927
|
-
}
|
|
928
|
-
]
|
|
926
|
+
isDemoExample: false,
|
|
927
|
+
},
|
|
928
|
+
],
|
|
929
929
|
},
|
|
930
930
|
{
|
|
931
|
-
title:
|
|
931
|
+
title: 'Zoom bar (alpha)',
|
|
932
932
|
demos: [
|
|
933
933
|
{
|
|
934
934
|
options: zoomBarDemos.zoomBarStackedAreaTimeSeriesOptions,
|
|
935
935
|
data: zoomBarDemos.zoomBarStackedAreaTimeSeriesData,
|
|
936
936
|
chartType: chartTypes.StackedAreaChart,
|
|
937
|
-
isDemoExample: false
|
|
937
|
+
isDemoExample: false,
|
|
938
938
|
},
|
|
939
939
|
{
|
|
940
940
|
options: zoomBarDemos.zoomBarSimpleBarTimeSeriesOptions,
|
|
941
941
|
data: zoomBarDemos.zoomBarSimpleBarTimeSeriesData,
|
|
942
942
|
chartType: chartTypes.SimpleBarChart,
|
|
943
|
-
isDemoExample: false
|
|
943
|
+
isDemoExample: false,
|
|
944
944
|
},
|
|
945
945
|
{
|
|
946
946
|
options: zoomBarDemos.zoomBarStackedBarTimeSeriesOptions,
|
|
947
947
|
data: zoomBarDemos.zoomBarStackedBarTimeSeriesData,
|
|
948
948
|
chartType: chartTypes.StackedBarChart,
|
|
949
|
-
isDemoExample: false
|
|
949
|
+
isDemoExample: false,
|
|
950
950
|
},
|
|
951
951
|
{
|
|
952
952
|
options: zoomBarDemos.definedZoomBarStackedBarTimeSeriesOptions,
|
|
953
953
|
data: zoomBarDemos.definedZoomBarStackedBarTimeSeriesData,
|
|
954
954
|
chartType: chartTypes.StackedBarChart,
|
|
955
|
-
isDemoExample: false
|
|
955
|
+
isDemoExample: false,
|
|
956
956
|
},
|
|
957
957
|
{
|
|
958
958
|
options: zoomBarDemos.zoomBarBubbleTimeSeriesOptions,
|
|
959
959
|
data: zoomBarDemos.zoomBarBubbleTimeSeriesData,
|
|
960
960
|
chartType: chartTypes.BubbleChart,
|
|
961
|
-
isDemoExample: false
|
|
961
|
+
isDemoExample: false,
|
|
962
962
|
},
|
|
963
963
|
{
|
|
964
964
|
options: zoomBarDemos.zoomBarLineTimeSeriesOptions,
|
|
965
965
|
data: zoomBarDemos.zoomBarLineTimeSeriesData,
|
|
966
966
|
chartType: chartTypes.LineChart,
|
|
967
|
-
isDemoExample: false
|
|
967
|
+
isDemoExample: false,
|
|
968
968
|
},
|
|
969
969
|
{
|
|
970
970
|
options: zoomBarDemos.zoomBarScatterTimeSeriesOptions,
|
|
971
971
|
data: zoomBarDemos.zoomBarScatterTimeSeriesData,
|
|
972
972
|
chartType: chartTypes.ScatterChart,
|
|
973
|
-
isDemoExample: false
|
|
973
|
+
isDemoExample: false,
|
|
974
974
|
},
|
|
975
975
|
{
|
|
976
976
|
options: zoomBarDemos.zoomBarStepTimeSeriesOptions,
|
|
977
977
|
data: zoomBarDemos.zoomBarStepTimeSeriesData,
|
|
978
978
|
chartType: chartTypes.LineChart,
|
|
979
|
-
isDemoExample: false
|
|
979
|
+
isDemoExample: false,
|
|
980
980
|
},
|
|
981
981
|
{
|
|
982
982
|
options: zoomBarDemos.zoomBarLineTimeSeries15secondsOptions,
|
|
983
983
|
data: zoomBarDemos.zoomBarLineTimeSeries15secondsData,
|
|
984
984
|
chartType: chartTypes.LineChart,
|
|
985
|
-
isDemoExample: false
|
|
985
|
+
isDemoExample: false,
|
|
986
986
|
},
|
|
987
987
|
{
|
|
988
988
|
options: zoomBarDemos.zoomBarLineTimeSeriesInitDomainOptions,
|
|
989
989
|
data: zoomBarDemos.zoomBarLineTimeSeriesInitDomainData,
|
|
990
990
|
chartType: chartTypes.LineChart,
|
|
991
|
-
isDemoExample: false
|
|
991
|
+
isDemoExample: false,
|
|
992
992
|
},
|
|
993
993
|
{
|
|
994
994
|
options: zoomBarDemos.zoomBarStringDateOptions,
|
|
995
995
|
data: zoomBarDemos.zoomBarStringDateData,
|
|
996
996
|
chartType: chartTypes.LineChart,
|
|
997
|
-
isDemoExample: false
|
|
997
|
+
isDemoExample: false,
|
|
998
998
|
},
|
|
999
999
|
{
|
|
1000
1000
|
options: zoomBarDemos.zoomBarLockedOptions,
|
|
1001
1001
|
data: zoomBarDemos.zoomBarLockedData,
|
|
1002
1002
|
chartType: chartTypes.StackedBarChart,
|
|
1003
|
-
isDemoExample: false
|
|
1003
|
+
isDemoExample: false,
|
|
1004
1004
|
},
|
|
1005
1005
|
{
|
|
1006
1006
|
options: zoomBarDemos.zoomBarSkeletonOptions,
|
|
1007
1007
|
data: zoomBarDemos.zoomBarSkeletonData,
|
|
1008
1008
|
chartType: chartTypes.StackedBarChart,
|
|
1009
|
-
isDemoExample: false
|
|
1010
|
-
}
|
|
1011
|
-
]
|
|
1012
|
-
}
|
|
1009
|
+
isDemoExample: false,
|
|
1010
|
+
},
|
|
1011
|
+
],
|
|
1012
|
+
},
|
|
1013
1013
|
];
|
|
1014
1014
|
var devOnlyDemoGroups = [
|
|
1015
1015
|
{
|
|
1016
|
-
title:
|
|
1016
|
+
title: 'High scale tests (DEV)',
|
|
1017
1017
|
demos: [
|
|
1018
1018
|
{
|
|
1019
1019
|
options: highScaleDemos.zoomBarHighScaleLineTimeSeriesOptions,
|
|
1020
1020
|
data: [],
|
|
1021
1021
|
isHighScale: true,
|
|
1022
1022
|
chartType: chartTypes.LineChart,
|
|
1023
|
-
isDemoExample: false
|
|
1024
|
-
}
|
|
1025
|
-
]
|
|
1026
|
-
}
|
|
1023
|
+
isDemoExample: false,
|
|
1024
|
+
},
|
|
1025
|
+
],
|
|
1026
|
+
},
|
|
1027
1027
|
];
|
|
1028
1028
|
var formatTitleString = function (str) {
|
|
1029
1029
|
return str
|
|
1030
|
-
.replace(/[^\w\s]/gi,
|
|
1031
|
-
.replace(/\s\s+/g,
|
|
1030
|
+
.replace(/[^\w\s]/gi, '')
|
|
1031
|
+
.replace(/\s\s+/g, ' ')
|
|
1032
1032
|
.toLowerCase()
|
|
1033
|
-
.replace(/\s+/g,
|
|
1033
|
+
.replace(/\s+/g, '-');
|
|
1034
1034
|
};
|
|
1035
1035
|
var mapDemoGroups = function (demoGroups) {
|
|
1036
1036
|
return demoGroups.map(function (demoGroup) {
|
|
@@ -1039,7 +1039,7 @@ var mapDemoGroups = function (demoGroups) {
|
|
|
1039
1039
|
demo.title = demo.options.title;
|
|
1040
1040
|
demo.id = formatTitleString(demoGroup.title) + "--" + formatTitleString(demo.options.title);
|
|
1041
1041
|
// if there isnt a height set in the chart options, use 400
|
|
1042
|
-
demo.options.height = (_a = demo.options.height, (_a !== null && _a !== void 0 ? _a :
|
|
1042
|
+
demo.options.height = (_a = demo.options.height, (_a !== null && _a !== void 0 ? _a : '400px'));
|
|
1043
1043
|
if (!demo.codesandbox) {
|
|
1044
1044
|
demo.codesandbox = {};
|
|
1045
1045
|
}
|
|
@@ -1059,7 +1059,7 @@ var mapDemoGroups = function (demoGroups) {
|
|
|
1059
1059
|
// add codesandbox and code to demos
|
|
1060
1060
|
allDemoGroups = mapDemoGroups(allDemoGroups);
|
|
1061
1061
|
// Only add the high-scale testcases in dev
|
|
1062
|
-
if (process.env.NODE_ENV !==
|
|
1062
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1063
1063
|
allDemoGroups = allDemoGroups.concat(mapDemoGroups(devOnlyDemoGroups));
|
|
1064
1064
|
}
|
|
1065
1065
|
// in the storybook we want to show all the demos
|