@carbon/charts 0.41.48 → 0.41.52
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 +20 -11
- package/build/demo/data/CHART_TYPES.d.ts +93 -0
- package/build/demo/data/bar.d.ts +17 -23
- package/build/demo/data/combo.d.ts +3 -0
- package/build/demo/data/index.d.ts +16 -92
- package/build/demo/data/line.d.ts +3 -77
- package/build/demo/data/scatter.d.ts +0 -18
- package/build/demo/data/wordcloud.d.ts +14 -0
- package/build/src/charts/index.d.ts +1 -0
- package/build/src/charts/wordcloud.d.ts +6 -0
- package/build/src/components/graphs/wordcloud.d.ts +10 -0
- package/build/src/components/index.d.ts +1 -0
- package/build/src/configuration.d.ts +2 -1
- package/build/src/interfaces/charts.d.ts +23 -0
- package/build/src/interfaces/events.d.ts +9 -0
- package/bundle.js +1 -1
- package/charts/index.d.ts +1 -0
- package/charts/index.js +1 -0
- package/charts/index.js.map +1 -1
- package/charts/wordcloud.d.ts +6 -0
- package/charts/wordcloud.js +46 -0
- package/charts/wordcloud.js.map +1 -0
- package/components/essentials/tooltip-axis.js +1 -1
- package/components/essentials/tooltip-axis.js.map +1 -1
- package/components/essentials/tooltip.js +5 -2
- package/components/essentials/tooltip.js.map +1 -1
- package/components/graphs/boxplot.js +2 -2
- package/components/graphs/boxplot.js.map +1 -1
- package/components/graphs/wordcloud.d.ts +10 -0
- package/components/graphs/wordcloud.js +229 -0
- package/components/graphs/wordcloud.js.map +1 -0
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/index.js.map +1 -1
- package/configuration.d.ts +2 -1
- package/configuration.js +22 -0
- package/configuration.js.map +1 -1
- package/demo/data/CHART_TYPES.d.ts +93 -0
- package/demo/data/CHART_TYPES.js +93 -0
- package/demo/data/CHART_TYPES.js.map +1 -0
- package/demo/data/area.js +1 -1
- package/demo/data/area.js.map +1 -1
- package/demo/data/bar.d.ts +17 -23
- package/demo/data/bar.js +60 -68
- package/demo/data/bar.js.map +1 -1
- package/demo/data/boxplot.js +2 -2
- package/demo/data/boxplot.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/combo.d.ts +3 -0
- package/demo/data/combo.js +3 -0
- package/demo/data/combo.js.map +1 -1
- package/demo/data/index.d.ts +16 -92
- package/demo/data/index.js +404 -512
- package/demo/data/index.js.map +1 -1
- package/demo/data/line.d.ts +3 -77
- package/demo/data/line.js +9 -73
- package/demo/data/line.js.map +1 -1
- package/demo/data/scatter.d.ts +0 -18
- package/demo/data/scatter.js +0 -51
- package/demo/data/scatter.js.map +1 -1
- package/demo/data/wordcloud.d.ts +14 -0
- package/demo/data/wordcloud.js +105 -0
- package/demo/data/wordcloud.js.map +1 -0
- package/demo/styles.css +2827 -28
- package/demo/styles.css.map +1 -1
- package/demo/styles.min.css +1 -1
- package/demo/styles.min.css.map +1 -1
- package/demo/tsconfig.tsbuildinfo +47 -312
- package/interfaces/charts.d.ts +23 -0
- package/interfaces/charts.js.map +1 -1
- package/interfaces/events.d.ts +9 -0
- package/interfaces/events.js +10 -0
- package/interfaces/events.js.map +1 -1
- package/model.js +1 -1
- package/model.js.map +1 -1
- package/package.json +8 -7
- package/styles/_type.scss +4 -2
- package/styles/graphs/_wordcloud.scss +7 -0
- package/styles/graphs/index.scss +1 -0
- package/styles/vendor/@carbon/colors/README.md +4 -3
- package/styles/vendor/@carbon/colors/es/index.js +13 -12
- package/styles/vendor/@carbon/colors/lib/index.js +98 -93
- package/styles/vendor/@carbon/colors/package.json +14 -10
- package/styles/vendor/@carbon/colors/scss/colors.scss +1 -1
- package/styles/vendor/@carbon/colors/scss/index.scss +1 -1
- package/styles/vendor/@carbon/colors/scss/mixins.scss +33 -13
- package/styles/vendor/@carbon/colors/umd/index.js +99 -94
- package/styles/vendor/@carbon/elements/README.md +0 -6
- package/styles/vendor/@carbon/elements/es/index.js +4 -11
- package/styles/vendor/@carbon/elements/lib/index.js +959 -13
- package/styles/vendor/@carbon/elements/package.json +17 -13
- package/styles/vendor/@carbon/elements/scss/colors/colors.scss +1 -1
- package/styles/vendor/@carbon/elements/scss/colors/index.scss +1 -1
- package/styles/vendor/@carbon/elements/scss/colors/mixins.scss +33 -13
- package/styles/vendor/@carbon/elements/scss/grid/_inlined/_mixins.scss +82 -22
- package/styles/vendor/@carbon/elements/scss/grid/_mixins.scss +82 -22
- package/styles/vendor/@carbon/elements/scss/grid/modules/_breakpoint.scss +266 -0
- package/styles/vendor/@carbon/{themes/node_modules/@carbon/colors/scss/colors.scss → elements/scss/grid/modules/_config.scss} +6 -6
- package/styles/vendor/@carbon/elements/scss/grid/modules/_css-grid.scss +350 -0
- package/styles/vendor/@carbon/elements/scss/grid/modules/_mixins.scss +323 -0
- package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/_breakpoint.scss +8 -3
- package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/_breakpoint.scss +232 -0
- package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/_convert.scss +40 -0
- package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/_spacing.scss +9 -0
- package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/_utilities.scss +41 -0
- package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +37 -0
- package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/generated/_spacing.scss +85 -0
- package/styles/vendor/@carbon/elements/scss/layout/_breakpoint.scss +8 -3
- package/styles/vendor/@carbon/elements/scss/layout/modules/_breakpoint.scss +232 -0
- package/styles/vendor/@carbon/elements/scss/layout/modules/_convert.scss +40 -0
- package/styles/vendor/@carbon/elements/scss/layout/modules/_spacing.scss +9 -0
- package/styles/vendor/@carbon/elements/scss/layout/modules/_utilities.scss +41 -0
- package/styles/vendor/@carbon/elements/scss/layout/modules/generated/_fluid-spacing.scss +37 -0
- package/styles/vendor/@carbon/elements/scss/layout/modules/generated/_spacing.scss +85 -0
- package/styles/vendor/@carbon/elements/scss/motion/motion.scss +24 -0
- package/styles/vendor/@carbon/elements/scss/themes/generated/_mixins.scss +643 -138
- package/styles/vendor/@carbon/elements/scss/themes/generated/_themes.scss +154 -77
- package/styles/vendor/@carbon/elements/scss/themes/generated/_tokens.scss +157 -75
- package/styles/vendor/@carbon/elements/scss/themes/modules/_theme.scss +50 -0
- package/styles/vendor/@carbon/elements/scss/themes/modules/_themes.scss +8 -0
- package/styles/vendor/@carbon/elements/scss/themes/modules/_utilities.scss +18 -0
- package/styles/vendor/@carbon/elements/scss/themes/modules/generated/_themes.scss +247 -0
- package/styles/vendor/@carbon/elements/scss/type/_font-family.scss +2 -2
- package/styles/vendor/@carbon/elements/scss/type/_inlined/_font-family.scss +2 -2
- package/styles/vendor/@carbon/elements/scss/type/_inlined/_reset.scss +9 -3
- package/styles/vendor/@carbon/elements/scss/type/_inlined/_scale.scss +2 -2
- package/styles/vendor/@carbon/elements/scss/type/_inlined/_styles.scss +60 -57
- package/styles/vendor/@carbon/elements/scss/type/_inlined/font-face/_mono.scss +72 -72
- package/styles/vendor/@carbon/elements/scss/type/_inlined/font-face/_sans-condensed.scss +302 -0
- package/styles/vendor/@carbon/elements/scss/type/_inlined/font-face/_sans.scss +84 -84
- package/styles/vendor/@carbon/elements/scss/type/_inlined/font-face/_serif.scss +72 -72
- package/styles/vendor/@carbon/elements/scss/type/_reset.scss +9 -3
- package/styles/vendor/@carbon/elements/scss/type/_scale.scss +2 -2
- package/styles/vendor/@carbon/elements/scss/type/_styles.scss +60 -57
- package/styles/vendor/@carbon/elements/scss/type/font-face/_mono.scss +72 -72
- package/styles/vendor/@carbon/elements/scss/type/font-face/_sans-condensed.scss +302 -0
- package/styles/vendor/@carbon/elements/scss/type/font-face/_sans.scss +84 -84
- package/styles/vendor/@carbon/elements/scss/type/font-face/_serif.scss +72 -72
- package/styles/vendor/@carbon/elements/scss/type/modules/_classes.scss +42 -0
- package/styles/vendor/@carbon/elements/scss/type/modules/_font-family.scss +70 -0
- package/styles/vendor/@carbon/elements/scss/type/modules/_prefix.scss +11 -0
- package/styles/vendor/@carbon/elements/scss/type/modules/_reset.scss +92 -0
- package/styles/vendor/@carbon/elements/scss/type/modules/_scale.scss +56 -0
- package/styles/vendor/@carbon/elements/scss/type/modules/_styles.scss +713 -0
- package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/_breakpoint.scss +8 -3
- package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/_breakpoint.scss +232 -0
- package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/_convert.scss +40 -0
- package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/_spacing.scss +9 -0
- package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/_utilities.scss +41 -0
- package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +37 -0
- package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/generated/_spacing.scss +85 -0
- package/styles/vendor/@carbon/elements/src/__tests__/PublicAPI-test.js +12 -0
- package/styles/vendor/@carbon/elements/src/__tests__/__snapshots__/PublicAPI-test.js.snap +306 -0
- package/styles/vendor/@carbon/elements/src/index.js +166 -4
- package/styles/vendor/@carbon/elements/umd/index.js +961 -17
- package/styles/vendor/@carbon/layout/README.md +0 -6
- package/styles/vendor/@carbon/layout/es/index.js +1 -1
- package/styles/vendor/@carbon/{themes/node_modules/@carbon/colors/scss → layout}/index.scss +5 -6
- package/styles/vendor/@carbon/layout/lib/index.js +30 -30
- package/styles/vendor/@carbon/layout/package.json +14 -10
- package/styles/vendor/@carbon/layout/scss/_breakpoint.scss +8 -3
- package/styles/vendor/@carbon/layout/scss/modules/_breakpoint.scss +232 -0
- package/styles/vendor/@carbon/layout/scss/modules/_convert.scss +40 -0
- package/styles/vendor/@carbon/layout/scss/modules/_spacing.scss +9 -0
- package/styles/vendor/@carbon/layout/scss/modules/_utilities.scss +41 -0
- package/styles/vendor/@carbon/layout/scss/modules/generated/_fluid-spacing.scss +37 -0
- package/styles/vendor/@carbon/layout/scss/modules/generated/_spacing.scss +85 -0
- package/styles/vendor/@carbon/layout/umd/index.js +31 -31
- package/styles/vendor/@carbon/motion/README.md +0 -6
- package/styles/vendor/@carbon/motion/es/index.js +8 -1
- package/styles/vendor/@carbon/motion/index.scss +56 -0
- package/styles/vendor/@carbon/motion/lib/index.js +14 -0
- package/styles/vendor/@carbon/motion/package.json +10 -6
- package/styles/vendor/@carbon/motion/scss/motion.scss +24 -0
- package/styles/vendor/@carbon/motion/src/index.js +16 -0
- package/styles/vendor/@carbon/motion/umd/index.js +15 -1
- package/styles/vendor/@carbon/themes/README.md +5 -4
- package/styles/vendor/@carbon/themes/es/index.js +719 -57
- package/styles/vendor/@carbon/themes/index.scss +9 -0
- package/styles/vendor/@carbon/themes/lib/index.js +1297 -251
- package/styles/vendor/@carbon/themes/metadata.yml +3 -0
- package/styles/vendor/@carbon/themes/package.json +23 -14
- package/styles/vendor/@carbon/themes/scss/_mixins.scss +27 -146
- package/styles/vendor/@carbon/themes/scss/_theme-maps.scss +3 -263
- package/styles/vendor/@carbon/themes/scss/_tokens.scss +2 -297
- package/styles/vendor/@carbon/themes/scss/generated/_mixins.scss +1851 -0
- package/styles/vendor/@carbon/themes/scss/generated/_themes.scss +1534 -0
- package/styles/vendor/@carbon/themes/scss/generated/_tokens.scss +1757 -0
- package/styles/vendor/@carbon/themes/scss/modules/_theme.scss +50 -0
- package/styles/vendor/@carbon/themes/scss/modules/_themes.scss +8 -0
- package/styles/vendor/@carbon/themes/scss/modules/_utilities.scss +18 -0
- package/styles/vendor/@carbon/themes/scss/modules/generated/_themes.scss +247 -0
- package/styles/vendor/@carbon/themes/scss/themes.scss +3 -2
- package/styles/vendor/@carbon/themes/src/g10.js +97 -5
- package/styles/vendor/@carbon/themes/src/g100.js +96 -4
- package/styles/vendor/@carbon/themes/src/g90.js +98 -6
- package/styles/vendor/@carbon/themes/src/index.js +5 -3
- package/styles/vendor/@carbon/themes/src/tokens.js +112 -2
- package/styles/vendor/@carbon/themes/src/tools.js +25 -0
- package/styles/vendor/@carbon/themes/src/v9.js +181 -0
- package/styles/vendor/@carbon/themes/src/white.js +98 -3
- package/styles/vendor/@carbon/themes/umd/index.js +1297 -254
- package/styles/vendor/@carbon/type/README.md +0 -6
- package/styles/vendor/@carbon/type/es/index.js +111 -82
- package/styles/vendor/@carbon/type/lib/index.js +132 -103
- package/styles/vendor/@carbon/type/package.json +12 -8
- package/styles/vendor/@carbon/type/scss/_font-family.scss +2 -2
- package/styles/vendor/@carbon/type/scss/_inlined/_font-family.scss +2 -2
- package/styles/vendor/@carbon/type/scss/_inlined/_reset.scss +9 -3
- package/styles/vendor/@carbon/type/scss/_inlined/_scale.scss +2 -2
- package/styles/vendor/@carbon/type/scss/_inlined/_styles.scss +60 -57
- package/styles/vendor/@carbon/type/scss/_inlined/font-face/_mono.scss +72 -72
- package/styles/vendor/@carbon/type/scss/_inlined/font-face/_sans-condensed.scss +302 -0
- package/styles/vendor/@carbon/type/scss/_inlined/font-face/_sans.scss +84 -84
- package/styles/vendor/@carbon/type/scss/_inlined/font-face/_serif.scss +72 -72
- package/styles/vendor/@carbon/type/scss/_reset.scss +9 -3
- package/styles/vendor/@carbon/type/scss/_scale.scss +2 -2
- package/styles/vendor/@carbon/type/scss/_styles.scss +60 -57
- package/styles/vendor/@carbon/type/scss/font-face/_mono.scss +72 -72
- package/styles/vendor/@carbon/type/scss/font-face/_sans-condensed.scss +302 -0
- package/styles/vendor/@carbon/type/scss/font-face/_sans.scss +84 -84
- package/styles/vendor/@carbon/type/scss/font-face/_serif.scss +72 -72
- package/styles/vendor/@carbon/type/scss/modules/_classes.scss +42 -0
- package/styles/vendor/@carbon/type/scss/modules/_font-family.scss +70 -0
- package/styles/vendor/@carbon/type/scss/modules/_prefix.scss +11 -0
- package/styles/vendor/@carbon/type/scss/modules/_reset.scss +92 -0
- package/styles/vendor/@carbon/type/scss/modules/_scale.scss +56 -0
- package/styles/vendor/@carbon/type/scss/modules/_styles.scss +713 -0
- package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/_breakpoint.scss +8 -3
- package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/_breakpoint.scss +232 -0
- package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/_convert.scss +40 -0
- package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/_spacing.scss +9 -0
- package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/_utilities.scss +41 -0
- package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +37 -0
- package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/generated/_spacing.scss +85 -0
- package/styles/vendor/@carbon/type/src/__tests__/__snapshots__/styles-test.js.snap +32 -34
- package/styles/vendor/@carbon/type/src/__tests__/exports-test.js +1 -1
- package/styles/vendor/@carbon/type/src/__tests__/fluid-test.js +26 -26
- package/styles/vendor/@carbon/type/src/__tests__/styles-test.js +1 -1
- package/styles/vendor/@carbon/type/src/__tests__/tokens-test.js +2 -2
- package/styles/vendor/@carbon/type/src/fluid.js +1 -1
- package/styles/vendor/@carbon/type/src/index.js +1 -1
- package/styles/vendor/@carbon/type/src/styles.js +65 -64
- package/styles/vendor/@carbon/type/src/tokens.js +64 -31
- package/styles/vendor/@carbon/type/umd/index.js +134 -105
- package/styles-g10.css +570 -2
- package/styles-g10.css.map +1 -1
- package/styles-g10.min.css +1 -1
- package/styles-g10.min.css.map +1 -1
- package/styles-g100.css +574 -6
- package/styles-g100.css.map +1 -1
- package/styles-g100.min.css +1 -1
- package/styles-g100.min.css.map +1 -1
- package/styles-g90.css +574 -6
- package/styles-g90.css.map +1 -1
- package/styles-g90.min.css +1 -1
- package/styles-g90.min.css.map +1 -1
- package/styles.css +570 -2
- package/styles.css.map +1 -1
- package/styles.min.css +1 -1
- package/styles.min.css.map +1 -1
- package/tools.js +1 -1
- package/tools.js.map +1 -1
- package/tsconfig.tsbuildinfo +67 -17
- package/styles/vendor/@carbon/layout/docs/sass.md +0 -1899
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/LICENSE +0 -201
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/README.md +0 -154
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/es/index.js +0 -287
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/lib/index.js +0 -410
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/package.json +0 -51
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/scss/mixins.scss +0 -646
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/umd/index.js +0 -416
package/demo/data/index.js
CHANGED
|
@@ -2,125 +2,327 @@ import * as areaDemos from './area';
|
|
|
2
2
|
import * as barDemos from './bar';
|
|
3
3
|
import * as boxplotDemos from './boxplot';
|
|
4
4
|
import * as bubbleDemos from './bubble';
|
|
5
|
+
import * as comboDemos from './combo';
|
|
5
6
|
import * as donutDemos from './donut';
|
|
7
|
+
import * as gaugeDemos from './gauge';
|
|
6
8
|
import * as lineDemos from './line';
|
|
9
|
+
import * as lollipopDemos from './lollipop';
|
|
10
|
+
import * as meterDemos from './meter';
|
|
7
11
|
import * as pieDemos from './pie';
|
|
8
|
-
import * as
|
|
12
|
+
import * as radarDemos from './radar';
|
|
9
13
|
import * as scatterDemos from './scatter';
|
|
10
|
-
import * as lollipopDemos from './lollipop';
|
|
11
14
|
import * as stepDemos from './step';
|
|
12
|
-
import * as meterDemos from './meter';
|
|
13
15
|
import * as timeSeriesAxisDemos from './time-series-axis';
|
|
14
|
-
import * as radarDemos from './radar';
|
|
15
16
|
import * as treemapDemos from './treemap';
|
|
16
17
|
import * as toolbarDemos from './toolbar';
|
|
18
|
+
import * as wordCloudDemos from './wordcloud';
|
|
17
19
|
import * as zoomBarDemos from './zoom-bar';
|
|
18
|
-
import * as comboDemos from './combo';
|
|
19
20
|
import * as highScaleDemos from './high-scale';
|
|
20
21
|
export * from './area';
|
|
21
22
|
export * from './bar';
|
|
22
23
|
export * from './boxplot';
|
|
23
24
|
export * from './bubble';
|
|
25
|
+
export * from './combo';
|
|
24
26
|
export * from './donut';
|
|
27
|
+
export * from './gauge';
|
|
25
28
|
export * from './line';
|
|
29
|
+
export * from './lollipop';
|
|
26
30
|
export * from './meter';
|
|
27
31
|
export * from './pie';
|
|
28
|
-
export * from './
|
|
32
|
+
export * from './radar';
|
|
29
33
|
export * from './scatter';
|
|
30
34
|
export * from './step';
|
|
31
|
-
export * from './
|
|
32
|
-
export * from './combo';
|
|
35
|
+
export * from './time-series-axis';
|
|
33
36
|
export * from './treemap';
|
|
37
|
+
export * from './toolbar';
|
|
38
|
+
export * from './wordcloud';
|
|
39
|
+
export * from './zoom-bar';
|
|
40
|
+
export * from './high-scale';
|
|
34
41
|
import { createChartSandbox, createReactChartApp, createAngularChartApp, createVueChartApp, createVanillaChartApp, createSvelteChartApp, } from '../create-codesandbox';
|
|
35
|
-
import
|
|
36
|
-
export
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
vanilla: 'LineChart',
|
|
74
|
-
angular: 'ibm-line-chart',
|
|
75
|
-
vue: 'ccv-line-chart',
|
|
76
|
-
},
|
|
77
|
-
LollipopChart: {
|
|
78
|
-
vanilla: 'LollipopChart',
|
|
79
|
-
angular: 'ibm-lollipop-chart',
|
|
80
|
-
vue: 'ccv-lollipop-chart',
|
|
42
|
+
import chartTypes from './CHART_TYPES';
|
|
43
|
+
export * from './CHART_TYPES';
|
|
44
|
+
export var DemoGroupTypes;
|
|
45
|
+
(function (DemoGroupTypes) {
|
|
46
|
+
DemoGroupTypes["UTILITY"] = "utility";
|
|
47
|
+
DemoGroupTypes["SIMPLE_CHART"] = "simple-chart";
|
|
48
|
+
DemoGroupTypes["COMPLEX_CHART"] = "complex-chart";
|
|
49
|
+
})(DemoGroupTypes || (DemoGroupTypes = {}));
|
|
50
|
+
var utilityDemoGroups = [
|
|
51
|
+
{
|
|
52
|
+
title: 'Axes',
|
|
53
|
+
demos: [
|
|
54
|
+
{
|
|
55
|
+
options: barDemos.simpleBarOptionsCustomTicks,
|
|
56
|
+
data: barDemos.simpleBarDataCustomTicks,
|
|
57
|
+
chartType: chartTypes.SimpleBarChart,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
options: barDemos.stackedBarTimeSeriesOptionsCustomTicks,
|
|
61
|
+
data: barDemos.stackedBarTimeSeriesDataCustomTicks,
|
|
62
|
+
chartType: chartTypes.StackedBarChart,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
options: barDemos.simpleBarFixedDomainOptions,
|
|
66
|
+
data: barDemos.simpleBarData,
|
|
67
|
+
chartType: chartTypes.SimpleBarChart,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
options: lineDemos.lineCustomDomainOptions,
|
|
71
|
+
data: lineDemos.lineData,
|
|
72
|
+
chartType: chartTypes.LineChart,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
options: lineDemos.lineTimeSeriesRotatedTicksOptions,
|
|
76
|
+
data: lineDemos.lineTimeSeriesDataRotatedTicks,
|
|
77
|
+
chartType: chartTypes.LineChart,
|
|
78
|
+
},
|
|
79
|
+
],
|
|
81
80
|
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
{
|
|
82
|
+
title: 'Axes/Time series',
|
|
83
|
+
demos: [
|
|
84
|
+
{
|
|
85
|
+
options: timeSeriesAxisDemos.lineTimeSeries15secondsOptions,
|
|
86
|
+
data: timeSeriesAxisDemos.lineTimeSeriesData15seconds,
|
|
87
|
+
chartType: chartTypes.LineChart,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
options: timeSeriesAxisDemos.lineTimeSeriesMinuteOptions,
|
|
91
|
+
data: timeSeriesAxisDemos.lineTimeSeriesDataMinute,
|
|
92
|
+
chartType: chartTypes.LineChart,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
options: timeSeriesAxisDemos.lineTimeSeries30minutesOptions,
|
|
96
|
+
data: timeSeriesAxisDemos.lineTimeSeriesData30minutes,
|
|
97
|
+
chartType: chartTypes.LineChart,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
options: timeSeriesAxisDemos.lineTimeSeriesHourlyDefaultLocaleOptions,
|
|
101
|
+
data: timeSeriesAxisDemos.lineTimeSeriesDataHourlyDefaultTicksFormats,
|
|
102
|
+
chartType: chartTypes.LineChart,
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
options: timeSeriesAxisDemos.lineTimeSeriesHourlyCustomTicksFormatsOptions,
|
|
106
|
+
data: timeSeriesAxisDemos.lineTimeSeriesDataHourlyCustomTicksFormats,
|
|
107
|
+
chartType: chartTypes.LineChart,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
data: timeSeriesAxisDemos.lineTimeSeriesDataDaily,
|
|
111
|
+
options: timeSeriesAxisDemos.lineTimeSeriesDailyOptions,
|
|
112
|
+
chartType: chartTypes.LineChart,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
data: timeSeriesAxisDemos.lineTimeSeriesDataWeekly,
|
|
116
|
+
options: timeSeriesAxisDemos.lineTimeSeriesWeeklyOptions,
|
|
117
|
+
chartType: chartTypes.LineChart,
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
data: timeSeriesAxisDemos.lineTimeSeriesDataMonthlyDefaultLocale,
|
|
121
|
+
options: timeSeriesAxisDemos.lineTimeSeriesMonthlyDefaultLocaleOptions,
|
|
122
|
+
chartType: chartTypes.LineChart,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
data: timeSeriesAxisDemos.lineTimeSeriesDataMonthlyCustomLocale,
|
|
126
|
+
options: timeSeriesAxisDemos.lineTimeSeriesMonthlyCustomLocaleOptions,
|
|
127
|
+
chartType: chartTypes.LineChart,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
data: timeSeriesAxisDemos.lineTimeSeriesDataQuarterly,
|
|
131
|
+
options: timeSeriesAxisDemos.lineTimeSeriesQuarterlyOptions,
|
|
132
|
+
chartType: chartTypes.LineChart,
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
data: timeSeriesAxisDemos.lineTimeSeriesDataYearly,
|
|
136
|
+
options: timeSeriesAxisDemos.lineTimeSeriesYearlyOptions,
|
|
137
|
+
chartType: chartTypes.LineChart,
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
data: timeSeriesAxisDemos.lineTimeSeriesDataSingleDatum,
|
|
141
|
+
options: timeSeriesAxisDemos.lineTimeSeriesSingleDatumOptions,
|
|
142
|
+
chartType: chartTypes.LineChart,
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
data: timeSeriesAxisDemos.lineTimeSeriesNoExtendedDomainData,
|
|
146
|
+
options: timeSeriesAxisDemos.lineTimeSeriesNoExtendedDomainOptions,
|
|
147
|
+
chartType: chartTypes.LineChart,
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
data: timeSeriesAxisDemos.lineTimeSeriesDataTwoIdenticalLabels,
|
|
151
|
+
options: timeSeriesAxisDemos.lineTimeSeriesTwoIdenticalLabelsOptions,
|
|
152
|
+
chartType: chartTypes.LineChart,
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
data: timeSeriesAxisDemos.lineTimeSeriesDataAllLabelsInPrimaryFormat,
|
|
156
|
+
options: timeSeriesAxisDemos.lineTimeSeriesAllLabelsInPrimaryFormatOptions,
|
|
157
|
+
chartType: chartTypes.LineChart,
|
|
158
|
+
},
|
|
159
|
+
],
|
|
86
160
|
},
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
161
|
+
{
|
|
162
|
+
title: 'Colors',
|
|
163
|
+
demos: [
|
|
164
|
+
{
|
|
165
|
+
options: barDemos.simpleBarColorOverrideOptions,
|
|
166
|
+
data: barDemos.simpleBarData,
|
|
167
|
+
chartType: chartTypes.SimpleBarChart,
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
options: lineDemos.lineCustomColorOptions,
|
|
171
|
+
data: lineDemos.lineData,
|
|
172
|
+
chartType: chartTypes.LineChart,
|
|
173
|
+
},
|
|
174
|
+
],
|
|
91
175
|
},
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
176
|
+
{
|
|
177
|
+
title: 'Legend',
|
|
178
|
+
demos: [
|
|
179
|
+
{
|
|
180
|
+
options: barDemos.simpleBarCenteredLegendOptions,
|
|
181
|
+
data: barDemos.simpleBarCenteredLegendData,
|
|
182
|
+
chartType: chartTypes.SimpleBarChart,
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
options: barDemos.simpleBarCustomLegendOrderOptions,
|
|
186
|
+
data: barDemos.simpleBarData,
|
|
187
|
+
chartType: chartTypes.SimpleBarChart,
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
options: barDemos.groupedBarSelectedGroupsOptions,
|
|
191
|
+
data: barDemos.groupedBarSelectedGroupsData,
|
|
192
|
+
chartType: chartTypes.GroupedBarChart,
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
options: lineDemos.lineSelectedGroupsOptions,
|
|
196
|
+
data: lineDemos.lineSelectedGroupsData,
|
|
197
|
+
chartType: chartTypes.LineChart,
|
|
198
|
+
},
|
|
199
|
+
],
|
|
96
200
|
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
201
|
+
{
|
|
202
|
+
title: 'Locale',
|
|
203
|
+
demos: [
|
|
204
|
+
{
|
|
205
|
+
options: barDemos.simpleBarTurkishLocaleOptions,
|
|
206
|
+
data: barDemos.simpleBarTurkishLocaleData,
|
|
207
|
+
chartType: chartTypes.SimpleBarChart,
|
|
208
|
+
},
|
|
209
|
+
],
|
|
101
210
|
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
211
|
+
{
|
|
212
|
+
title: 'Thresholds',
|
|
213
|
+
demos: [
|
|
214
|
+
{
|
|
215
|
+
options: lineDemos.lineTimeSeriesWithThresholdsOptions,
|
|
216
|
+
data: lineDemos.lineTimeSeriesData,
|
|
217
|
+
chartType: chartTypes.LineChart,
|
|
218
|
+
},
|
|
219
|
+
],
|
|
106
220
|
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
221
|
+
{
|
|
222
|
+
title: 'Toolbar',
|
|
223
|
+
demos: [
|
|
224
|
+
{
|
|
225
|
+
options: toolbarDemos.toolbarStackedBarTimeSeriesOptions,
|
|
226
|
+
data: toolbarDemos.toolbarStackedBarTimeSeriesData,
|
|
227
|
+
chartType: chartTypes.StackedBarChart,
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
options: toolbarDemos.toolbarLineTimeSeriesOptions,
|
|
231
|
+
data: toolbarDemos.toolbarLineTimeSeriesData,
|
|
232
|
+
chartType: chartTypes.LineChart,
|
|
233
|
+
},
|
|
234
|
+
],
|
|
111
235
|
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
236
|
+
{
|
|
237
|
+
title: 'Truncations',
|
|
238
|
+
demos: [
|
|
239
|
+
{
|
|
240
|
+
options: barDemos.simpleHorizontalBarLongLabelOptions,
|
|
241
|
+
data: barDemos.simpleHorizontalBarLongLabelData,
|
|
242
|
+
chartType: chartTypes.SimpleBarChart,
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
options: lineDemos.lineLongLabelOptions,
|
|
246
|
+
data: lineDemos.lineLongLabelData,
|
|
247
|
+
chartType: chartTypes.LineChart,
|
|
248
|
+
},
|
|
249
|
+
],
|
|
116
250
|
},
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
251
|
+
{
|
|
252
|
+
title: 'Zoom bar',
|
|
253
|
+
demos: [
|
|
254
|
+
{
|
|
255
|
+
options: zoomBarDemos.zoomBarStackedAreaTimeSeriesOptions,
|
|
256
|
+
data: zoomBarDemos.zoomBarStackedAreaTimeSeriesData,
|
|
257
|
+
chartType: chartTypes.StackedAreaChart,
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
options: zoomBarDemos.zoomBarSimpleBarTimeSeriesOptions,
|
|
261
|
+
data: zoomBarDemos.zoomBarSimpleBarTimeSeriesData,
|
|
262
|
+
chartType: chartTypes.SimpleBarChart,
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
options: zoomBarDemos.zoomBarStackedBarTimeSeriesOptions,
|
|
266
|
+
data: zoomBarDemos.zoomBarStackedBarTimeSeriesData,
|
|
267
|
+
chartType: chartTypes.StackedBarChart,
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
options: zoomBarDemos.definedZoomBarStackedBarTimeSeriesOptions,
|
|
271
|
+
data: zoomBarDemos.definedZoomBarStackedBarTimeSeriesData,
|
|
272
|
+
chartType: chartTypes.StackedBarChart,
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
options: zoomBarDemos.zoomBarBubbleTimeSeriesOptions,
|
|
276
|
+
data: zoomBarDemos.zoomBarBubbleTimeSeriesData,
|
|
277
|
+
chartType: chartTypes.BubbleChart,
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
options: zoomBarDemos.zoomBarLineTimeSeriesOptions,
|
|
281
|
+
data: zoomBarDemos.zoomBarLineTimeSeriesData,
|
|
282
|
+
chartType: chartTypes.LineChart,
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
options: zoomBarDemos.zoomBarScatterTimeSeriesOptions,
|
|
286
|
+
data: zoomBarDemos.zoomBarScatterTimeSeriesData,
|
|
287
|
+
chartType: chartTypes.ScatterChart,
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
options: zoomBarDemos.zoomBarStepTimeSeriesOptions,
|
|
291
|
+
data: zoomBarDemos.zoomBarStepTimeSeriesData,
|
|
292
|
+
chartType: chartTypes.LineChart,
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
options: zoomBarDemos.zoomBarLineTimeSeries15secondsOptions,
|
|
296
|
+
data: zoomBarDemos.zoomBarLineTimeSeries15secondsData,
|
|
297
|
+
chartType: chartTypes.LineChart,
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
options: zoomBarDemos.zoomBarLineTimeSeriesInitDomainOptions,
|
|
301
|
+
data: zoomBarDemos.zoomBarLineTimeSeriesInitDomainData,
|
|
302
|
+
chartType: chartTypes.LineChart,
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
options: zoomBarDemos.zoomBarStringDateOptions,
|
|
306
|
+
data: zoomBarDemos.zoomBarStringDateData,
|
|
307
|
+
chartType: chartTypes.LineChart,
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
options: zoomBarDemos.zoomBarLockedOptions,
|
|
311
|
+
data: zoomBarDemos.zoomBarLockedData,
|
|
312
|
+
chartType: chartTypes.StackedBarChart,
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
options: zoomBarDemos.zoomBarSkeletonOptions,
|
|
316
|
+
data: zoomBarDemos.zoomBarSkeletonData,
|
|
317
|
+
chartType: chartTypes.StackedBarChart,
|
|
318
|
+
},
|
|
319
|
+
],
|
|
121
320
|
},
|
|
122
|
-
|
|
123
|
-
|
|
321
|
+
].map(function (demoGroup) {
|
|
322
|
+
demoGroup.type = DemoGroupTypes.UTILITY;
|
|
323
|
+
return demoGroup;
|
|
324
|
+
});
|
|
325
|
+
var simpleChartDemos = [
|
|
124
326
|
{
|
|
125
327
|
title: 'Area',
|
|
126
328
|
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.',
|
|
@@ -129,12 +331,12 @@ var allDemoGroups = [
|
|
|
129
331
|
options: areaDemos.areaTimeSeriesCurvedOptions,
|
|
130
332
|
data: areaDemos.areaTimeSeriesCurvedData,
|
|
131
333
|
chartType: chartTypes.AreaChart,
|
|
334
|
+
mainDemo: true,
|
|
132
335
|
},
|
|
133
336
|
{
|
|
134
337
|
options: areaDemos.areaTimeSeriesOptions,
|
|
135
338
|
data: areaDemos.areaTimeSeriesData,
|
|
136
339
|
chartType: chartTypes.AreaChart,
|
|
137
|
-
isDemoExample: false,
|
|
138
340
|
},
|
|
139
341
|
{
|
|
140
342
|
options: areaDemos.areaDiscreteDomainOptions,
|
|
@@ -145,31 +347,21 @@ var allDemoGroups = [
|
|
|
145
347
|
options: areaDemos.stackedAreaTimeSeriesOptions,
|
|
146
348
|
data: areaDemos.stackedAreaTimeSeriesData,
|
|
147
349
|
chartType: chartTypes.StackedAreaChart,
|
|
148
|
-
isDemoExample: true,
|
|
149
350
|
},
|
|
150
351
|
{
|
|
151
352
|
options: areaDemos.stackedAreaTimeSeriesUnevenDataOptions,
|
|
152
353
|
data: areaDemos.stackedAreaTimeSeriesUnevenData,
|
|
153
354
|
chartType: chartTypes.StackedAreaChart,
|
|
154
|
-
isDemoExample: true,
|
|
155
355
|
},
|
|
156
356
|
{
|
|
157
357
|
options: areaDemos.stackedAreaPercentageTimeSeriesOptions,
|
|
158
358
|
data: areaDemos.stackedAreaTimeSeriesData,
|
|
159
359
|
chartType: chartTypes.StackedAreaChart,
|
|
160
|
-
isDemoExample: true,
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
options: areaDemos.sparklineOptions,
|
|
164
|
-
data: areaDemos.sparklineTimeSeriesData,
|
|
165
|
-
chartType: chartTypes.AreaChart,
|
|
166
|
-
isDemoExample: true,
|
|
167
360
|
},
|
|
168
361
|
{
|
|
169
362
|
options: areaDemos.boundedAreaTimeSeriesOptions,
|
|
170
363
|
data: areaDemos.boundedAreaTimeSeriesData,
|
|
171
364
|
chartType: chartTypes.AreaChart,
|
|
172
|
-
isDemoExample: true,
|
|
173
365
|
},
|
|
174
366
|
{
|
|
175
367
|
options: areaDemos.areaSkeletonOptions,
|
|
@@ -194,7 +386,7 @@ var allDemoGroups = [
|
|
|
194
386
|
],
|
|
195
387
|
},
|
|
196
388
|
{
|
|
197
|
-
title: 'Bar (
|
|
389
|
+
title: 'Bar (simple)',
|
|
198
390
|
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.',
|
|
199
391
|
demos: [
|
|
200
392
|
{
|
|
@@ -203,171 +395,114 @@ var allDemoGroups = [
|
|
|
203
395
|
chartType: chartTypes.SimpleBarChart,
|
|
204
396
|
},
|
|
205
397
|
{
|
|
206
|
-
options: barDemos.
|
|
207
|
-
data: barDemos.
|
|
208
|
-
chartType: chartTypes.SimpleBarChart,
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
options: barDemos.simpleBarOptionsCustomTicks,
|
|
212
|
-
data: barDemos.simpleBarDataCustomTicks,
|
|
213
|
-
chartType: chartTypes.SimpleBarChart,
|
|
214
|
-
isDemoExample: false,
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
options: barDemos.simpleBarCustomLegendOrderOptions,
|
|
218
|
-
data: barDemos.simpleBarData,
|
|
398
|
+
options: barDemos.simpleBarTimeSeriesOptions,
|
|
399
|
+
data: barDemos.simpleBarTimeSeriesData,
|
|
219
400
|
chartType: chartTypes.SimpleBarChart,
|
|
220
401
|
},
|
|
221
402
|
{
|
|
222
|
-
options: barDemos.
|
|
223
|
-
data: barDemos.
|
|
403
|
+
options: barDemos.simpleBarTimeSeriesDenseOptions,
|
|
404
|
+
data: barDemos.simpleBarTimeSeriesDenseData,
|
|
224
405
|
chartType: chartTypes.SimpleBarChart,
|
|
225
406
|
},
|
|
226
407
|
{
|
|
227
|
-
options: barDemos.
|
|
228
|
-
data: barDemos.
|
|
408
|
+
options: barDemos.simpleBarEmptyStateOptions,
|
|
409
|
+
data: barDemos.simpleBarEmptyStateData,
|
|
229
410
|
chartType: chartTypes.SimpleBarChart,
|
|
230
|
-
isDemoExample: true,
|
|
231
411
|
},
|
|
232
412
|
{
|
|
233
|
-
options: barDemos.
|
|
234
|
-
data: barDemos.
|
|
413
|
+
options: barDemos.simpleBarSkeletonOptions,
|
|
414
|
+
data: barDemos.simpleBarSkeletonData,
|
|
235
415
|
chartType: chartTypes.SimpleBarChart,
|
|
236
416
|
},
|
|
237
417
|
{
|
|
238
|
-
options: barDemos.
|
|
239
|
-
data: barDemos.
|
|
418
|
+
options: barDemos.simpleHorizontalBarOptions,
|
|
419
|
+
data: barDemos.simpleHorizontalBarData,
|
|
240
420
|
chartType: chartTypes.SimpleBarChart,
|
|
241
|
-
|
|
421
|
+
mainDemo: true,
|
|
242
422
|
},
|
|
243
423
|
{
|
|
244
|
-
options: barDemos.
|
|
245
|
-
data: barDemos.
|
|
424
|
+
options: barDemos.simpleHorizontalBarTimeSeriesOptions,
|
|
425
|
+
data: barDemos.simpleHorizontalBarTimeSeriesData,
|
|
246
426
|
chartType: chartTypes.SimpleBarChart,
|
|
247
427
|
},
|
|
248
428
|
{
|
|
249
|
-
options: barDemos.
|
|
250
|
-
data: barDemos.
|
|
429
|
+
options: barDemos.simpleHorizontalBarEmptyStateOptions,
|
|
430
|
+
data: barDemos.simpleHorizontalBarEmptyStateData,
|
|
251
431
|
chartType: chartTypes.SimpleBarChart,
|
|
252
|
-
isDemoExample: false,
|
|
253
432
|
},
|
|
254
433
|
{
|
|
255
|
-
options: barDemos.
|
|
256
|
-
data: barDemos.
|
|
434
|
+
options: barDemos.simpleHorizontalBarSkeletonOptions,
|
|
435
|
+
data: barDemos.simpleHorizontalBarSkeletonData,
|
|
257
436
|
chartType: chartTypes.SimpleBarChart,
|
|
258
|
-
isDemoExample: false,
|
|
259
437
|
},
|
|
438
|
+
],
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
title: 'Bar (grouped)',
|
|
442
|
+
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.',
|
|
443
|
+
demos: [
|
|
260
444
|
{
|
|
261
|
-
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.',
|
|
262
445
|
options: barDemos.groupedBarOptions,
|
|
263
446
|
data: barDemos.groupedBarData,
|
|
264
447
|
chartType: chartTypes.GroupedBarChart,
|
|
265
|
-
|
|
266
|
-
{
|
|
267
|
-
options: barDemos.groupedBarSelectedGroupsOptions,
|
|
268
|
-
data: barDemos.groupedBarSelectedGroupsData,
|
|
269
|
-
chartType: chartTypes.GroupedBarChart,
|
|
448
|
+
mainDemo: true,
|
|
270
449
|
},
|
|
271
450
|
{
|
|
272
451
|
options: barDemos.groupedBarEmptyStateOptions,
|
|
273
452
|
data: barDemos.groupedBarEmptyStateData,
|
|
274
453
|
chartType: chartTypes.GroupedBarChart,
|
|
275
|
-
isDemoExample: false,
|
|
276
454
|
},
|
|
277
455
|
{
|
|
278
456
|
options: barDemos.groupedBarSkeletonOptions,
|
|
279
457
|
data: barDemos.groupedBarSkeletonData,
|
|
280
458
|
chartType: chartTypes.GroupedBarChart,
|
|
281
|
-
isDemoExample: false,
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
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.',
|
|
285
|
-
options: barDemos.stackedBarOptions,
|
|
286
|
-
data: barDemos.stackedBarData,
|
|
287
|
-
chartType: chartTypes.StackedBarChart,
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
options: barDemos.stackedBarTimeSeriesOptions,
|
|
291
|
-
data: barDemos.stackedBarTimeSeriesData,
|
|
292
|
-
chartType: chartTypes.StackedBarChart,
|
|
293
459
|
},
|
|
294
460
|
{
|
|
295
|
-
options: barDemos.
|
|
296
|
-
data: barDemos.
|
|
297
|
-
chartType: chartTypes.
|
|
298
|
-
isDemoExample: false,
|
|
461
|
+
options: barDemos.groupedHorizontalBarOptions,
|
|
462
|
+
data: barDemos.groupedHorizontalBarData,
|
|
463
|
+
chartType: chartTypes.GroupedBarChart,
|
|
299
464
|
},
|
|
300
465
|
{
|
|
301
|
-
options: barDemos.
|
|
302
|
-
data: barDemos.
|
|
303
|
-
chartType: chartTypes.
|
|
304
|
-
isDemoExample: false,
|
|
466
|
+
options: barDemos.groupedHorizontalBarEmptyStateOptions,
|
|
467
|
+
data: barDemos.groupedHorizontalBarEmptyStateData,
|
|
468
|
+
chartType: chartTypes.GroupedBarChart,
|
|
305
469
|
},
|
|
306
470
|
{
|
|
307
|
-
options: barDemos.
|
|
308
|
-
data: barDemos.
|
|
309
|
-
chartType: chartTypes.
|
|
310
|
-
isDemoExample: false,
|
|
471
|
+
options: barDemos.groupedHorizontalBarSkeletonOptions,
|
|
472
|
+
data: barDemos.groupedHorizontalBarSkeletonData,
|
|
473
|
+
chartType: chartTypes.GroupedBarChart,
|
|
311
474
|
},
|
|
312
475
|
],
|
|
313
476
|
},
|
|
314
477
|
{
|
|
315
|
-
title: 'Bar (
|
|
478
|
+
title: 'Bar (stacked)',
|
|
479
|
+
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.',
|
|
316
480
|
demos: [
|
|
317
481
|
{
|
|
318
|
-
options: barDemos.
|
|
319
|
-
data: barDemos.
|
|
320
|
-
chartType: chartTypes.
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
options: barDemos.simpleHorizontalBarCenteredLegendOptions,
|
|
324
|
-
data: barDemos.simpleHorizontalBarCenteredLegendData,
|
|
325
|
-
chartType: chartTypes.SimpleBarChart,
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
options: barDemos.simpleHorizontalBarLongLabelOptions,
|
|
329
|
-
data: barDemos.simpleHorizontalBarLongLabelData,
|
|
330
|
-
chartType: chartTypes.SimpleBarChart,
|
|
331
|
-
isDemoExample: true,
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
options: barDemos.simpleHorizontalBarTimeSeriesOptions,
|
|
335
|
-
data: barDemos.simpleHorizontalBarTimeSeriesData,
|
|
336
|
-
chartType: chartTypes.SimpleBarChart,
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
options: barDemos.simpleHorizontalBarEmptyStateOptions,
|
|
340
|
-
data: barDemos.simpleHorizontalBarEmptyStateData,
|
|
341
|
-
chartType: chartTypes.SimpleBarChart,
|
|
342
|
-
isDemoExample: false,
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
options: barDemos.simpleHorizontalBarSkeletonOptions,
|
|
346
|
-
data: barDemos.simpleHorizontalBarSkeletonData,
|
|
347
|
-
chartType: chartTypes.SimpleBarChart,
|
|
348
|
-
isDemoExample: false,
|
|
482
|
+
options: barDemos.stackedBarOptions,
|
|
483
|
+
data: barDemos.stackedBarData,
|
|
484
|
+
chartType: chartTypes.StackedBarChart,
|
|
349
485
|
},
|
|
350
486
|
{
|
|
351
|
-
options: barDemos.
|
|
352
|
-
data: barDemos.
|
|
353
|
-
chartType: chartTypes.
|
|
487
|
+
options: barDemos.stackedBarTimeSeriesOptions,
|
|
488
|
+
data: barDemos.stackedBarTimeSeriesData,
|
|
489
|
+
chartType: chartTypes.StackedBarChart,
|
|
354
490
|
},
|
|
355
491
|
{
|
|
356
|
-
options: barDemos.
|
|
357
|
-
data: barDemos.
|
|
358
|
-
chartType: chartTypes.
|
|
359
|
-
isDemoExample: false,
|
|
492
|
+
options: barDemos.stackedBarEmptyStateOptions,
|
|
493
|
+
data: barDemos.stackedBarEmptyStateData,
|
|
494
|
+
chartType: chartTypes.StackedBarChart,
|
|
360
495
|
},
|
|
361
496
|
{
|
|
362
|
-
options: barDemos.
|
|
363
|
-
data: barDemos.
|
|
364
|
-
chartType: chartTypes.
|
|
365
|
-
isDemoExample: false,
|
|
497
|
+
options: barDemos.stackedBarSkeletonOptions,
|
|
498
|
+
data: barDemos.stackedBarSkeletonData,
|
|
499
|
+
chartType: chartTypes.StackedBarChart,
|
|
366
500
|
},
|
|
367
501
|
{
|
|
368
502
|
options: barDemos.stackedHorizontalBarOptions,
|
|
369
503
|
data: barDemos.stackedHorizontalBarData,
|
|
370
504
|
chartType: chartTypes.StackedBarChart,
|
|
505
|
+
mainDemo: true,
|
|
371
506
|
},
|
|
372
507
|
{
|
|
373
508
|
options: barDemos.stackedHorizontalBarTimeSeriesOptions,
|
|
@@ -378,13 +513,11 @@ var allDemoGroups = [
|
|
|
378
513
|
options: barDemos.stackedHorizontalBarEmptyStateOptions,
|
|
379
514
|
data: barDemos.stackedHorizontalBarEmptyStateData,
|
|
380
515
|
chartType: chartTypes.StackedBarChart,
|
|
381
|
-
isDemoExample: false,
|
|
382
516
|
},
|
|
383
517
|
{
|
|
384
518
|
options: barDemos.stackedHorizontalBarSkeletonOptions,
|
|
385
519
|
data: barDemos.stackedHorizontalBarSkeletonData,
|
|
386
520
|
chartType: chartTypes.StackedBarChart,
|
|
387
|
-
isDemoExample: false,
|
|
388
521
|
},
|
|
389
522
|
],
|
|
390
523
|
},
|
|
@@ -395,6 +528,7 @@ var allDemoGroups = [
|
|
|
395
528
|
options: boxplotDemos.simpleBoxplotOptions,
|
|
396
529
|
data: boxplotDemos.simpleBoxplotData,
|
|
397
530
|
chartType: chartTypes.BoxplotChart,
|
|
531
|
+
mainDemo: true,
|
|
398
532
|
},
|
|
399
533
|
{
|
|
400
534
|
options: boxplotDemos.simpleVerticalBoxplotOptions,
|
|
@@ -411,6 +545,7 @@ var allDemoGroups = [
|
|
|
411
545
|
options: bubbleDemos.bubbleDoubleLinearOptions,
|
|
412
546
|
data: bubbleDemos.bubbleDoubleLinearData,
|
|
413
547
|
chartType: chartTypes.BubbleChart,
|
|
548
|
+
mainDemo: true,
|
|
414
549
|
},
|
|
415
550
|
{
|
|
416
551
|
options: bubbleDemos.bubbleTimeSeriesOptions,
|
|
@@ -422,23 +557,20 @@ var allDemoGroups = [
|
|
|
422
557
|
data: bubbleDemos.bubbleDiscreteData,
|
|
423
558
|
chartType: chartTypes.BubbleChart,
|
|
424
559
|
},
|
|
560
|
+
{
|
|
561
|
+
options: bubbleDemos.bubbleDualDiscreteOptions,
|
|
562
|
+
data: bubbleDemos.bubbleDualDiscreteData,
|
|
563
|
+
chartType: chartTypes.BubbleChart,
|
|
564
|
+
},
|
|
425
565
|
{
|
|
426
566
|
options: bubbleDemos.bubbleEmptyStateOptions,
|
|
427
567
|
data: bubbleDemos.bubbleEmptyStateData,
|
|
428
568
|
chartType: chartTypes.BubbleChart,
|
|
429
|
-
isDemoExample: false,
|
|
430
569
|
},
|
|
431
570
|
{
|
|
432
571
|
options: bubbleDemos.bubbleSkeletonOptions,
|
|
433
572
|
data: bubbleDemos.bubbleSkeletonData,
|
|
434
573
|
chartType: chartTypes.BubbleChart,
|
|
435
|
-
isDemoExample: false,
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
options: bubbleDemos.bubbleDualDiscreteOptions,
|
|
439
|
-
data: bubbleDemos.bubbleDualDiscreteData,
|
|
440
|
-
chartType: chartTypes.BubbleChart,
|
|
441
|
-
isDemoExample: false,
|
|
442
574
|
},
|
|
443
575
|
],
|
|
444
576
|
},
|
|
@@ -449,67 +581,57 @@ var allDemoGroups = [
|
|
|
449
581
|
options: comboDemos.comboSimpleOptions,
|
|
450
582
|
data: comboDemos.comboSimpleData,
|
|
451
583
|
chartType: chartTypes.ComboChart,
|
|
452
|
-
isDemoExample: true,
|
|
453
584
|
},
|
|
454
585
|
{
|
|
455
586
|
options: comboDemos.comboStackedOptions,
|
|
456
587
|
data: comboDemos.comboStackedData,
|
|
457
588
|
chartType: chartTypes.ComboChart,
|
|
458
|
-
isDemoExample: true,
|
|
459
589
|
},
|
|
460
590
|
{
|
|
461
591
|
options: comboDemos.comboGroupedOptions,
|
|
462
592
|
data: comboDemos.comboGroupedData,
|
|
463
593
|
chartType: chartTypes.ComboChart,
|
|
464
|
-
isDemoExample: true,
|
|
465
594
|
},
|
|
466
595
|
{
|
|
467
596
|
options: comboDemos.comboGroupedHorizontalOptions,
|
|
468
597
|
data: comboDemos.comboGroupedHorizontalData,
|
|
469
598
|
chartType: chartTypes.ComboChart,
|
|
470
|
-
isDemoExample: true,
|
|
471
599
|
},
|
|
472
600
|
{
|
|
473
601
|
options: comboDemos.comboHorizontalOptions,
|
|
474
602
|
data: comboDemos.comboHorizontalData,
|
|
475
603
|
chartType: chartTypes.ComboChart,
|
|
476
|
-
isDemoExample: true,
|
|
477
604
|
},
|
|
478
605
|
{
|
|
479
606
|
options: comboDemos.comboAreaLineOptions,
|
|
480
607
|
data: comboDemos.comboAreaLineData,
|
|
481
608
|
chartType: chartTypes.ComboChart,
|
|
482
|
-
isDemoExample: true,
|
|
483
609
|
},
|
|
484
610
|
{
|
|
485
611
|
options: comboDemos.comboStackedAreaLineOptions,
|
|
486
612
|
data: comboDemos.comboStackedAreaLine,
|
|
487
613
|
chartType: chartTypes.ComboChart,
|
|
488
|
-
isDemoExample: true,
|
|
489
614
|
},
|
|
490
615
|
{
|
|
491
616
|
options: comboDemos.comboLineScatterOptions,
|
|
492
617
|
data: comboDemos.comboLineScatterData,
|
|
493
618
|
chartType: chartTypes.ComboChart,
|
|
494
|
-
isDemoExample: true,
|
|
495
619
|
},
|
|
496
620
|
{
|
|
497
621
|
options: comboDemos.comboAreaLineTimeSeriesOptions,
|
|
498
622
|
data: comboDemos.comboAreaLineTimeSeriesData,
|
|
499
623
|
chartType: chartTypes.ComboChart,
|
|
500
|
-
|
|
624
|
+
mainDemo: true,
|
|
501
625
|
},
|
|
502
626
|
{
|
|
503
627
|
options: comboDemos.comboEmptyOptions,
|
|
504
628
|
data: comboDemos.comboEmptyData,
|
|
505
629
|
chartType: chartTypes.ComboChart,
|
|
506
|
-
isDemoExample: true,
|
|
507
630
|
},
|
|
508
631
|
{
|
|
509
632
|
options: comboDemos.comboLoadingOptions,
|
|
510
633
|
data: comboDemos.comboLoadingData,
|
|
511
634
|
chartType: chartTypes.ComboChart,
|
|
512
|
-
isDemoExample: true,
|
|
513
635
|
},
|
|
514
636
|
],
|
|
515
637
|
},
|
|
@@ -520,6 +642,7 @@ var allDemoGroups = [
|
|
|
520
642
|
options: donutDemos.donutOptions,
|
|
521
643
|
data: donutDemos.donutData,
|
|
522
644
|
chartType: chartTypes.DonutChart,
|
|
645
|
+
mainDemo: true,
|
|
523
646
|
},
|
|
524
647
|
{
|
|
525
648
|
options: donutDemos.donutCenteredOptions,
|
|
@@ -530,13 +653,11 @@ var allDemoGroups = [
|
|
|
530
653
|
options: donutDemos.donutEmptyStateOptions,
|
|
531
654
|
data: donutDemos.donutEmptyStateData,
|
|
532
655
|
chartType: chartTypes.DonutChart,
|
|
533
|
-
isDemoExample: false,
|
|
534
656
|
},
|
|
535
657
|
{
|
|
536
658
|
options: donutDemos.donutSkeletonOptions,
|
|
537
659
|
data: donutDemos.donutSkeletonData,
|
|
538
660
|
chartType: chartTypes.DonutChart,
|
|
539
|
-
isDemoExample: false,
|
|
540
661
|
},
|
|
541
662
|
],
|
|
542
663
|
},
|
|
@@ -547,19 +668,17 @@ var allDemoGroups = [
|
|
|
547
668
|
options: gaugeDemos.gaugeOptionsSemi,
|
|
548
669
|
data: gaugeDemos.gaugeData,
|
|
549
670
|
chartType: chartTypes.GaugeChart,
|
|
550
|
-
|
|
671
|
+
mainDemo: true,
|
|
551
672
|
},
|
|
552
673
|
{
|
|
553
674
|
options: gaugeDemos.gaugeOptionsCircular,
|
|
554
675
|
data: gaugeDemos.gaugeData,
|
|
555
676
|
chartType: chartTypes.GaugeChart,
|
|
556
|
-
isDemoExample: true,
|
|
557
677
|
},
|
|
558
678
|
{
|
|
559
679
|
options: gaugeDemos.gaugeOptionsCircularNoDelta,
|
|
560
680
|
data: gaugeDemos.gaugeDataNoDelta,
|
|
561
681
|
chartType: chartTypes.GaugeChart,
|
|
562
|
-
isDemoExample: true,
|
|
563
682
|
},
|
|
564
683
|
],
|
|
565
684
|
},
|
|
@@ -572,40 +691,11 @@ var allDemoGroups = [
|
|
|
572
691
|
data: lineDemos.lineData,
|
|
573
692
|
chartType: chartTypes.LineChart,
|
|
574
693
|
},
|
|
575
|
-
{
|
|
576
|
-
options: lineDemos.lineCustomColorOptions,
|
|
577
|
-
data: lineDemos.lineData,
|
|
578
|
-
chartType: chartTypes.LineChart,
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
options: lineDemos.lineCenteredLegendOptions,
|
|
582
|
-
data: lineDemos.lineCenteredLegendData,
|
|
583
|
-
chartType: chartTypes.LineChart,
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
options: lineDemos.lineLongLabelOptions,
|
|
587
|
-
data: lineDemos.lineLongLabelData,
|
|
588
|
-
chartType: chartTypes.LineChart,
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
options: lineDemos.lineCustomDomainOptions,
|
|
592
|
-
data: lineDemos.lineData,
|
|
593
|
-
chartType: chartTypes.LineChart,
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
options: lineDemos.lineSelectedGroupsOptions,
|
|
597
|
-
data: lineDemos.lineSelectedGroupsData,
|
|
598
|
-
chartType: chartTypes.LineChart,
|
|
599
|
-
},
|
|
600
694
|
{
|
|
601
695
|
options: lineDemos.lineTimeSeriesOptions,
|
|
602
696
|
data: lineDemos.lineTimeSeriesData,
|
|
603
697
|
chartType: chartTypes.LineChart,
|
|
604
|
-
|
|
605
|
-
{
|
|
606
|
-
options: lineDemos.lineTimeSeriesCustomDomainOptions,
|
|
607
|
-
data: lineDemos.lineTimeSeriesData,
|
|
608
|
-
chartType: chartTypes.LineChart,
|
|
698
|
+
mainDemo: true,
|
|
609
699
|
},
|
|
610
700
|
{
|
|
611
701
|
options: lineDemos.lineTimeSeriesDenseOptions,
|
|
@@ -613,50 +703,19 @@ var allDemoGroups = [
|
|
|
613
703
|
chartType: chartTypes.LineChart,
|
|
614
704
|
},
|
|
615
705
|
{
|
|
616
|
-
options: lineDemos.
|
|
617
|
-
data: lineDemos.
|
|
618
|
-
chartType: chartTypes.LineChart,
|
|
619
|
-
isDemoExample: false,
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
options: lineDemos.lineHorizontalOptions,
|
|
623
|
-
data: lineDemos.lineData,
|
|
624
|
-
chartType: chartTypes.LineChart,
|
|
625
|
-
isDemoExample: false,
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
options: lineDemos.lineTimeSeriesHorizontalOptions,
|
|
629
|
-
data: lineDemos.lineTimeSeriesData,
|
|
630
|
-
chartType: chartTypes.LineChart,
|
|
631
|
-
isDemoExample: false,
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
options: lineDemos.lineTimeSeriesWithThresholdsOptions,
|
|
635
|
-
data: lineDemos.lineTimeSeriesData,
|
|
706
|
+
options: lineDemos.dualLine,
|
|
707
|
+
data: lineDemos.lineTimeSeriesDualAxesData,
|
|
636
708
|
chartType: chartTypes.LineChart,
|
|
637
709
|
},
|
|
638
710
|
{
|
|
639
711
|
options: lineDemos.lineEmptyStateOptions,
|
|
640
712
|
data: lineDemos.lineEmptyStateData,
|
|
641
713
|
chartType: chartTypes.LineChart,
|
|
642
|
-
isDemoExample: false,
|
|
643
714
|
},
|
|
644
715
|
{
|
|
645
716
|
options: lineDemos.lineSkeletonOptions,
|
|
646
717
|
data: lineDemos.lineSkeletonData,
|
|
647
718
|
chartType: chartTypes.LineChart,
|
|
648
|
-
isDemoExample: false,
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
options: lineDemos.dualLine,
|
|
652
|
-
data: lineDemos.lineTimeSeriesDualAxesData,
|
|
653
|
-
chartType: chartTypes.LineChart,
|
|
654
|
-
isDemoExample: true,
|
|
655
|
-
},
|
|
656
|
-
{
|
|
657
|
-
options: lineDemos.sparklineLoadingOptions,
|
|
658
|
-
data: lineDemos.lineSkeletonData,
|
|
659
|
-
chartType: chartTypes.LineChart,
|
|
660
719
|
},
|
|
661
720
|
],
|
|
662
721
|
},
|
|
@@ -672,6 +731,7 @@ var allDemoGroups = [
|
|
|
672
731
|
options: lollipopDemos.lollipopDiscretePresentationOptions,
|
|
673
732
|
data: lollipopDemos.lollipopDiscretePresentationData,
|
|
674
733
|
chartType: chartTypes.LollipopChart,
|
|
734
|
+
mainDemo: true,
|
|
675
735
|
},
|
|
676
736
|
],
|
|
677
737
|
},
|
|
@@ -682,6 +742,7 @@ var allDemoGroups = [
|
|
|
682
742
|
options: pieDemos.pieOptions,
|
|
683
743
|
data: pieDemos.pieData,
|
|
684
744
|
chartType: chartTypes.PieChart,
|
|
745
|
+
mainDemo: true
|
|
685
746
|
},
|
|
686
747
|
{
|
|
687
748
|
options: pieDemos.pieCenteredOptions,
|
|
@@ -692,13 +753,11 @@ var allDemoGroups = [
|
|
|
692
753
|
options: pieDemos.pieEmptyStateOptions,
|
|
693
754
|
data: pieDemos.pieEmptyStateData,
|
|
694
755
|
chartType: chartTypes.PieChart,
|
|
695
|
-
isDemoExample: false,
|
|
696
756
|
},
|
|
697
757
|
{
|
|
698
758
|
options: pieDemos.pieSkeletonOptions,
|
|
699
759
|
data: pieDemos.pieSkeletonData,
|
|
700
760
|
chartType: chartTypes.PieChart,
|
|
701
|
-
isDemoExample: false,
|
|
702
761
|
},
|
|
703
762
|
],
|
|
704
763
|
},
|
|
@@ -709,19 +768,17 @@ var allDemoGroups = [
|
|
|
709
768
|
options: meterDemos.meterOptionsWithStatus,
|
|
710
769
|
data: meterDemos.meterData,
|
|
711
770
|
chartType: chartTypes.MeterChart,
|
|
712
|
-
|
|
771
|
+
mainDemo: true
|
|
713
772
|
},
|
|
714
773
|
{
|
|
715
774
|
options: meterDemos.meterOptionsCustomColor,
|
|
716
775
|
data: meterDemos.meterData,
|
|
717
776
|
chartType: chartTypes.MeterChart,
|
|
718
|
-
isDemoExample: true,
|
|
719
777
|
},
|
|
720
778
|
{
|
|
721
779
|
options: meterDemos.meterOptionsNoStatus,
|
|
722
780
|
data: meterDemos.meterData,
|
|
723
781
|
chartType: chartTypes.MeterChart,
|
|
724
|
-
isDemoExample: true,
|
|
725
782
|
},
|
|
726
783
|
],
|
|
727
784
|
},
|
|
@@ -747,6 +804,7 @@ var allDemoGroups = [
|
|
|
747
804
|
data: radarDemos.radarDenseData,
|
|
748
805
|
options: radarDemos.radarDenseOptions,
|
|
749
806
|
chartType: chartTypes.RadarChart,
|
|
807
|
+
mainDemo: true
|
|
750
808
|
},
|
|
751
809
|
],
|
|
752
810
|
},
|
|
@@ -763,6 +821,7 @@ var allDemoGroups = [
|
|
|
763
821
|
options: scatterDemos.scatterTimeSeriesOptions,
|
|
764
822
|
data: scatterDemos.scatterTimeSeriesData,
|
|
765
823
|
chartType: chartTypes.ScatterChart,
|
|
824
|
+
mainDemo: true
|
|
766
825
|
},
|
|
767
826
|
{
|
|
768
827
|
options: scatterDemos.scatterDiscreteOptions,
|
|
@@ -770,27 +829,35 @@ var allDemoGroups = [
|
|
|
770
829
|
chartType: chartTypes.ScatterChart,
|
|
771
830
|
},
|
|
772
831
|
{
|
|
773
|
-
options: scatterDemos.
|
|
774
|
-
data: scatterDemos.
|
|
832
|
+
options: scatterDemos.scatterDualAxesOptions,
|
|
833
|
+
data: scatterDemos.scatterDualAxesData,
|
|
775
834
|
chartType: chartTypes.ScatterChart,
|
|
776
835
|
},
|
|
777
836
|
{
|
|
778
837
|
options: scatterDemos.scatterEmptyStateOptions,
|
|
779
838
|
data: scatterDemos.scatterEmptyStateData,
|
|
780
839
|
chartType: chartTypes.ScatterChart,
|
|
781
|
-
isDemoExample: false,
|
|
782
840
|
},
|
|
783
841
|
{
|
|
784
842
|
options: scatterDemos.scatterSkeletonOptions,
|
|
785
843
|
data: scatterDemos.scatterSkeletonData,
|
|
786
844
|
chartType: chartTypes.ScatterChart,
|
|
787
|
-
|
|
845
|
+
},
|
|
846
|
+
],
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
title: 'Sparkline',
|
|
850
|
+
demos: [
|
|
851
|
+
{
|
|
852
|
+
options: areaDemos.sparklineOptions,
|
|
853
|
+
data: areaDemos.sparklineTimeSeriesData,
|
|
854
|
+
chartType: chartTypes.AreaChart,
|
|
855
|
+
mainDemo: true
|
|
788
856
|
},
|
|
789
857
|
{
|
|
790
|
-
options:
|
|
791
|
-
data:
|
|
792
|
-
chartType: chartTypes.
|
|
793
|
-
isDemoExample: false,
|
|
858
|
+
options: lineDemos.sparklineLoadingOptions,
|
|
859
|
+
data: lineDemos.lineSkeletonData,
|
|
860
|
+
chartType: chartTypes.LineChart,
|
|
794
861
|
},
|
|
795
862
|
],
|
|
796
863
|
},
|
|
@@ -807,116 +874,36 @@ var allDemoGroups = [
|
|
|
807
874
|
options: stepDemos.stepTimeSeriesOptions,
|
|
808
875
|
data: stepDemos.stepTimeSeriesData,
|
|
809
876
|
chartType: chartTypes.LineChart,
|
|
877
|
+
mainDemo: true
|
|
810
878
|
},
|
|
811
879
|
{
|
|
812
880
|
options: stepDemos.stepEmptyStateOptions,
|
|
813
881
|
data: stepDemos.stepEmptyStateData,
|
|
814
882
|
chartType: chartTypes.LineChart,
|
|
815
|
-
isDemoExample: false,
|
|
816
883
|
},
|
|
817
884
|
{
|
|
818
885
|
options: stepDemos.stepSkeletonOptions,
|
|
819
886
|
data: stepDemos.stepSkeletonData,
|
|
820
887
|
chartType: chartTypes.LineChart,
|
|
821
|
-
isDemoExample: false,
|
|
822
888
|
},
|
|
823
889
|
],
|
|
824
890
|
},
|
|
825
891
|
{
|
|
826
|
-
title: '
|
|
892
|
+
title: 'Word Cloud',
|
|
827
893
|
demos: [
|
|
828
894
|
{
|
|
829
|
-
options:
|
|
830
|
-
data:
|
|
831
|
-
chartType: chartTypes.
|
|
832
|
-
|
|
833
|
-
},
|
|
834
|
-
{
|
|
835
|
-
options: timeSeriesAxisDemos.lineTimeSeriesMinuteOptions,
|
|
836
|
-
data: timeSeriesAxisDemos.lineTimeSeriesDataMinute,
|
|
837
|
-
chartType: chartTypes.LineChart,
|
|
838
|
-
isDemoExample: false,
|
|
839
|
-
},
|
|
840
|
-
{
|
|
841
|
-
options: timeSeriesAxisDemos.lineTimeSeries30minutesOptions,
|
|
842
|
-
data: timeSeriesAxisDemos.lineTimeSeriesData30minutes,
|
|
843
|
-
chartType: chartTypes.LineChart,
|
|
844
|
-
isDemoExample: false,
|
|
845
|
-
},
|
|
846
|
-
{
|
|
847
|
-
options: timeSeriesAxisDemos.lineTimeSeriesHourlyDefaultLocaleOptions,
|
|
848
|
-
data: timeSeriesAxisDemos.lineTimeSeriesDataHourlyDefaultTicksFormats,
|
|
849
|
-
chartType: chartTypes.LineChart,
|
|
850
|
-
isDemoExample: false,
|
|
851
|
-
},
|
|
852
|
-
{
|
|
853
|
-
options: timeSeriesAxisDemos.lineTimeSeriesHourlyCustomTicksFormatsOptions,
|
|
854
|
-
data: timeSeriesAxisDemos.lineTimeSeriesDataHourlyCustomTicksFormats,
|
|
855
|
-
chartType: chartTypes.LineChart,
|
|
856
|
-
isDemoExample: false,
|
|
857
|
-
},
|
|
858
|
-
{
|
|
859
|
-
data: timeSeriesAxisDemos.lineTimeSeriesDataDaily,
|
|
860
|
-
options: timeSeriesAxisDemos.lineTimeSeriesDailyOptions,
|
|
861
|
-
chartType: chartTypes.LineChart,
|
|
862
|
-
isDemoExample: false,
|
|
863
|
-
},
|
|
864
|
-
{
|
|
865
|
-
data: timeSeriesAxisDemos.lineTimeSeriesDataWeekly,
|
|
866
|
-
options: timeSeriesAxisDemos.lineTimeSeriesWeeklyOptions,
|
|
867
|
-
chartType: chartTypes.LineChart,
|
|
868
|
-
isDemoExample: false,
|
|
869
|
-
},
|
|
870
|
-
{
|
|
871
|
-
data: timeSeriesAxisDemos.lineTimeSeriesDataMonthlyDefaultLocale,
|
|
872
|
-
options: timeSeriesAxisDemos.lineTimeSeriesMonthlyDefaultLocaleOptions,
|
|
873
|
-
chartType: chartTypes.LineChart,
|
|
874
|
-
isDemoExample: false,
|
|
875
|
-
},
|
|
876
|
-
{
|
|
877
|
-
data: timeSeriesAxisDemos.lineTimeSeriesDataMonthlyCustomLocale,
|
|
878
|
-
options: timeSeriesAxisDemos.lineTimeSeriesMonthlyCustomLocaleOptions,
|
|
879
|
-
chartType: chartTypes.LineChart,
|
|
880
|
-
isDemoExample: false,
|
|
881
|
-
},
|
|
882
|
-
{
|
|
883
|
-
data: timeSeriesAxisDemos.lineTimeSeriesDataQuarterly,
|
|
884
|
-
options: timeSeriesAxisDemos.lineTimeSeriesQuarterlyOptions,
|
|
885
|
-
chartType: chartTypes.LineChart,
|
|
886
|
-
isDemoExample: false,
|
|
887
|
-
},
|
|
888
|
-
{
|
|
889
|
-
data: timeSeriesAxisDemos.lineTimeSeriesDataYearly,
|
|
890
|
-
options: timeSeriesAxisDemos.lineTimeSeriesYearlyOptions,
|
|
891
|
-
chartType: chartTypes.LineChart,
|
|
892
|
-
isDemoExample: false,
|
|
893
|
-
},
|
|
894
|
-
{
|
|
895
|
-
data: timeSeriesAxisDemos.lineTimeSeriesDataSingleDatum,
|
|
896
|
-
options: timeSeriesAxisDemos.lineTimeSeriesSingleDatumOptions,
|
|
897
|
-
chartType: chartTypes.LineChart,
|
|
898
|
-
isDemoExample: false,
|
|
899
|
-
},
|
|
900
|
-
{
|
|
901
|
-
data: timeSeriesAxisDemos.lineTimeSeriesNoExtendedDomainData,
|
|
902
|
-
options: timeSeriesAxisDemos.lineTimeSeriesNoExtendedDomainOptions,
|
|
903
|
-
chartType: chartTypes.LineChart,
|
|
904
|
-
isDemoExample: false,
|
|
905
|
-
},
|
|
906
|
-
{
|
|
907
|
-
data: timeSeriesAxisDemos.lineTimeSeriesDataTwoIdenticalLabels,
|
|
908
|
-
options: timeSeriesAxisDemos.lineTimeSeriesTwoIdenticalLabelsOptions,
|
|
909
|
-
chartType: chartTypes.LineChart,
|
|
910
|
-
isDemoExample: false,
|
|
911
|
-
},
|
|
912
|
-
{
|
|
913
|
-
data: timeSeriesAxisDemos.lineTimeSeriesDataAllLabelsInPrimaryFormat,
|
|
914
|
-
options: timeSeriesAxisDemos.lineTimeSeriesAllLabelsInPrimaryFormatOptions,
|
|
915
|
-
chartType: chartTypes.LineChart,
|
|
916
|
-
isDemoExample: false,
|
|
895
|
+
options: wordCloudDemos.wordCloudOptions,
|
|
896
|
+
data: wordCloudDemos.wordCloudData,
|
|
897
|
+
chartType: chartTypes.WordCloudChart,
|
|
898
|
+
mainDemo: true
|
|
917
899
|
},
|
|
918
900
|
],
|
|
919
901
|
},
|
|
902
|
+
].map(function (demoGroup) {
|
|
903
|
+
demoGroup.type = DemoGroupTypes.SIMPLE_CHART;
|
|
904
|
+
return demoGroup;
|
|
905
|
+
});
|
|
906
|
+
var complexChartDemos = [
|
|
920
907
|
{
|
|
921
908
|
title: 'Treemap',
|
|
922
909
|
demos: [
|
|
@@ -927,107 +914,13 @@ var allDemoGroups = [
|
|
|
927
914
|
},
|
|
928
915
|
],
|
|
929
916
|
},
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
isDemoExample: false,
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
options: toolbarDemos.toolbarLineTimeSeriesOptions,
|
|
941
|
-
data: toolbarDemos.toolbarLineTimeSeriesData,
|
|
942
|
-
chartType: chartTypes.LineChart,
|
|
943
|
-
isDemoExample: false,
|
|
944
|
-
},
|
|
945
|
-
],
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
title: 'Zoom bar (alpha)',
|
|
949
|
-
demos: [
|
|
950
|
-
{
|
|
951
|
-
options: zoomBarDemos.zoomBarStackedAreaTimeSeriesOptions,
|
|
952
|
-
data: zoomBarDemos.zoomBarStackedAreaTimeSeriesData,
|
|
953
|
-
chartType: chartTypes.StackedAreaChart,
|
|
954
|
-
isDemoExample: false,
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
options: zoomBarDemos.zoomBarSimpleBarTimeSeriesOptions,
|
|
958
|
-
data: zoomBarDemos.zoomBarSimpleBarTimeSeriesData,
|
|
959
|
-
chartType: chartTypes.SimpleBarChart,
|
|
960
|
-
isDemoExample: false,
|
|
961
|
-
},
|
|
962
|
-
{
|
|
963
|
-
options: zoomBarDemos.zoomBarStackedBarTimeSeriesOptions,
|
|
964
|
-
data: zoomBarDemos.zoomBarStackedBarTimeSeriesData,
|
|
965
|
-
chartType: chartTypes.StackedBarChart,
|
|
966
|
-
isDemoExample: false,
|
|
967
|
-
},
|
|
968
|
-
{
|
|
969
|
-
options: zoomBarDemos.definedZoomBarStackedBarTimeSeriesOptions,
|
|
970
|
-
data: zoomBarDemos.definedZoomBarStackedBarTimeSeriesData,
|
|
971
|
-
chartType: chartTypes.StackedBarChart,
|
|
972
|
-
isDemoExample: false,
|
|
973
|
-
},
|
|
974
|
-
{
|
|
975
|
-
options: zoomBarDemos.zoomBarBubbleTimeSeriesOptions,
|
|
976
|
-
data: zoomBarDemos.zoomBarBubbleTimeSeriesData,
|
|
977
|
-
chartType: chartTypes.BubbleChart,
|
|
978
|
-
isDemoExample: false,
|
|
979
|
-
},
|
|
980
|
-
{
|
|
981
|
-
options: zoomBarDemos.zoomBarLineTimeSeriesOptions,
|
|
982
|
-
data: zoomBarDemos.zoomBarLineTimeSeriesData,
|
|
983
|
-
chartType: chartTypes.LineChart,
|
|
984
|
-
isDemoExample: false,
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
options: zoomBarDemos.zoomBarScatterTimeSeriesOptions,
|
|
988
|
-
data: zoomBarDemos.zoomBarScatterTimeSeriesData,
|
|
989
|
-
chartType: chartTypes.ScatterChart,
|
|
990
|
-
isDemoExample: false,
|
|
991
|
-
},
|
|
992
|
-
{
|
|
993
|
-
options: zoomBarDemos.zoomBarStepTimeSeriesOptions,
|
|
994
|
-
data: zoomBarDemos.zoomBarStepTimeSeriesData,
|
|
995
|
-
chartType: chartTypes.LineChart,
|
|
996
|
-
isDemoExample: false,
|
|
997
|
-
},
|
|
998
|
-
{
|
|
999
|
-
options: zoomBarDemos.zoomBarLineTimeSeries15secondsOptions,
|
|
1000
|
-
data: zoomBarDemos.zoomBarLineTimeSeries15secondsData,
|
|
1001
|
-
chartType: chartTypes.LineChart,
|
|
1002
|
-
isDemoExample: false,
|
|
1003
|
-
},
|
|
1004
|
-
{
|
|
1005
|
-
options: zoomBarDemos.zoomBarLineTimeSeriesInitDomainOptions,
|
|
1006
|
-
data: zoomBarDemos.zoomBarLineTimeSeriesInitDomainData,
|
|
1007
|
-
chartType: chartTypes.LineChart,
|
|
1008
|
-
isDemoExample: false,
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
options: zoomBarDemos.zoomBarStringDateOptions,
|
|
1012
|
-
data: zoomBarDemos.zoomBarStringDateData,
|
|
1013
|
-
chartType: chartTypes.LineChart,
|
|
1014
|
-
isDemoExample: false,
|
|
1015
|
-
},
|
|
1016
|
-
{
|
|
1017
|
-
options: zoomBarDemos.zoomBarLockedOptions,
|
|
1018
|
-
data: zoomBarDemos.zoomBarLockedData,
|
|
1019
|
-
chartType: chartTypes.StackedBarChart,
|
|
1020
|
-
isDemoExample: false,
|
|
1021
|
-
},
|
|
1022
|
-
{
|
|
1023
|
-
options: zoomBarDemos.zoomBarSkeletonOptions,
|
|
1024
|
-
data: zoomBarDemos.zoomBarSkeletonData,
|
|
1025
|
-
chartType: chartTypes.StackedBarChart,
|
|
1026
|
-
isDemoExample: false,
|
|
1027
|
-
},
|
|
1028
|
-
],
|
|
1029
|
-
},
|
|
1030
|
-
];
|
|
917
|
+
].map(function (demoGroup) {
|
|
918
|
+
demoGroup.type = DemoGroupTypes.COMPLEX_CHART;
|
|
919
|
+
return demoGroup;
|
|
920
|
+
});
|
|
921
|
+
var allDemoGroups = utilityDemoGroups
|
|
922
|
+
.concat(simpleChartDemos)
|
|
923
|
+
.concat(complexChartDemos);
|
|
1031
924
|
var devOnlyDemoGroups = [
|
|
1032
925
|
{
|
|
1033
926
|
title: 'High scale tests (DEV)',
|
|
@@ -1037,7 +930,6 @@ var devOnlyDemoGroups = [
|
|
|
1037
930
|
data: [],
|
|
1038
931
|
isHighScale: true,
|
|
1039
932
|
chartType: chartTypes.LineChart,
|
|
1040
|
-
isDemoExample: false,
|
|
1041
933
|
},
|
|
1042
934
|
],
|
|
1043
935
|
},
|
|
@@ -1050,7 +942,18 @@ var formatTitleString = function (str) {
|
|
|
1050
942
|
.replace(/\s+/g, '-');
|
|
1051
943
|
};
|
|
1052
944
|
var mapDemoGroups = function (demoGroups) {
|
|
1053
|
-
return demoGroups
|
|
945
|
+
return demoGroups
|
|
946
|
+
.sort(function (a, b) { return b.title - a.title; })
|
|
947
|
+
.map(function (demoGroup) {
|
|
948
|
+
if (demoGroup.type === DemoGroupTypes.SIMPLE_CHART) {
|
|
949
|
+
demoGroup.storyGroupTitle = 'Simple charts';
|
|
950
|
+
}
|
|
951
|
+
else if (demoGroup.type === DemoGroupTypes.COMPLEX_CHART) {
|
|
952
|
+
demoGroup.storyGroupTitle = 'Complex charts';
|
|
953
|
+
}
|
|
954
|
+
else {
|
|
955
|
+
demoGroup.storyGroupTitle = 'Utility';
|
|
956
|
+
}
|
|
1054
957
|
demoGroup.demos = demoGroup.demos.map(function (demo) {
|
|
1055
958
|
var _a;
|
|
1056
959
|
demo.title = demo.options.title;
|
|
@@ -1081,15 +984,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1081
984
|
}
|
|
1082
985
|
// in the storybook we want to show all the demos
|
|
1083
986
|
export var storybookDemoGroups = allDemoGroups;
|
|
1084
|
-
// in the demo page we want to show only demos with isDemoExample = true
|
|
1085
|
-
export var demoGroups = Tools.clone(allDemoGroups)
|
|
1086
|
-
// remove demoGroup if its children don't have any demo examples
|
|
1087
|
-
.filter(function (demoGroup) {
|
|
1088
|
-
return demoGroup.demos.filter(function (demo) { return demo.isDemoExample !== false; })
|
|
1089
|
-
.length > 0;
|
|
1090
|
-
})
|
|
1091
|
-
.map(function (demoGroup) {
|
|
1092
|
-
demoGroup.demos = demoGroup.demos.filter(function (demo) { return demo.isDemoExample !== false; });
|
|
1093
|
-
return demoGroup;
|
|
1094
|
-
});
|
|
1095
987
|
//# sourceMappingURL=../../../demo/data/index.js.map
|