@cdc/chart 4.24.5 → 4.24.9
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/dist/cdcchart.js +44197 -38258
- package/examples/cases-year.json +13379 -0
- package/examples/feature/annotations/index.json +542 -0
- package/examples/gallery/bar-chart-vertical/combo-line-chart.json +76 -15
- package/examples/gallery/bar-chart-vertical/vertical-bar-chart-stacked.json +5 -5
- package/examples/xaxis.json +493 -0
- package/index.html +20 -10
- package/package.json +5 -4
- package/src/CdcChart.tsx +462 -172
- package/src/_stories/Chart.Legend.Gradient.tsx +19 -0
- package/src/_stories/Chart.stories.tsx +18 -171
- package/src/_stories/ChartAnnotation.stories.tsx +32 -0
- package/src/_stories/_mock/annotation_category_mock.json +473 -0
- package/src/_stories/_mock/annotation_date-linear_mock.json +530 -0
- package/{examples/feature/line/line-chart.json → src/_stories/_mock/annotation_date-time_mock.json} +150 -69
- package/src/_stories/_mock/legend.gradient_mock.json +236 -0
- package/src/_stories/_mock/line_chart_two_points_new_chart.json +128 -0
- package/src/_stories/_mock/line_chart_two_points_regression_test.json +127 -0
- package/src/_stories/_mock/lollipop.json +171 -0
- package/src/components/Annotations/components/AnnotationDraggable.styles.css +31 -0
- package/src/components/Annotations/components/AnnotationDraggable.tsx +207 -0
- package/src/components/Annotations/components/AnnotationDropdown.styles.css +14 -0
- package/src/components/Annotations/components/AnnotationDropdown.tsx +72 -0
- package/src/components/Annotations/components/AnnotationList.styles.css +45 -0
- package/src/components/Annotations/components/AnnotationList.tsx +42 -0
- package/src/components/Annotations/components/findNearestDatum.ts +138 -0
- package/src/components/Annotations/components/helpers/index.tsx +46 -0
- package/src/components/Annotations/index.tsx +13 -0
- package/src/components/AreaChart/components/AreaChart.Stacked.jsx +1 -1
- package/src/components/AreaChart/components/AreaChart.jsx +1 -1
- package/src/components/Axis/Categorical.Axis.tsx +145 -0
- package/src/components/BarChart/components/BarChart.Horizontal.tsx +47 -44
- package/src/components/BarChart/components/BarChart.StackedHorizontal.tsx +0 -1
- package/src/components/BarChart/components/BarChart.StackedVertical.tsx +11 -14
- package/src/components/BarChart/components/BarChart.Vertical.tsx +67 -30
- package/src/components/BarChart/helpers/index.ts +91 -0
- package/src/components/BrushChart.tsx +205 -0
- package/src/components/EditorPanel/EditorPanel.tsx +1794 -403
- package/src/components/EditorPanel/components/Panels/Panel.Annotate.tsx +320 -0
- package/src/components/EditorPanel/components/Panels/Panel.General.tsx +282 -18
- package/src/components/EditorPanel/components/Panels/Panel.Sankey.tsx +43 -8
- package/src/components/EditorPanel/components/Panels/Panel.Series.tsx +4 -4
- package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +4 -13
- package/src/components/EditorPanel/components/Panels/index.tsx +3 -1
- package/src/components/EditorPanel/components/panels.scss +4 -0
- package/src/components/EditorPanel/editor-panel.scss +35 -3
- package/src/components/EditorPanel/{useEditorPermissions.js → useEditorPermissions.ts} +105 -17
- package/src/components/Legend/Legend.Component.tsx +185 -194
- package/src/components/Legend/Legend.Suppression.tsx +146 -0
- package/src/components/Legend/Legend.tsx +21 -5
- package/src/components/Legend/helpers/createFormatLabels.tsx +1 -1
- package/src/components/Legend/helpers/index.ts +35 -0
- package/src/components/LegendWrapper.tsx +26 -0
- package/src/components/LineChart/LineChartProps.ts +1 -15
- package/src/components/LineChart/components/LineChart.BumpCircle.tsx +103 -0
- package/src/components/LineChart/components/LineChart.Circle.tsx +47 -8
- package/src/components/LineChart/helpers.ts +72 -14
- package/src/components/LineChart/index.tsx +117 -42
- package/src/components/LinearChart.jsx +179 -136
- package/src/components/LinearChart.tsx +1366 -0
- package/src/components/PairedBarChart.jsx +9 -9
- package/src/components/PieChart/PieChart.tsx +75 -18
- package/src/components/Sankey/index.tsx +89 -30
- package/src/components/ScatterPlot/ScatterPlot.jsx +22 -8
- package/src/components/Sparkline/components/SparkLine.tsx +2 -2
- package/src/components/ZoomBrush.tsx +90 -44
- package/src/data/initial-state.js +25 -7
- package/src/helpers/handleChartTabbing.ts +8 -0
- package/src/helpers/isConvertLineToBarGraph.ts +4 -0
- package/src/hooks/{useBarChart.js → useBarChart.ts} +2 -40
- package/src/hooks/useColorScale.ts +1 -1
- package/src/hooks/useLegendClasses.ts +68 -0
- package/src/hooks/useMinMax.ts +12 -7
- package/src/hooks/useScales.ts +58 -26
- package/src/hooks/useTooltip.tsx +135 -25
- package/src/scss/DataTable.scss +2 -1
- package/src/scss/main.scss +128 -28
- package/src/types/ChartConfig.ts +83 -10
- package/src/types/ChartContext.ts +14 -4
- package/tests-examples/helpers/testZeroValue.test.ts +30 -0
- package/LICENSE +0 -201
- package/src/components/BrushHandle.jsx +0 -17
- package/src/components/LineChart/index.scss +0 -1
- package/src/helpers/filterData.ts +0 -18
- package/src/helpers/tests/computeMarginBottom.test.ts +0 -21
- package/src/hooks/useLegendClasses.js +0 -31
- /package/src/hooks/{useReduceData.js → useReduceData.ts} +0 -0
package/{examples/feature/line/line-chart.json → src/_stories/_mock/annotation_date-time_mock.json}
RENAMED
|
@@ -1,13 +1,55 @@
|
|
|
1
1
|
{
|
|
2
|
+
"annotations": [
|
|
3
|
+
{
|
|
4
|
+
"text": "New Annotation",
|
|
5
|
+
"fontSize": 16,
|
|
6
|
+
"show": {
|
|
7
|
+
"desktop": true,
|
|
8
|
+
"tablet": true,
|
|
9
|
+
"mobile": true
|
|
10
|
+
},
|
|
11
|
+
"markerType": "arrow",
|
|
12
|
+
"connectorType": "line",
|
|
13
|
+
"colors": {
|
|
14
|
+
"label": "black",
|
|
15
|
+
"connector": "black",
|
|
16
|
+
"marker": "black"
|
|
17
|
+
},
|
|
18
|
+
"selected": true,
|
|
19
|
+
"anchor": {
|
|
20
|
+
"vertical": false,
|
|
21
|
+
"horizontal": false
|
|
22
|
+
},
|
|
23
|
+
"connectionType": "line",
|
|
24
|
+
"marker": "arrow",
|
|
25
|
+
"edit": {
|
|
26
|
+
"subject": true,
|
|
27
|
+
"label": true
|
|
28
|
+
},
|
|
29
|
+
"seriesKey": "Data 1",
|
|
30
|
+
"x": 531.2573384562507,
|
|
31
|
+
"y": 111.5,
|
|
32
|
+
"xKey": 1463295600000,
|
|
33
|
+
"yKey": "80",
|
|
34
|
+
"dx": -102.05048929710738,
|
|
35
|
+
"dy": 43,
|
|
36
|
+
"opacity": 100,
|
|
37
|
+
"savedDimensions": [
|
|
38
|
+
660.65,
|
|
39
|
+
344.546875
|
|
40
|
+
],
|
|
41
|
+
"snapToNearestPoint": true
|
|
42
|
+
}
|
|
43
|
+
],
|
|
2
44
|
"type": "chart",
|
|
3
45
|
"debugSvg": false,
|
|
4
46
|
"chartMessage": {
|
|
5
47
|
"noData": "No Data Available"
|
|
6
48
|
},
|
|
7
|
-
"title": "Example Line Chart",
|
|
49
|
+
"title": "Example Line Chart with Region",
|
|
8
50
|
"showTitle": true,
|
|
9
51
|
"showDownloadMediaButton": false,
|
|
10
|
-
"theme": "theme-
|
|
52
|
+
"theme": "theme-cyan",
|
|
11
53
|
"animate": false,
|
|
12
54
|
"fontSize": "medium",
|
|
13
55
|
"lineDatapointStyle": "hover",
|
|
@@ -44,7 +86,7 @@
|
|
|
44
86
|
"tickLabelColor": "#333",
|
|
45
87
|
"tickColor": "#333",
|
|
46
88
|
"rightHideAxis": true,
|
|
47
|
-
"rightAxisSize":
|
|
89
|
+
"rightAxisSize": 50,
|
|
48
90
|
"rightLabel": "",
|
|
49
91
|
"rightLabelOffsetSize": 0,
|
|
50
92
|
"rightAxisLabelColor": "#333",
|
|
@@ -116,7 +158,7 @@
|
|
|
116
158
|
"tickColor": "#333",
|
|
117
159
|
"numTicks": "",
|
|
118
160
|
"labelOffset": 65,
|
|
119
|
-
"axisPadding":
|
|
161
|
+
"axisPadding": 0,
|
|
120
162
|
"target": 0,
|
|
121
163
|
"maxTickRotation": 0,
|
|
122
164
|
"dataKey": "Date",
|
|
@@ -134,8 +176,8 @@
|
|
|
134
176
|
"caption": "",
|
|
135
177
|
"showDownloadUrl": false,
|
|
136
178
|
"showDataTableLink": true,
|
|
137
|
-
"indexLabel": "",
|
|
138
|
-
"download":
|
|
179
|
+
"indexLabel": "Data Group",
|
|
180
|
+
"download": true,
|
|
139
181
|
"showVertical": false,
|
|
140
182
|
"dateDisplayFormat": "",
|
|
141
183
|
"show": true
|
|
@@ -147,7 +189,7 @@
|
|
|
147
189
|
"hide": false,
|
|
148
190
|
"behavior": "isolate",
|
|
149
191
|
"axisAlign": true,
|
|
150
|
-
"singleRow":
|
|
192
|
+
"singleRow": false,
|
|
151
193
|
"colorCode": "",
|
|
152
194
|
"reverseLabelOrder": false,
|
|
153
195
|
"description": "",
|
|
@@ -160,7 +202,7 @@
|
|
|
160
202
|
"verticalSorted": false,
|
|
161
203
|
"highlightOnHover": false,
|
|
162
204
|
"seriesHighlight": [],
|
|
163
|
-
"position": "
|
|
205
|
+
"position": "right",
|
|
164
206
|
"label": "Type of Data"
|
|
165
207
|
},
|
|
166
208
|
"brush": {
|
|
@@ -168,37 +210,37 @@
|
|
|
168
210
|
"data": [
|
|
169
211
|
{
|
|
170
212
|
"Date": "1/15/2016",
|
|
171
|
-
"Data 1": "",
|
|
172
|
-
"Data 2": "
|
|
213
|
+
"Data 1": "90",
|
|
214
|
+
"Data 2": "135",
|
|
173
215
|
"Data 3": "300",
|
|
174
|
-
"Data 4": "
|
|
175
|
-
"Data 5": "
|
|
176
|
-
"Data 6": "
|
|
216
|
+
"Data 4": "95",
|
|
217
|
+
"Data 5": "120",
|
|
218
|
+
"Data 6": "310"
|
|
177
219
|
},
|
|
178
220
|
{
|
|
179
221
|
"Date": "2/15/2016",
|
|
180
222
|
"Data 1": "40",
|
|
181
|
-
"Data 2": "
|
|
223
|
+
"Data 2": "90",
|
|
182
224
|
"Data 3": "240",
|
|
183
225
|
"Data 4": "60",
|
|
184
|
-
"Data 5": "
|
|
185
|
-
"Data 6": "
|
|
226
|
+
"Data 5": "160",
|
|
227
|
+
"Data 6": "200"
|
|
186
228
|
},
|
|
187
229
|
{
|
|
188
230
|
"Date": "3/15/2016",
|
|
189
231
|
"Data 1": "50",
|
|
190
232
|
"Data 2": "300",
|
|
191
|
-
"Data 3": "
|
|
233
|
+
"Data 3": "290",
|
|
192
234
|
"Data 4": "100",
|
|
193
|
-
"Data 5": "
|
|
235
|
+
"Data 5": "200",
|
|
194
236
|
"Data 6": "250"
|
|
195
237
|
},
|
|
196
238
|
{
|
|
197
239
|
"Date": "4/15/2016",
|
|
198
|
-
"Data 1": "",
|
|
240
|
+
"Data 1": "120",
|
|
199
241
|
"Data 2": "160",
|
|
200
242
|
"Data 3": "230",
|
|
201
|
-
"Data 4": "
|
|
243
|
+
"Data 4": "180",
|
|
202
244
|
"Data 5": "160",
|
|
203
245
|
"Data 6": "220"
|
|
204
246
|
},
|
|
@@ -221,7 +263,9 @@
|
|
|
221
263
|
"Data 6": "300"
|
|
222
264
|
}
|
|
223
265
|
],
|
|
224
|
-
"active": false
|
|
266
|
+
"active": false,
|
|
267
|
+
"pattern_id": "brush_pattern",
|
|
268
|
+
"accent_color": "#ddd"
|
|
225
269
|
},
|
|
226
270
|
"exclusions": {
|
|
227
271
|
"active": false,
|
|
@@ -257,37 +301,7 @@
|
|
|
257
301
|
"series": [
|
|
258
302
|
{
|
|
259
303
|
"dataKey": "Data 1",
|
|
260
|
-
"type": "
|
|
261
|
-
"tooltip": true,
|
|
262
|
-
"axis": "Left"
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"dataKey": "Data 2",
|
|
266
|
-
"type": "Line",
|
|
267
|
-
"tooltip": true,
|
|
268
|
-
"axis": "Left"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"dataKey": "Data 3",
|
|
272
|
-
"type": "Line",
|
|
273
|
-
"tooltip": true,
|
|
274
|
-
"axis": "Left"
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
"dataKey": "Data 4",
|
|
278
|
-
"type": "Line",
|
|
279
|
-
"tooltip": true,
|
|
280
|
-
"axis": "Left"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"dataKey": "Data 5",
|
|
284
|
-
"type": "Line",
|
|
285
|
-
"tooltip": true,
|
|
286
|
-
"axis": "Left"
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"dataKey": "Data 6",
|
|
290
|
-
"type": "Line",
|
|
304
|
+
"type": "Bar",
|
|
291
305
|
"tooltip": true,
|
|
292
306
|
"axis": "Left"
|
|
293
307
|
}
|
|
@@ -313,7 +327,7 @@
|
|
|
313
327
|
},
|
|
314
328
|
"estimateField": "",
|
|
315
329
|
"estimateRadius": "",
|
|
316
|
-
"shape": "
|
|
330
|
+
"shape": "",
|
|
317
331
|
"rowHeight": 20,
|
|
318
332
|
"description": {
|
|
319
333
|
"show": true,
|
|
@@ -326,8 +340,8 @@
|
|
|
326
340
|
"location": 100
|
|
327
341
|
},
|
|
328
342
|
"radius": {
|
|
329
|
-
"min":
|
|
330
|
-
"max":
|
|
343
|
+
"min": 1,
|
|
344
|
+
"max": 8,
|
|
331
345
|
"scalingColumn": ""
|
|
332
346
|
},
|
|
333
347
|
"regression": {
|
|
@@ -339,7 +353,11 @@
|
|
|
339
353
|
"rightWidthOffset": 0,
|
|
340
354
|
"showZeroLine": false,
|
|
341
355
|
"leftLabel": "",
|
|
342
|
-
"rightLabel": ""
|
|
356
|
+
"rightLabel": "",
|
|
357
|
+
"hideDateCategoryCol": false,
|
|
358
|
+
"width": "auto",
|
|
359
|
+
"lowerCiField": "",
|
|
360
|
+
"upperCiField": ""
|
|
343
361
|
},
|
|
344
362
|
"area": {
|
|
345
363
|
"isStacked": false
|
|
@@ -386,41 +404,42 @@
|
|
|
386
404
|
},
|
|
387
405
|
"data": []
|
|
388
406
|
},
|
|
407
|
+
"showChartBrush": false,
|
|
389
408
|
"height": "375",
|
|
390
409
|
"data": [
|
|
391
410
|
{
|
|
392
411
|
"Date": "1/15/2016",
|
|
393
|
-
"Data 1": "
|
|
394
|
-
"Data 2": "
|
|
412
|
+
"Data 1": "90",
|
|
413
|
+
"Data 2": "135",
|
|
395
414
|
"Data 3": "300",
|
|
396
|
-
"Data 4": "
|
|
397
|
-
"Data 5": "
|
|
398
|
-
"Data 6": "
|
|
415
|
+
"Data 4": "95",
|
|
416
|
+
"Data 5": "120",
|
|
417
|
+
"Data 6": "310"
|
|
399
418
|
},
|
|
400
419
|
{
|
|
401
420
|
"Date": "2/15/2016",
|
|
402
421
|
"Data 1": "40",
|
|
403
|
-
"Data 2": "
|
|
422
|
+
"Data 2": "90",
|
|
404
423
|
"Data 3": "240",
|
|
405
424
|
"Data 4": "60",
|
|
406
|
-
"Data 5": "
|
|
407
|
-
"Data 6": "
|
|
425
|
+
"Data 5": "160",
|
|
426
|
+
"Data 6": "200"
|
|
408
427
|
},
|
|
409
428
|
{
|
|
410
429
|
"Date": "3/15/2016",
|
|
411
430
|
"Data 1": "50",
|
|
412
431
|
"Data 2": "300",
|
|
413
|
-
"Data 3": "
|
|
432
|
+
"Data 3": "290",
|
|
414
433
|
"Data 4": "100",
|
|
415
|
-
"Data 5": "
|
|
434
|
+
"Data 5": "200",
|
|
416
435
|
"Data 6": "250"
|
|
417
436
|
},
|
|
418
437
|
{
|
|
419
438
|
"Date": "4/15/2016",
|
|
420
|
-
"Data 1": "",
|
|
439
|
+
"Data 1": "120",
|
|
421
440
|
"Data 2": "160",
|
|
422
441
|
"Data 3": "230",
|
|
423
|
-
"Data 4": "
|
|
442
|
+
"Data 4": "180",
|
|
424
443
|
"Data 5": "160",
|
|
425
444
|
"Data 6": "220"
|
|
426
445
|
},
|
|
@@ -444,6 +463,68 @@
|
|
|
444
463
|
}
|
|
445
464
|
],
|
|
446
465
|
"visualizationType": "Line",
|
|
466
|
+
"regions": [],
|
|
447
467
|
"validated": "4.24.3",
|
|
448
|
-
"
|
|
468
|
+
"formattedData": [
|
|
469
|
+
{
|
|
470
|
+
"Date": "1/15/2016",
|
|
471
|
+
"Data 1": "90",
|
|
472
|
+
"Data 2": "135",
|
|
473
|
+
"Data 3": "300",
|
|
474
|
+
"Data 4": "95",
|
|
475
|
+
"Data 5": "120",
|
|
476
|
+
"Data 6": "310"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"Date": "2/15/2016",
|
|
480
|
+
"Data 1": "40",
|
|
481
|
+
"Data 2": "90",
|
|
482
|
+
"Data 3": "240",
|
|
483
|
+
"Data 4": "60",
|
|
484
|
+
"Data 5": "160",
|
|
485
|
+
"Data 6": "200"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"Date": "3/15/2016",
|
|
489
|
+
"Data 1": "50",
|
|
490
|
+
"Data 2": "300",
|
|
491
|
+
"Data 3": "290",
|
|
492
|
+
"Data 4": "100",
|
|
493
|
+
"Data 5": "200",
|
|
494
|
+
"Data 6": "250"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"Date": "4/15/2016",
|
|
498
|
+
"Data 1": "120",
|
|
499
|
+
"Data 2": "160",
|
|
500
|
+
"Data 3": "230",
|
|
501
|
+
"Data 4": "180",
|
|
502
|
+
"Data 5": "160",
|
|
503
|
+
"Data 6": "220"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"Date": "5/15/2016",
|
|
507
|
+
"Data 1": "80",
|
|
508
|
+
"Data 2": "350",
|
|
509
|
+
"Data 3": "300",
|
|
510
|
+
"Data 4": "150",
|
|
511
|
+
"Data 5": "130",
|
|
512
|
+
"Data 6": "100"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"Date": "6/15/2016",
|
|
516
|
+
"Data 1": "90",
|
|
517
|
+
"Data 2": "220",
|
|
518
|
+
"Data 3": "320",
|
|
519
|
+
"Data 4": "100",
|
|
520
|
+
"Data 5": "220",
|
|
521
|
+
"Data 6": "300"
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
"dataDescription": {
|
|
525
|
+
"horizontal": false,
|
|
526
|
+
"series": false
|
|
527
|
+
},
|
|
528
|
+
"dynamicMarginTop": 0,
|
|
529
|
+
"version": "4.24.3"
|
|
449
530
|
}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
{
|
|
2
|
+
"annotations": [],
|
|
3
|
+
"type": "chart",
|
|
4
|
+
"debugSvg": false,
|
|
5
|
+
"chartMessage": { "noData": "No Data Available" },
|
|
6
|
+
"title": "Combo Bar-Line Chart",
|
|
7
|
+
"showTitle": true,
|
|
8
|
+
"showDownloadMediaButton": false,
|
|
9
|
+
"theme": "theme-purple",
|
|
10
|
+
"animate": false,
|
|
11
|
+
"fontSize": "medium",
|
|
12
|
+
"lineDatapointStyle": "hover",
|
|
13
|
+
"lineDatapointColor": "Same as Line",
|
|
14
|
+
"barHasBorder": "false",
|
|
15
|
+
"isLollipopChart": false,
|
|
16
|
+
"lollipopShape": "circle",
|
|
17
|
+
"lollipopColorStyle": "two-tone",
|
|
18
|
+
"visualizationSubType": "regular",
|
|
19
|
+
"barStyle": "flat",
|
|
20
|
+
"roundingStyle": "standard",
|
|
21
|
+
"tipRounding": "top",
|
|
22
|
+
"isResponsiveTicks": false,
|
|
23
|
+
"general": { "annotationDropdownText": "Annotations", "showDownloadButton": false, "showMissingDataLabel": true, "showSuppressedSymbol": true, "showZeroValueDataLabel": true },
|
|
24
|
+
"padding": { "left": 5, "right": 5 },
|
|
25
|
+
"preliminaryData": [],
|
|
26
|
+
"yAxis": {
|
|
27
|
+
"hideAxis": false,
|
|
28
|
+
"displayNumbersOnBar": false,
|
|
29
|
+
"hideLabel": false,
|
|
30
|
+
"hideTicks": false,
|
|
31
|
+
"size": "68",
|
|
32
|
+
"gridLines": true,
|
|
33
|
+
"enablePadding": false,
|
|
34
|
+
"min": "",
|
|
35
|
+
"max": "",
|
|
36
|
+
"labelColor": "#333",
|
|
37
|
+
"tickLabelColor": "#333",
|
|
38
|
+
"tickColor": "#333",
|
|
39
|
+
"rightHideAxis": true,
|
|
40
|
+
"rightAxisSize": 50,
|
|
41
|
+
"rightLabel": "",
|
|
42
|
+
"rightLabelOffsetSize": 0,
|
|
43
|
+
"rightAxisLabelColor": "#333",
|
|
44
|
+
"rightAxisTickLabelColor": "#333",
|
|
45
|
+
"rightAxisTickColor": "#333",
|
|
46
|
+
"numTicks": "",
|
|
47
|
+
"axisPadding": 0,
|
|
48
|
+
"scalePadding": 10,
|
|
49
|
+
"tickRotation": 0,
|
|
50
|
+
"anchors": [],
|
|
51
|
+
"shoMissingDataLabel": true,
|
|
52
|
+
"showMissingDataLine": true,
|
|
53
|
+
"categories": [],
|
|
54
|
+
"label": "Y-Axis Label Example",
|
|
55
|
+
"maxValue": 1000
|
|
56
|
+
},
|
|
57
|
+
"boxplot": {
|
|
58
|
+
"plots": [],
|
|
59
|
+
"borders": "true",
|
|
60
|
+
"firstQuartilePercentage": 25,
|
|
61
|
+
"thirdQuartilePercentage": 75,
|
|
62
|
+
"boxWidthPercentage": 40,
|
|
63
|
+
"plotOutlierValues": false,
|
|
64
|
+
"plotNonOutlierValues": true,
|
|
65
|
+
"legend": { "showHowToReadText": false, "howToReadText": "" },
|
|
66
|
+
"labels": { "q1": "Lower Quartile", "q2": "q2", "q3": "Upper Quartile", "q4": "q4", "minimum": "Minimum", "maximum": "Maximum", "mean": "Mean", "median": "Median", "sd": "Standard Deviation", "iqr": "Interquartile Range", "total": "Total", "outliers": "Outliers", "values": "Values" }
|
|
67
|
+
},
|
|
68
|
+
"topAxis": { "hasLine": false },
|
|
69
|
+
"isLegendValue": false,
|
|
70
|
+
"barThickness": 0.35,
|
|
71
|
+
"barHeight": 25,
|
|
72
|
+
"barSpace": 15,
|
|
73
|
+
"heights": { "vertical": 300, "horizontal": 750 },
|
|
74
|
+
"xAxis": {
|
|
75
|
+
"sortDates": false,
|
|
76
|
+
"anchors": [],
|
|
77
|
+
"type": "date-time",
|
|
78
|
+
"showTargetLabel": true,
|
|
79
|
+
"targetLabel": "Target",
|
|
80
|
+
"hideAxis": false,
|
|
81
|
+
"hideLabel": false,
|
|
82
|
+
"hideTicks": false,
|
|
83
|
+
"size": "78",
|
|
84
|
+
"tickRotation": "25",
|
|
85
|
+
"min": "",
|
|
86
|
+
"max": "",
|
|
87
|
+
"labelColor": "#333",
|
|
88
|
+
"tickLabelColor": "#333",
|
|
89
|
+
"tickColor": "#333",
|
|
90
|
+
"numTicks": "",
|
|
91
|
+
"labelOffset": 65,
|
|
92
|
+
"axisPadding": 0,
|
|
93
|
+
"target": 0,
|
|
94
|
+
"maxTickRotation": 0,
|
|
95
|
+
"dataKey": "Date",
|
|
96
|
+
"label": "X-Axis Example Label",
|
|
97
|
+
"dateParseFormat": "%m/%d/%Y",
|
|
98
|
+
"dateDisplayFormat": "%m/%d/%Y",
|
|
99
|
+
"tickWidthMax": 91,
|
|
100
|
+
"padding": 6,
|
|
101
|
+
"axisBBox": 164.5282745361328
|
|
102
|
+
},
|
|
103
|
+
"table": {
|
|
104
|
+
"label": "Data Table",
|
|
105
|
+
"expanded": true,
|
|
106
|
+
"limitHeight": false,
|
|
107
|
+
"height": "",
|
|
108
|
+
"caption": "",
|
|
109
|
+
"showDownloadUrl": false,
|
|
110
|
+
"showDataTableLink": true,
|
|
111
|
+
"indexLabel": "",
|
|
112
|
+
"download": true,
|
|
113
|
+
"showVertical": false,
|
|
114
|
+
"dateDisplayFormat": "",
|
|
115
|
+
"showMissingDataLabel": true,
|
|
116
|
+
"showSuppressedSymbol": true,
|
|
117
|
+
"show": true
|
|
118
|
+
},
|
|
119
|
+
"orientation": "vertical",
|
|
120
|
+
"color": "pinkpurple",
|
|
121
|
+
"columns": {},
|
|
122
|
+
"legend": {
|
|
123
|
+
"hide": false,
|
|
124
|
+
"behavior": "highlight",
|
|
125
|
+
"axisAlign": true,
|
|
126
|
+
"singleRow": false,
|
|
127
|
+
"colorCode": "",
|
|
128
|
+
"reverseLabelOrder": false,
|
|
129
|
+
"description": "",
|
|
130
|
+
"dynamicLegend": false,
|
|
131
|
+
"dynamicLegendDefaultText": "Show All",
|
|
132
|
+
"dynamicLegendItemLimit": 5,
|
|
133
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
134
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
135
|
+
"label": "",
|
|
136
|
+
"lineMode": false,
|
|
137
|
+
"verticalSorted": false,
|
|
138
|
+
"highlightOnHover": false,
|
|
139
|
+
"hideSuppressedLabels": false,
|
|
140
|
+
"seriesHighlight": [],
|
|
141
|
+
"style": "gradient",
|
|
142
|
+
"subStyle": "smooth",
|
|
143
|
+
"hasBorder": true,
|
|
144
|
+
"tickRotation": "0",
|
|
145
|
+
"position": "top"
|
|
146
|
+
},
|
|
147
|
+
"brush": {
|
|
148
|
+
"height": 25,
|
|
149
|
+
"active": false,
|
|
150
|
+
"data": [
|
|
151
|
+
{ "Date": "1/15/2016", "Data 1": "1000", "Data 2": "110", "Data 3": "100", "Data 4": "90", "Monthly-Goal": "100" },
|
|
152
|
+
{ "Date": "2/15/2016", "Data 1": "100", "Data 2": "110", "Data 3": "100", "Data 4": "100", "Monthly-Goal": "100" },
|
|
153
|
+
{ "Date": "3/15/2016", "Data 1": "80", "Data 2": "90", "Data 3": "100", "Data 4": "120", "Monthly-Goal": "110" },
|
|
154
|
+
{ "Date": "4/15/2016", "Data 1": "80", "Data 2": "90", "Data 3": "110", "Data 4": "120", "Monthly-Goal": "110" },
|
|
155
|
+
{ "Date": "5/15/2016", "Data 1": "70", "Data 2": "90", "Data 3": "110", "Data 4": "130", "Monthly-Goal": "120" },
|
|
156
|
+
{ "Date": "6/15/2016", "Data 1": "100", "Data 2": "120", "Data 3": "120", "Data 4": "130", "Monthly-Goal": "120" },
|
|
157
|
+
{ "Date": "7/15/2016", "Data 1": "110", "Data 2": "140", "Data 3": "120", "Data 4": "130", "Monthly-Goal": "130" },
|
|
158
|
+
{ "Date": "8/15/2016", "Data 1": "110", "Data 2": "130", "Data 3": "120", "Data 4": "140", "Monthly-Goal": "130" },
|
|
159
|
+
{ "Date": "9/15/2016", "Data 1": "120", "Data 2": "130", "Data 3": "120", "Data 4": "150", "Monthly-Goal": "140" }
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
"exclusions": { "active": false, "keys": [] },
|
|
163
|
+
"palette": "sequential-blue",
|
|
164
|
+
"isPaletteReversed": false,
|
|
165
|
+
"twoColor": { "palette": "monochrome-1", "isPaletteReversed": false },
|
|
166
|
+
"labels": false,
|
|
167
|
+
"dataFormat": { "commas": false, "prefix": "", "suffix": "", "abbreviated": false, "bottomSuffix": "", "bottomPrefix": "", "bottomAbbreviated": false },
|
|
168
|
+
"confidenceKeys": {},
|
|
169
|
+
"visual": { "border": true, "accent": true, "background": true, "verticalHoverLine": false, "horizontalHoverLine": false },
|
|
170
|
+
"useLogScale": false,
|
|
171
|
+
"filterBehavior": "Filter Change",
|
|
172
|
+
"highlightedBarValues": [],
|
|
173
|
+
"series": [
|
|
174
|
+
{ "dataKey": "Data 2", "type": "Bar", "axis": "Left", "tooltip": true },
|
|
175
|
+
{ "dataKey": "Data 1", "type": "Bar", "axis": "Left", "tooltip": true },
|
|
176
|
+
{ "dataKey": "Data 3", "type": "Bar", "axis": "Left", "tooltip": true }
|
|
177
|
+
],
|
|
178
|
+
"tooltips": { "opacity": 90, "singleSeries": false, "dateDisplayFormat": "" },
|
|
179
|
+
"forestPlot": {
|
|
180
|
+
"startAt": 0,
|
|
181
|
+
"colors": { "line": "", "shape": "" },
|
|
182
|
+
"lineOfNoEffect": { "show": true },
|
|
183
|
+
"type": "",
|
|
184
|
+
"pooledResult": { "diamondHeight": 5, "column": "" },
|
|
185
|
+
"estimateField": "",
|
|
186
|
+
"estimateRadius": "",
|
|
187
|
+
"shape": "",
|
|
188
|
+
"rowHeight": 20,
|
|
189
|
+
"description": { "show": true, "text": "description", "location": 0 },
|
|
190
|
+
"result": { "show": true, "text": "result", "location": 100 },
|
|
191
|
+
"radius": { "min": 1, "max": 8, "scalingColumn": "" },
|
|
192
|
+
"regression": { "lower": 0, "upper": 0, "estimateField": 0 },
|
|
193
|
+
"leftWidthOffset": 0,
|
|
194
|
+
"rightWidthOffset": 0,
|
|
195
|
+
"showZeroLine": false,
|
|
196
|
+
"leftLabel": "",
|
|
197
|
+
"rightLabel": "",
|
|
198
|
+
"hideDateCategoryCol": false
|
|
199
|
+
},
|
|
200
|
+
"area": { "isStacked": false },
|
|
201
|
+
"sankey": {
|
|
202
|
+
"title": { "defaultColor": "black" },
|
|
203
|
+
"iterations": 1,
|
|
204
|
+
"rxValue": 0.9,
|
|
205
|
+
"overallSize": { "width": 900, "height": 700 },
|
|
206
|
+
"margin": { "margin_y": 25, "margin_x": 0 },
|
|
207
|
+
"nodeSize": { "nodeWidth": 26, "nodeHeight": 40 },
|
|
208
|
+
"nodePadding": 55,
|
|
209
|
+
"nodeFontColor": "black",
|
|
210
|
+
"nodeColor": { "default": "#ff8500", "inactive": "#808080" },
|
|
211
|
+
"linkColor": { "default": "#ffc900", "inactive": "#D3D3D3" },
|
|
212
|
+
"opacity": { "nodeOpacityDefault": 1, "nodeOpacityInactive": 0.1, "LinkOpacityDefault": 1, "LinkOpacityInactive": 0.1 },
|
|
213
|
+
"storyNodeFontColor": "#006778",
|
|
214
|
+
"storyNodeText": [],
|
|
215
|
+
"nodeValueStyle": { "textBefore": "(", "textAfter": ")" },
|
|
216
|
+
"data": []
|
|
217
|
+
},
|
|
218
|
+
"suppressedData": [],
|
|
219
|
+
"height": "332",
|
|
220
|
+
"data": [
|
|
221
|
+
{ "Date": "1/15/2016", "Data 1": "$1,000", "Data 2": "110", "Data 3": "100", "Data 4": "90", "Monthly-Goal": "100" },
|
|
222
|
+
{ "Date": "2/15/2016", "Data 1": "100", "Data 2": "110", "Data 3": "100", "Data 4": "100", "Monthly-Goal": "100" },
|
|
223
|
+
{ "Date": "3/15/2016", "Data 1": "80", "Data 2": "90", "Data 3": "100", "Data 4": "120", "Monthly-Goal": "110" },
|
|
224
|
+
{ "Date": "4/15/2016", "Data 1": "80", "Data 2": "90", "Data 3": "110", "Data 4": "120", "Monthly-Goal": "110" },
|
|
225
|
+
{ "Date": "5/15/2016", "Data 1": "70", "Data 2": "90", "Data 3": "110", "Data 4": "130", "Monthly-Goal": "120" },
|
|
226
|
+
{ "Date": "6/15/2016", "Data 1": "100", "Data 2": "120", "Data 3": "120", "Data 4": "130", "Monthly-Goal": "120" },
|
|
227
|
+
{ "Date": "7/15/2016", "Data 1": "110", "Data 2": "140", "Data 3": "120", "Data 4": "130", "Monthly-Goal": "130" },
|
|
228
|
+
{ "Date": "8/15/2016", "Data 1": "110", "Data 2": "130", "Data 3": "120", "Data 4": "140", "Monthly-Goal": "130" },
|
|
229
|
+
{ "Date": "9/15/2016", "Data 1": "120", "Data 2": "130", "Data 3": "120", "Data 4": "150", "Monthly-Goal": "140" }
|
|
230
|
+
],
|
|
231
|
+
"visualizationType": "Bar",
|
|
232
|
+
"filters": [],
|
|
233
|
+
"validated": 4.23,
|
|
234
|
+
"dynamicMarginTop": 0,
|
|
235
|
+
"version": "4.24.9"
|
|
236
|
+
}
|