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