@carbon/charts 0.32.8 → 0.32.12
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 +35 -0
- package/build/demo/data/area.d.ts +17 -0
- package/build/demo/data/bar.d.ts +51 -0
- package/build/demo/data/gauge.d.ts +40 -0
- package/build/demo/data/index.d.ts +6 -0
- package/build/demo/data/line.d.ts +26 -0
- package/build/demo/data/scatter.d.ts +18 -0
- package/build/src/charts/gauge.d.ts +6 -0
- package/build/src/charts/index.d.ts +1 -0
- package/build/src/components/essentials/tooltip-bar.d.ts +2 -2
- package/build/src/components/essentials/tooltip-radar.d.ts +2 -1
- package/build/src/components/essentials/tooltip.d.ts +2 -2
- package/build/src/components/graphs/gauge.d.ts +26 -0
- package/build/src/components/index.d.ts +1 -0
- package/build/src/configuration.d.ts +2 -1
- package/build/src/interfaces/axis-scales.d.ts +2 -0
- package/build/src/interfaces/charts.d.ts +20 -0
- package/build/src/interfaces/components.d.ts +2 -0
- package/build/src/interfaces/enums.d.ts +31 -1
- package/build/src/interfaces/events.d.ts +9 -0
- package/build/src/interfaces/truncation.d.ts +17 -0
- package/build/src/tools.d.ts +9 -0
- package/bundle.js +1 -1
- package/chart.js +21 -22
- package/chart.js.map +1 -1
- package/charts/gauge.d.ts +6 -0
- package/charts/gauge.js +41 -0
- package/charts/gauge.js.map +1 -0
- package/charts/index.d.ts +1 -0
- package/charts/index.js +1 -0
- package/charts/index.js.map +1 -1
- package/components/axes/axis.js +61 -1
- package/components/axes/axis.js.map +1 -1
- package/components/essentials/legend.js +39 -6
- package/components/essentials/legend.js.map +1 -1
- package/components/essentials/tooltip-bar.d.ts +2 -2
- package/components/essentials/tooltip-bar.js +20 -7
- package/components/essentials/tooltip-bar.js.map +1 -1
- package/components/essentials/tooltip-pie.js +3 -0
- package/components/essentials/tooltip-pie.js.map +1 -1
- package/components/essentials/tooltip-radar.d.ts +2 -1
- package/components/essentials/tooltip-radar.js +1 -1
- package/components/essentials/tooltip-radar.js.map +1 -1
- package/components/essentials/tooltip-scatter.js +6 -0
- package/components/essentials/tooltip-scatter.js.map +1 -1
- package/components/essentials/tooltip.d.ts +2 -2
- package/components/essentials/tooltip.js +11 -6
- package/components/essentials/tooltip.js.map +1 -1
- package/components/graphs/area-stacked.js +7 -4
- package/components/graphs/area-stacked.js.map +1 -1
- package/components/graphs/gauge.d.ts +26 -0
- package/components/graphs/gauge.js +301 -0
- package/components/graphs/gauge.js.map +1 -0
- package/components/graphs/line.js +13 -7
- package/components/graphs/line.js.map +1 -1
- package/components/graphs/scatter-stacked.js +1 -1
- package/components/graphs/scatter-stacked.js.map +1 -1
- 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 +100 -65
- package/configuration.js.map +1 -1
- package/demo/data/area.d.ts +17 -0
- package/demo/data/area.js +45 -19
- package/demo/data/area.js.map +1 -1
- package/demo/data/bar.d.ts +51 -0
- package/demo/data/bar.js +52 -0
- package/demo/data/bar.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/donut.js +10 -10
- package/demo/data/donut.js.map +1 -1
- package/demo/data/gauge.d.ts +40 -0
- package/demo/data/gauge.js +41 -0
- package/demo/data/gauge.js.map +1 -0
- package/demo/data/index.d.ts +6 -0
- package/demo/data/index.js +163 -120
- package/demo/data/index.js.map +1 -1
- package/demo/data/line.d.ts +26 -0
- package/demo/data/line.js +37 -0
- package/demo/data/line.js.map +1 -1
- package/demo/data/scatter.d.ts +18 -0
- package/demo/data/scatter.js +35 -0
- package/demo/data/scatter.js.map +1 -1
- package/demo/styles.css +80 -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 +62 -23
- package/interfaces/axis-scales.d.ts +2 -0
- package/interfaces/axis-scales.js.map +1 -1
- package/interfaces/charts.d.ts +20 -0
- package/interfaces/charts.js.map +1 -1
- package/interfaces/components.d.ts +2 -0
- package/interfaces/components.js.map +1 -1
- package/interfaces/enums.d.ts +31 -1
- package/interfaces/enums.js +34 -0
- package/interfaces/enums.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/interfaces/truncation.d.ts +17 -0
- package/interfaces/truncation.js +1 -0
- package/interfaces/truncation.js.map +1 -0
- package/model.js +15 -0
- package/model.js.map +1 -1
- package/package.json +1 -1
- package/styles/components/_tooltip.scss +2 -0
- package/styles/graphs/_gauge.scss +19 -0
- package/styles/graphs/index.scss +1 -0
- package/styles-g10.css +21 -0
- 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 +21 -0
- 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 +21 -0
- 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 +21 -0
- package/styles.css.map +1 -1
- package/styles.min.css +1 -1
- package/styles.min.css.map +1 -1
- package/tools.d.ts +9 -0
- package/tools.js +24 -1
- package/tools.js.map +1 -1
- package/tsconfig.tsbuildinfo +106 -40
package/demo/data/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import * as bubbleDemos from "./bubble";
|
|
|
4
4
|
import * as donutDemos from "./donut";
|
|
5
5
|
import * as lineDemos from "./line";
|
|
6
6
|
import * as pieDemos from "./pie";
|
|
7
|
+
import * as gaugeDemos from "./gauge";
|
|
7
8
|
import * as scatterDemos from "./scatter";
|
|
8
9
|
import * as stepDemos from "./step";
|
|
9
10
|
import * as timeSeriesAxisDemos from "./time-series-axis";
|
|
@@ -14,67 +15,73 @@ export * from "./bubble";
|
|
|
14
15
|
export * from "./donut";
|
|
15
16
|
export * from "./line";
|
|
16
17
|
export * from "./pie";
|
|
18
|
+
export * from "./gauge";
|
|
17
19
|
export * from "./scatter";
|
|
18
20
|
export * from "./step";
|
|
19
21
|
export * from "./radar";
|
|
20
|
-
import { createChartSandbox, createReactChartApp, createAngularChartApp, createVueChartApp, createVanillaChartApp, createSvelteChartApp
|
|
22
|
+
import { createChartSandbox, createReactChartApp, createAngularChartApp, createVueChartApp, createVanillaChartApp, createSvelteChartApp } from "../create-codesandbox";
|
|
21
23
|
import { Tools } from "@carbon/charts/tools";
|
|
22
24
|
export var chartTypes = {
|
|
23
25
|
AreaChart: {
|
|
24
26
|
vanilla: "AreaChart",
|
|
25
27
|
angular: "ibm-area-chart",
|
|
26
|
-
vue: "ccv-area-chart"
|
|
28
|
+
vue: "ccv-area-chart"
|
|
27
29
|
},
|
|
28
30
|
SimpleBarChart: {
|
|
29
31
|
vanilla: "SimpleBarChart",
|
|
30
32
|
angular: "ibm-simple-bar-chart",
|
|
31
|
-
vue: "ccv-simple-bar-chart"
|
|
33
|
+
vue: "ccv-simple-bar-chart"
|
|
32
34
|
},
|
|
33
35
|
GroupedBarChart: {
|
|
34
36
|
vanilla: "GroupedBarChart",
|
|
35
37
|
angular: "ibm-grouped-bar-chart",
|
|
36
|
-
vue: "ccv-grouped-bar-chart"
|
|
38
|
+
vue: "ccv-grouped-bar-chart"
|
|
37
39
|
},
|
|
38
40
|
StackedBarChart: {
|
|
39
41
|
vanilla: "StackedBarChart",
|
|
40
42
|
angular: "ibm-stacked-bar-chart",
|
|
41
|
-
vue: "ccv-stacked-bar-chart"
|
|
43
|
+
vue: "ccv-stacked-bar-chart"
|
|
42
44
|
},
|
|
43
45
|
BubbleChart: {
|
|
44
46
|
vanilla: "BubbleChart",
|
|
45
47
|
angular: "ibm-bubble-chart",
|
|
46
|
-
vue: "ccv-bubble-chart"
|
|
48
|
+
vue: "ccv-bubble-chart"
|
|
47
49
|
},
|
|
48
50
|
LineChart: {
|
|
49
51
|
vanilla: "LineChart",
|
|
50
52
|
angular: "ibm-line-chart",
|
|
51
|
-
vue: "ccv-line-chart"
|
|
53
|
+
vue: "ccv-line-chart"
|
|
52
54
|
},
|
|
53
55
|
StackedAreaChart: {
|
|
54
56
|
vanilla: "StackedAreaChart",
|
|
55
57
|
angular: "ibm-stacked-area-chart",
|
|
56
|
-
vue: "ccv-stacked-area-chart"
|
|
58
|
+
vue: "ccv-stacked-area-chart"
|
|
57
59
|
},
|
|
58
60
|
ScatterChart: {
|
|
59
61
|
vanilla: "ScatterChart",
|
|
60
62
|
angular: "ibm-scatter-chart",
|
|
61
|
-
vue: "ccv-scatter-chart"
|
|
63
|
+
vue: "ccv-scatter-chart"
|
|
62
64
|
},
|
|
63
65
|
PieChart: {
|
|
64
66
|
vanilla: "PieChart",
|
|
65
67
|
angular: "ibm-pie-chart",
|
|
66
|
-
vue: "ccv-pie-chart"
|
|
68
|
+
vue: "ccv-pie-chart"
|
|
69
|
+
},
|
|
70
|
+
GaugeChart: {
|
|
71
|
+
vanilla: "GaugeChart",
|
|
72
|
+
angular: "ibm-gauge-chart",
|
|
73
|
+
vue: "ccv-gauge-chart"
|
|
67
74
|
},
|
|
68
75
|
DonutChart: {
|
|
69
76
|
vanilla: "DonutChart",
|
|
70
77
|
angular: "ibm-donut-chart",
|
|
71
|
-
vue: "ccv-donut-chart"
|
|
78
|
+
vue: "ccv-donut-chart"
|
|
72
79
|
},
|
|
73
80
|
RadarChart: {
|
|
74
81
|
vanilla: "RadarChart",
|
|
75
82
|
angular: "ibm-radar-chart",
|
|
76
|
-
vue: "ccv-radar-chart"
|
|
77
|
-
}
|
|
83
|
+
vue: "ccv-radar-chart"
|
|
84
|
+
}
|
|
78
85
|
};
|
|
79
86
|
var allDemoGroups = [
|
|
80
87
|
{
|
|
@@ -84,26 +91,32 @@ var allDemoGroups = [
|
|
|
84
91
|
{
|
|
85
92
|
options: areaDemos.areaTimeSeriesCurvedOptions,
|
|
86
93
|
data: areaDemos.areaTimeSeriesCurvedData,
|
|
87
|
-
chartType: chartTypes.AreaChart
|
|
94
|
+
chartType: chartTypes.AreaChart
|
|
88
95
|
},
|
|
89
96
|
{
|
|
90
97
|
options: areaDemos.areaTimeSeriesOptions,
|
|
91
98
|
data: areaDemos.areaTimeSeriesData,
|
|
92
|
-
chartType: chartTypes.AreaChart
|
|
99
|
+
chartType: chartTypes.AreaChart
|
|
93
100
|
},
|
|
94
101
|
{
|
|
95
102
|
options: areaDemos.stackedAreaTimeSeriesOptions,
|
|
96
103
|
data: areaDemos.stackedAreaTimeSeriesData,
|
|
97
104
|
chartType: chartTypes.StackedAreaChart,
|
|
98
|
-
isDemoExample: true
|
|
105
|
+
isDemoExample: true
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
options: areaDemos.stackedAreaTimeSeriesUnevenDataOptions,
|
|
109
|
+
data: areaDemos.stackedAreaTimeSeriesUnevenData,
|
|
110
|
+
chartType: chartTypes.StackedAreaChart,
|
|
111
|
+
isDemoExample: true
|
|
99
112
|
},
|
|
100
113
|
{
|
|
101
114
|
options: areaDemos.stackedAreaPercentageTimeSeriesOptions,
|
|
102
115
|
data: areaDemos.stackedAreaTimeSeriesData,
|
|
103
116
|
chartType: chartTypes.StackedAreaChart,
|
|
104
|
-
isDemoExample: true
|
|
105
|
-
}
|
|
106
|
-
]
|
|
117
|
+
isDemoExample: true
|
|
118
|
+
}
|
|
119
|
+
]
|
|
107
120
|
},
|
|
108
121
|
{
|
|
109
122
|
title: "Bar (vertical)",
|
|
@@ -112,72 +125,78 @@ var allDemoGroups = [
|
|
|
112
125
|
{
|
|
113
126
|
options: barDemos.simpleBarOptions,
|
|
114
127
|
data: barDemos.simpleBarData,
|
|
128
|
+
chartType: chartTypes.SimpleBarChart
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
options: barDemos.simpleBarLongLabelOptions,
|
|
132
|
+
data: barDemos.simpleBarLongLabelData,
|
|
115
133
|
chartType: chartTypes.SimpleBarChart,
|
|
134
|
+
isDemoExample: true,
|
|
116
135
|
},
|
|
117
136
|
{
|
|
118
137
|
options: barDemos.simpleBarTimeSeriesOptions,
|
|
119
138
|
data: barDemos.simpleBarTimeSeriesData,
|
|
120
|
-
chartType: chartTypes.SimpleBarChart
|
|
139
|
+
chartType: chartTypes.SimpleBarChart
|
|
121
140
|
},
|
|
122
141
|
{
|
|
123
142
|
options: barDemos.simpleBarFixedDomainOptions,
|
|
124
143
|
data: barDemos.simpleBarData,
|
|
125
|
-
chartType: chartTypes.SimpleBarChart
|
|
144
|
+
chartType: chartTypes.SimpleBarChart
|
|
126
145
|
},
|
|
127
146
|
{
|
|
128
147
|
options: barDemos.simpleBarEmptyStateOptions,
|
|
129
148
|
data: barDemos.simpleBarEmptyStateData,
|
|
130
149
|
chartType: chartTypes.SimpleBarChart,
|
|
131
|
-
isDemoExample: false
|
|
150
|
+
isDemoExample: false
|
|
132
151
|
},
|
|
133
152
|
{
|
|
134
153
|
options: barDemos.simpleBarSkeletonOptions,
|
|
135
154
|
data: barDemos.simpleBarSkeletonData,
|
|
136
155
|
chartType: chartTypes.SimpleBarChart,
|
|
137
|
-
isDemoExample: false
|
|
156
|
+
isDemoExample: false
|
|
138
157
|
},
|
|
139
158
|
{
|
|
140
159
|
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.",
|
|
141
160
|
options: barDemos.groupedBarOptions,
|
|
142
161
|
data: barDemos.groupedBarData,
|
|
143
|
-
chartType: chartTypes.GroupedBarChart
|
|
162
|
+
chartType: chartTypes.GroupedBarChart
|
|
144
163
|
},
|
|
145
164
|
{
|
|
146
165
|
options: barDemos.groupedBarEmptyStateOptions,
|
|
147
166
|
data: barDemos.groupedBarEmptyStateData,
|
|
148
167
|
chartType: chartTypes.GroupedBarChart,
|
|
149
|
-
isDemoExample: false
|
|
168
|
+
isDemoExample: false
|
|
150
169
|
},
|
|
151
170
|
{
|
|
152
171
|
options: barDemos.groupedBarSkeletonOptions,
|
|
153
172
|
data: barDemos.groupedBarSkeletonData,
|
|
154
173
|
chartType: chartTypes.GroupedBarChart,
|
|
155
|
-
isDemoExample: false
|
|
174
|
+
isDemoExample: false
|
|
156
175
|
},
|
|
157
176
|
{
|
|
158
177
|
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.",
|
|
159
178
|
options: barDemos.stackedBarOptions,
|
|
160
179
|
data: barDemos.stackedBarData,
|
|
161
|
-
chartType: chartTypes.StackedBarChart
|
|
180
|
+
chartType: chartTypes.StackedBarChart
|
|
162
181
|
},
|
|
163
182
|
{
|
|
164
183
|
options: barDemos.stackedBarTimeSeriesOptions,
|
|
165
184
|
data: barDemos.stackedBarTimeSeriesData,
|
|
166
|
-
chartType: chartTypes.StackedBarChart
|
|
185
|
+
chartType: chartTypes.StackedBarChart
|
|
167
186
|
},
|
|
168
187
|
{
|
|
169
188
|
options: barDemos.stackedBarEmptyStateOptions,
|
|
170
189
|
data: barDemos.stackedBarEmptyStateData,
|
|
171
190
|
chartType: chartTypes.StackedBarChart,
|
|
172
|
-
isDemoExample: false
|
|
191
|
+
isDemoExample: false
|
|
173
192
|
},
|
|
174
193
|
{
|
|
175
194
|
options: barDemos.stackedBarSkeletonOptions,
|
|
176
195
|
data: barDemos.stackedBarSkeletonData,
|
|
177
196
|
chartType: chartTypes.StackedBarChart,
|
|
178
|
-
isDemoExample: false
|
|
179
|
-
}
|
|
180
|
-
]
|
|
197
|
+
isDemoExample: false
|
|
198
|
+
}
|
|
199
|
+
]
|
|
181
200
|
},
|
|
182
201
|
{
|
|
183
202
|
title: "Bar (horizontal)",
|
|
@@ -185,65 +204,71 @@ var allDemoGroups = [
|
|
|
185
204
|
{
|
|
186
205
|
options: barDemos.simpleHorizontalBarOptions,
|
|
187
206
|
data: barDemos.simpleHorizontalBarData,
|
|
207
|
+
chartType: chartTypes.SimpleBarChart
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
options: barDemos.simpleHorizontalBarLongLabelOptions,
|
|
211
|
+
data: barDemos.simpleHorizontalBarLongLabelData,
|
|
188
212
|
chartType: chartTypes.SimpleBarChart,
|
|
213
|
+
isDemoExample: true,
|
|
189
214
|
},
|
|
190
215
|
{
|
|
191
216
|
options: barDemos.simpleHorizontalBarTimeSeriesOptions,
|
|
192
217
|
data: barDemos.simpleHorizontalBarTimeSeriesData,
|
|
193
|
-
chartType: chartTypes.SimpleBarChart
|
|
218
|
+
chartType: chartTypes.SimpleBarChart
|
|
194
219
|
},
|
|
195
220
|
{
|
|
196
221
|
options: barDemos.simpleHorizontalBarEmptyStateOptions,
|
|
197
222
|
data: barDemos.simpleHorizontalBarEmptyStateData,
|
|
198
223
|
chartType: chartTypes.SimpleBarChart,
|
|
199
|
-
isDemoExample: false
|
|
224
|
+
isDemoExample: false
|
|
200
225
|
},
|
|
201
226
|
{
|
|
202
227
|
options: barDemos.simpleHorizontalBarSkeletonOptions,
|
|
203
228
|
data: barDemos.simpleHorizontalBarSkeletonData,
|
|
204
229
|
chartType: chartTypes.SimpleBarChart,
|
|
205
|
-
isDemoExample: false
|
|
230
|
+
isDemoExample: false
|
|
206
231
|
},
|
|
207
232
|
{
|
|
208
233
|
options: barDemos.groupedHorizontalBarOptions,
|
|
209
234
|
data: barDemos.groupedHorizontalBarData,
|
|
210
|
-
chartType: chartTypes.GroupedBarChart
|
|
235
|
+
chartType: chartTypes.GroupedBarChart
|
|
211
236
|
},
|
|
212
237
|
{
|
|
213
238
|
options: barDemos.groupedHorizontalBarEmptyStateOptions,
|
|
214
239
|
data: barDemos.groupedHorizontalBarEmptyStateData,
|
|
215
240
|
chartType: chartTypes.GroupedBarChart,
|
|
216
|
-
isDemoExample: false
|
|
241
|
+
isDemoExample: false
|
|
217
242
|
},
|
|
218
243
|
{
|
|
219
244
|
options: barDemos.groupedHorizontalBarSkeletonOptions,
|
|
220
245
|
data: barDemos.groupedHorizontalBarSkeletonData,
|
|
221
246
|
chartType: chartTypes.GroupedBarChart,
|
|
222
|
-
isDemoExample: false
|
|
247
|
+
isDemoExample: false
|
|
223
248
|
},
|
|
224
249
|
{
|
|
225
250
|
options: barDemos.stackedHorizontalBarOptions,
|
|
226
251
|
data: barDemos.stackedHorizontalBarData,
|
|
227
|
-
chartType: chartTypes.StackedBarChart
|
|
252
|
+
chartType: chartTypes.StackedBarChart
|
|
228
253
|
},
|
|
229
254
|
{
|
|
230
255
|
options: barDemos.stackedHorizontalBarTimeSeriesOptions,
|
|
231
256
|
data: barDemos.stackedHorizontalBarTimeSeriesData,
|
|
232
|
-
chartType: chartTypes.StackedBarChart
|
|
257
|
+
chartType: chartTypes.StackedBarChart
|
|
233
258
|
},
|
|
234
259
|
{
|
|
235
260
|
options: barDemos.stackedHorizontalBarEmptyStateOptions,
|
|
236
261
|
data: barDemos.stackedHorizontalBarEmptyStateData,
|
|
237
262
|
chartType: chartTypes.StackedBarChart,
|
|
238
|
-
isDemoExample: false
|
|
263
|
+
isDemoExample: false
|
|
239
264
|
},
|
|
240
265
|
{
|
|
241
266
|
options: barDemos.stackedHorizontalBarSkeletonOptions,
|
|
242
267
|
data: barDemos.stackedHorizontalBarSkeletonData,
|
|
243
268
|
chartType: chartTypes.StackedBarChart,
|
|
244
|
-
isDemoExample: false
|
|
245
|
-
}
|
|
246
|
-
]
|
|
269
|
+
isDemoExample: false
|
|
270
|
+
}
|
|
271
|
+
]
|
|
247
272
|
},
|
|
248
273
|
{
|
|
249
274
|
title: "Bubble",
|
|
@@ -252,31 +277,31 @@ var allDemoGroups = [
|
|
|
252
277
|
{
|
|
253
278
|
options: bubbleDemos.bubbleDoubleLinearOptions,
|
|
254
279
|
data: bubbleDemos.bubbleDoubleLinearData,
|
|
255
|
-
chartType: chartTypes.BubbleChart
|
|
280
|
+
chartType: chartTypes.BubbleChart
|
|
256
281
|
},
|
|
257
282
|
{
|
|
258
283
|
options: bubbleDemos.bubbleTimeSeriesOptions,
|
|
259
284
|
data: bubbleDemos.bubbleTimeSeriesData,
|
|
260
|
-
chartType: chartTypes.BubbleChart
|
|
285
|
+
chartType: chartTypes.BubbleChart
|
|
261
286
|
},
|
|
262
287
|
{
|
|
263
288
|
options: bubbleDemos.bubbleDiscreteOptions,
|
|
264
289
|
data: bubbleDemos.bubbleDiscreteData,
|
|
265
|
-
chartType: chartTypes.BubbleChart
|
|
290
|
+
chartType: chartTypes.BubbleChart
|
|
266
291
|
},
|
|
267
292
|
{
|
|
268
293
|
options: bubbleDemos.bubbleEmptyStateOptions,
|
|
269
294
|
data: bubbleDemos.bubbleEmptyStateData,
|
|
270
295
|
chartType: chartTypes.BubbleChart,
|
|
271
|
-
isDemoExample: false
|
|
296
|
+
isDemoExample: false
|
|
272
297
|
},
|
|
273
298
|
{
|
|
274
299
|
options: bubbleDemos.bubbleSkeletonOptions,
|
|
275
300
|
data: bubbleDemos.bubbleSkeletonData,
|
|
276
301
|
chartType: chartTypes.BubbleChart,
|
|
277
|
-
isDemoExample: false
|
|
278
|
-
}
|
|
279
|
-
]
|
|
302
|
+
isDemoExample: false
|
|
303
|
+
}
|
|
304
|
+
]
|
|
280
305
|
},
|
|
281
306
|
{
|
|
282
307
|
title: "Donut",
|
|
@@ -284,21 +309,21 @@ var allDemoGroups = [
|
|
|
284
309
|
{
|
|
285
310
|
options: donutDemos.donutOptions,
|
|
286
311
|
data: donutDemos.donutData,
|
|
287
|
-
chartType: chartTypes.DonutChart
|
|
312
|
+
chartType: chartTypes.DonutChart
|
|
288
313
|
},
|
|
289
314
|
{
|
|
290
315
|
options: donutDemos.donutEmptyStateOptions,
|
|
291
316
|
data: donutDemos.donutEmptyStateData,
|
|
292
317
|
chartType: chartTypes.DonutChart,
|
|
293
|
-
isDemoExample: false
|
|
318
|
+
isDemoExample: false
|
|
294
319
|
},
|
|
295
320
|
{
|
|
296
321
|
options: donutDemos.donutSkeletonOptions,
|
|
297
322
|
data: donutDemos.donutSkeletonData,
|
|
298
323
|
chartType: chartTypes.DonutChart,
|
|
299
|
-
isDemoExample: false
|
|
300
|
-
}
|
|
301
|
-
]
|
|
324
|
+
isDemoExample: false
|
|
325
|
+
}
|
|
326
|
+
]
|
|
302
327
|
},
|
|
303
328
|
{
|
|
304
329
|
title: "Line",
|
|
@@ -307,7 +332,7 @@ var allDemoGroups = [
|
|
|
307
332
|
{
|
|
308
333
|
options: lineDemos.lineTimeSeriesOptions,
|
|
309
334
|
data: lineDemos.lineTimeSeriesData,
|
|
310
|
-
chartType: chartTypes.LineChart
|
|
335
|
+
chartType: chartTypes.LineChart
|
|
311
336
|
},
|
|
312
337
|
{
|
|
313
338
|
options: lineDemos.lineTimeSeriesCustomDomainOptions,
|
|
@@ -317,11 +342,16 @@ var allDemoGroups = [
|
|
|
317
342
|
{
|
|
318
343
|
options: lineDemos.lineTimeSeriesDenseOptions,
|
|
319
344
|
data: lineDemos.lineTimeSeriesDenseData,
|
|
320
|
-
chartType: chartTypes.LineChart
|
|
345
|
+
chartType: chartTypes.LineChart
|
|
321
346
|
},
|
|
322
347
|
{
|
|
323
348
|
options: lineDemos.lineOptions,
|
|
324
349
|
data: lineDemos.lineData,
|
|
350
|
+
chartType: chartTypes.LineChart
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
options: lineDemos.lineLongLabelOptions,
|
|
354
|
+
data: lineDemos.lineLongLabelData,
|
|
325
355
|
chartType: chartTypes.LineChart,
|
|
326
356
|
},
|
|
327
357
|
{
|
|
@@ -333,53 +363,38 @@ var allDemoGroups = [
|
|
|
333
363
|
options: lineDemos.lineTimeSeriesRotatedTicksOptions,
|
|
334
364
|
data: lineDemos.lineTimeSeriesDataRotatedTicks,
|
|
335
365
|
chartType: chartTypes.LineChart,
|
|
336
|
-
isDemoExample: false
|
|
366
|
+
isDemoExample: false
|
|
337
367
|
},
|
|
338
368
|
{
|
|
339
369
|
options: lineDemos.lineTimeSeriesHorizontalOptions,
|
|
340
370
|
data: lineDemos.lineTimeSeriesData,
|
|
341
371
|
chartType: chartTypes.LineChart,
|
|
342
|
-
isDemoExample: false
|
|
372
|
+
isDemoExample: false
|
|
343
373
|
},
|
|
344
374
|
{
|
|
345
375
|
options: lineDemos.lineHorizontalOptions,
|
|
346
376
|
data: lineDemos.lineData,
|
|
347
377
|
chartType: chartTypes.LineChart,
|
|
348
|
-
isDemoExample: false
|
|
378
|
+
isDemoExample: false
|
|
349
379
|
},
|
|
350
380
|
{
|
|
351
381
|
options: lineDemos.lineTimeSeriesWithThresholdsOptions,
|
|
352
382
|
data: lineDemos.lineTimeSeriesData,
|
|
353
|
-
chartType: chartTypes.LineChart
|
|
383
|
+
chartType: chartTypes.LineChart
|
|
354
384
|
},
|
|
355
385
|
{
|
|
356
386
|
options: lineDemos.lineEmptyStateOptions,
|
|
357
387
|
data: lineDemos.lineEmptyStateData,
|
|
358
388
|
chartType: chartTypes.LineChart,
|
|
359
|
-
isDemoExample: false
|
|
389
|
+
isDemoExample: false
|
|
360
390
|
},
|
|
361
391
|
{
|
|
362
392
|
options: lineDemos.lineSkeletonOptions,
|
|
363
393
|
data: lineDemos.lineSkeletonData,
|
|
364
394
|
chartType: chartTypes.LineChart,
|
|
365
|
-
isDemoExample: false
|
|
366
|
-
}
|
|
367
|
-
]
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
title: "Area",
|
|
371
|
-
demos: [
|
|
372
|
-
{
|
|
373
|
-
options: areaDemos.stackedAreaTimeSeriesOptions,
|
|
374
|
-
data: areaDemos.stackedAreaTimeSeriesData,
|
|
375
|
-
chartType: chartTypes.StackedAreaChart,
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
options: areaDemos.stackedAreaPercentageTimeSeriesOptions,
|
|
379
|
-
data: areaDemos.stackedAreaTimeSeriesData,
|
|
380
|
-
chartType: chartTypes.StackedAreaChart,
|
|
381
|
-
},
|
|
382
|
-
],
|
|
395
|
+
isDemoExample: false
|
|
396
|
+
}
|
|
397
|
+
]
|
|
383
398
|
},
|
|
384
399
|
{
|
|
385
400
|
title: "Pie",
|
|
@@ -387,21 +402,44 @@ var allDemoGroups = [
|
|
|
387
402
|
{
|
|
388
403
|
options: pieDemos.pieOptions,
|
|
389
404
|
data: pieDemos.pieData,
|
|
390
|
-
chartType: chartTypes.PieChart
|
|
405
|
+
chartType: chartTypes.PieChart
|
|
391
406
|
},
|
|
392
407
|
{
|
|
393
408
|
options: pieDemos.pieEmptyStateOptions,
|
|
394
409
|
data: pieDemos.pieEmptyStateData,
|
|
395
410
|
chartType: chartTypes.PieChart,
|
|
396
|
-
isDemoExample: false
|
|
411
|
+
isDemoExample: false
|
|
397
412
|
},
|
|
398
413
|
{
|
|
399
414
|
options: pieDemos.pieSkeletonOptions,
|
|
400
415
|
data: pieDemos.pieSkeletonData,
|
|
401
416
|
chartType: chartTypes.PieChart,
|
|
402
|
-
isDemoExample: false
|
|
417
|
+
isDemoExample: false
|
|
418
|
+
}
|
|
419
|
+
]
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
title: "Gauge",
|
|
423
|
+
demos: [
|
|
424
|
+
{
|
|
425
|
+
options: gaugeDemos.gaugeOptionsSemi,
|
|
426
|
+
data: gaugeDemos.gaugeData,
|
|
427
|
+
chartType: chartTypes.GaugeChart,
|
|
428
|
+
isDemoExample: true
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
options: gaugeDemos.gaugeOptionsCircular,
|
|
432
|
+
data: gaugeDemos.gaugeData,
|
|
433
|
+
chartType: chartTypes.GaugeChart,
|
|
434
|
+
isDemoExample: true
|
|
403
435
|
},
|
|
404
|
-
|
|
436
|
+
{
|
|
437
|
+
options: gaugeDemos.gaugeOptionsCircularNoDelta,
|
|
438
|
+
data: gaugeDemos.gaugeDataNoDelta,
|
|
439
|
+
chartType: chartTypes.GaugeChart,
|
|
440
|
+
isDemoExample: true
|
|
441
|
+
}
|
|
442
|
+
]
|
|
405
443
|
},
|
|
406
444
|
{
|
|
407
445
|
title: "Scatter",
|
|
@@ -410,31 +448,36 @@ var allDemoGroups = [
|
|
|
410
448
|
{
|
|
411
449
|
options: scatterDemos.doubleLinearScatterOptions,
|
|
412
450
|
data: scatterDemos.doubleLinearScatterData,
|
|
413
|
-
chartType: chartTypes.ScatterChart
|
|
451
|
+
chartType: chartTypes.ScatterChart
|
|
414
452
|
},
|
|
415
453
|
{
|
|
416
454
|
options: scatterDemos.scatterTimeSeriesOptions,
|
|
417
455
|
data: scatterDemos.scatterTimeSeriesData,
|
|
418
|
-
chartType: chartTypes.ScatterChart
|
|
456
|
+
chartType: chartTypes.ScatterChart
|
|
419
457
|
},
|
|
420
458
|
{
|
|
421
459
|
options: scatterDemos.scatterDiscreteOptions,
|
|
422
460
|
data: scatterDemos.scatterDiscreteData,
|
|
461
|
+
chartType: chartTypes.ScatterChart
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
options: scatterDemos.scatterLongLabelDiscreteOptions,
|
|
465
|
+
data: scatterDemos.scatterLongLabelDiscreteData,
|
|
423
466
|
chartType: chartTypes.ScatterChart,
|
|
424
467
|
},
|
|
425
468
|
{
|
|
426
469
|
options: scatterDemos.scatterEmptyStateOptions,
|
|
427
470
|
data: scatterDemos.scatterEmptyStateData,
|
|
428
471
|
chartType: chartTypes.ScatterChart,
|
|
429
|
-
isDemoExample: false
|
|
472
|
+
isDemoExample: false
|
|
430
473
|
},
|
|
431
474
|
{
|
|
432
475
|
options: scatterDemos.scatterSkeletonOptions,
|
|
433
476
|
data: scatterDemos.scatterSkeletonData,
|
|
434
477
|
chartType: chartTypes.ScatterChart,
|
|
435
|
-
isDemoExample: false
|
|
436
|
-
}
|
|
437
|
-
]
|
|
478
|
+
isDemoExample: false
|
|
479
|
+
}
|
|
480
|
+
]
|
|
438
481
|
},
|
|
439
482
|
{
|
|
440
483
|
title: "Step",
|
|
@@ -443,26 +486,26 @@ var allDemoGroups = [
|
|
|
443
486
|
{
|
|
444
487
|
options: stepDemos.stepOptions,
|
|
445
488
|
data: stepDemos.stepData,
|
|
446
|
-
chartType: chartTypes.LineChart
|
|
489
|
+
chartType: chartTypes.LineChart
|
|
447
490
|
},
|
|
448
491
|
{
|
|
449
492
|
options: stepDemos.stepTimeSeriesOptions,
|
|
450
493
|
data: stepDemos.stepTimeSeriesData,
|
|
451
|
-
chartType: chartTypes.LineChart
|
|
494
|
+
chartType: chartTypes.LineChart
|
|
452
495
|
},
|
|
453
496
|
{
|
|
454
497
|
options: stepDemos.stepEmptyStateOptions,
|
|
455
498
|
data: stepDemos.stepEmptyStateData,
|
|
456
499
|
chartType: chartTypes.LineChart,
|
|
457
|
-
isDemoExample: false
|
|
500
|
+
isDemoExample: false
|
|
458
501
|
},
|
|
459
502
|
{
|
|
460
503
|
options: stepDemos.stepSkeletonOptions,
|
|
461
504
|
data: stepDemos.stepSkeletonData,
|
|
462
505
|
chartType: chartTypes.LineChart,
|
|
463
|
-
isDemoExample: false
|
|
464
|
-
}
|
|
465
|
-
]
|
|
506
|
+
isDemoExample: false
|
|
507
|
+
}
|
|
508
|
+
]
|
|
466
509
|
},
|
|
467
510
|
{
|
|
468
511
|
title: "Time series axis",
|
|
@@ -471,93 +514,93 @@ var allDemoGroups = [
|
|
|
471
514
|
options: timeSeriesAxisDemos.lineTimeSeries15secondsOptions,
|
|
472
515
|
data: timeSeriesAxisDemos.lineTimeSeriesData15seconds,
|
|
473
516
|
chartType: chartTypes.LineChart,
|
|
474
|
-
isDemoExample: false
|
|
517
|
+
isDemoExample: false
|
|
475
518
|
},
|
|
476
519
|
{
|
|
477
520
|
options: timeSeriesAxisDemos.lineTimeSeriesMinuteOptions,
|
|
478
521
|
data: timeSeriesAxisDemos.lineTimeSeriesDataMinute,
|
|
479
522
|
chartType: chartTypes.LineChart,
|
|
480
|
-
isDemoExample: false
|
|
523
|
+
isDemoExample: false
|
|
481
524
|
},
|
|
482
525
|
{
|
|
483
526
|
options: timeSeriesAxisDemos.lineTimeSeries30minutesOptions,
|
|
484
527
|
data: timeSeriesAxisDemos.lineTimeSeriesData30minutes,
|
|
485
528
|
chartType: chartTypes.LineChart,
|
|
486
|
-
isDemoExample: false
|
|
529
|
+
isDemoExample: false
|
|
487
530
|
},
|
|
488
531
|
{
|
|
489
532
|
options: timeSeriesAxisDemos.lineTimeSeriesHourlyDefaultLocaleOptions,
|
|
490
533
|
data: timeSeriesAxisDemos.lineTimeSeriesDataHourlyDefaultTicksFormats,
|
|
491
534
|
chartType: chartTypes.LineChart,
|
|
492
|
-
isDemoExample: false
|
|
535
|
+
isDemoExample: false
|
|
493
536
|
},
|
|
494
537
|
{
|
|
495
538
|
options: timeSeriesAxisDemos.lineTimeSeriesHourlyCustomTicksFormatsOptions,
|
|
496
539
|
data: timeSeriesAxisDemos.lineTimeSeriesDataHourlyCustomTicksFormats,
|
|
497
540
|
chartType: chartTypes.LineChart,
|
|
498
|
-
isDemoExample: false
|
|
541
|
+
isDemoExample: false
|
|
499
542
|
},
|
|
500
543
|
{
|
|
501
544
|
data: timeSeriesAxisDemos.lineTimeSeriesDataDaily,
|
|
502
545
|
options: timeSeriesAxisDemos.lineTimeSeriesDailyOptions,
|
|
503
546
|
chartType: chartTypes.LineChart,
|
|
504
|
-
isDemoExample: false
|
|
547
|
+
isDemoExample: false
|
|
505
548
|
},
|
|
506
549
|
{
|
|
507
550
|
data: timeSeriesAxisDemos.lineTimeSeriesDataWeekly,
|
|
508
551
|
options: timeSeriesAxisDemos.lineTimeSeriesWeeklyOptions,
|
|
509
552
|
chartType: chartTypes.LineChart,
|
|
510
|
-
isDemoExample: false
|
|
553
|
+
isDemoExample: false
|
|
511
554
|
},
|
|
512
555
|
{
|
|
513
556
|
data: timeSeriesAxisDemos.lineTimeSeriesDataMonthlyDefaultLocale,
|
|
514
557
|
options: timeSeriesAxisDemos.lineTimeSeriesMonthlyDefaultLocaleOptions,
|
|
515
558
|
chartType: chartTypes.LineChart,
|
|
516
|
-
isDemoExample: false
|
|
559
|
+
isDemoExample: false
|
|
517
560
|
},
|
|
518
561
|
{
|
|
519
562
|
data: timeSeriesAxisDemos.lineTimeSeriesDataMonthlyCustomLocale,
|
|
520
563
|
options: timeSeriesAxisDemos.lineTimeSeriesMonthlyCustomLocaleOptions,
|
|
521
564
|
chartType: chartTypes.LineChart,
|
|
522
|
-
isDemoExample: false
|
|
565
|
+
isDemoExample: false
|
|
523
566
|
},
|
|
524
567
|
{
|
|
525
568
|
data: timeSeriesAxisDemos.lineTimeSeriesDataQuarterly,
|
|
526
569
|
options: timeSeriesAxisDemos.lineTimeSeriesQuarterlyOptions,
|
|
527
570
|
chartType: chartTypes.LineChart,
|
|
528
|
-
isDemoExample: false
|
|
571
|
+
isDemoExample: false
|
|
529
572
|
},
|
|
530
573
|
{
|
|
531
574
|
data: timeSeriesAxisDemos.lineTimeSeriesDataYearly,
|
|
532
575
|
options: timeSeriesAxisDemos.lineTimeSeriesYearlyOptions,
|
|
533
576
|
chartType: chartTypes.LineChart,
|
|
534
|
-
isDemoExample: false
|
|
577
|
+
isDemoExample: false
|
|
535
578
|
},
|
|
536
579
|
{
|
|
537
580
|
data: timeSeriesAxisDemos.lineTimeSeriesDataSingleDatum,
|
|
538
581
|
options: timeSeriesAxisDemos.lineTimeSeriesSingleDatumOptions,
|
|
539
582
|
chartType: chartTypes.LineChart,
|
|
540
|
-
isDemoExample: false
|
|
583
|
+
isDemoExample: false
|
|
541
584
|
},
|
|
542
585
|
{
|
|
543
586
|
data: timeSeriesAxisDemos.lineTimeSeriesNoExtendedDomainData,
|
|
544
587
|
options: timeSeriesAxisDemos.lineTimeSeriesNoExtendedDomainOptions,
|
|
545
588
|
chartType: chartTypes.LineChart,
|
|
546
|
-
isDemoExample: false
|
|
589
|
+
isDemoExample: false
|
|
547
590
|
},
|
|
548
591
|
{
|
|
549
592
|
data: timeSeriesAxisDemos.lineTimeSeriesDataTwoIdenticalLabels,
|
|
550
593
|
options: timeSeriesAxisDemos.lineTimeSeriesTwoIdenticalLabelsOptions,
|
|
551
594
|
chartType: chartTypes.LineChart,
|
|
552
|
-
isDemoExample: false
|
|
595
|
+
isDemoExample: false
|
|
553
596
|
},
|
|
554
597
|
{
|
|
555
598
|
data: timeSeriesAxisDemos.lineTimeSeriesDataAllLabelsInPrimaryFormat,
|
|
556
599
|
options: timeSeriesAxisDemos.lineTimeSeriesAllLabelsInPrimaryFormatOptions,
|
|
557
600
|
chartType: chartTypes.LineChart,
|
|
558
|
-
isDemoExample: false
|
|
559
|
-
}
|
|
560
|
-
]
|
|
601
|
+
isDemoExample: false
|
|
602
|
+
}
|
|
603
|
+
]
|
|
561
604
|
},
|
|
562
605
|
{
|
|
563
606
|
title: "Radar",
|
|
@@ -565,20 +608,20 @@ var allDemoGroups = [
|
|
|
565
608
|
{
|
|
566
609
|
data: radarDemos.radarData,
|
|
567
610
|
options: radarDemos.radarOptions,
|
|
568
|
-
chartType: chartTypes.RadarChart
|
|
611
|
+
chartType: chartTypes.RadarChart
|
|
569
612
|
},
|
|
570
613
|
{
|
|
571
614
|
data: radarDemos.radarWithMissingDataData,
|
|
572
615
|
options: radarDemos.radarWithMissingDataOptions,
|
|
573
|
-
chartType: chartTypes.RadarChart
|
|
616
|
+
chartType: chartTypes.RadarChart
|
|
574
617
|
},
|
|
575
618
|
{
|
|
576
619
|
data: radarDemos.radarDenseData,
|
|
577
620
|
options: radarDemos.radarDenseOptions,
|
|
578
|
-
chartType: chartTypes.RadarChart
|
|
579
|
-
}
|
|
580
|
-
]
|
|
581
|
-
}
|
|
621
|
+
chartType: chartTypes.RadarChart
|
|
622
|
+
}
|
|
623
|
+
]
|
|
624
|
+
}
|
|
582
625
|
];
|
|
583
626
|
var formatTitleString = function (str) {
|
|
584
627
|
return str
|