@cdc/chart 4.22.11 → 4.23.2
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 +54569 -16
- package/examples/Barchart_with_negative.json +34 -0
- package/examples/box-plot-data.json +71 -0
- package/examples/box-plot.csv +5 -0
- package/examples/box-plot.json +124 -0
- package/examples/dynamic-legends.json +1 -1
- package/examples/example-bar-chart-nonnumeric.json +36 -0
- package/examples/example-bar-chart.json +33 -0
- package/examples/example-combo-bar-nonnumeric.json +105 -0
- package/examples/gallery/bar-chart-vertical/combo-line-chart.json +3 -1
- package/examples/gallery/bar-chart-vertical/vertical-bar-chart-categorical.json +1 -1
- package/examples/gallery/bar-chart-vertical/vertical-bar-chart.json +86 -17
- package/examples/gallery/paired-bar/paired-bar-chart.json +65 -13
- package/examples/line-chart-nonnumeric.json +32 -0
- package/examples/line-chart.json +21 -63
- package/examples/new-data.csv +17 -0
- package/examples/newdata.json +90 -0
- package/examples/planet-combo-example-config.json +143 -20
- package/examples/planet-example-data-nonnumeric.json +56 -0
- package/examples/planet-example-data.json +2 -2
- package/examples/planet-pie-example-config-nonnumeric.json +30 -0
- package/examples/scatterplot-continuous.csv +17 -0
- package/examples/{private/yaxis-test.json → scatterplot.json} +53 -50
- package/examples/sparkline-chart-nonnumeric.json +76 -0
- package/examples/stacked-vertical-bar-example-negative.json +154 -0
- package/examples/stacked-vertical-bar-example-nonnumerics.json +154 -0
- package/{src/index.html → index.html} +18 -11
- package/package.json +29 -22
- package/src/{CdcChart.tsx → CdcChart.jsx} +193 -119
- package/src/components/BarChart.jsx +517 -0
- package/src/components/BoxPlot.jsx +88 -0
- package/src/components/{DataTable.tsx → DataTable.jsx} +125 -32
- package/src/components/{EditorPanel.js → EditorPanel.jsx} +376 -115
- package/src/components/Filters.jsx +125 -0
- package/src/components/Legend.jsx +303 -0
- package/src/components/{LineChart.tsx → LineChart.jsx} +87 -22
- package/src/components/{LinearChart.tsx → LinearChart.jsx} +172 -113
- package/src/components/{PairedBarChart.tsx → PairedBarChart.jsx} +46 -79
- package/src/components/{PieChart.tsx → PieChart.jsx} +29 -34
- package/src/components/ScatterPlot.jsx +48 -0
- package/src/components/{SparkLine.js → SparkLine.jsx} +49 -18
- package/src/components/useIntersectionObserver.jsx +29 -0
- package/src/data/initial-state.js +44 -8
- package/src/hooks/{useColorPalette.ts → useColorPalette.js} +10 -28
- package/src/hooks/{useReduceData.ts → useReduceData.js} +27 -13
- package/src/hooks/useRightAxis.js +3 -1
- package/src/index.jsx +16 -0
- package/src/scss/DataTable.scss +23 -1
- package/src/scss/main.scss +83 -32
- package/vite.config.js +4 -0
- package/examples/private/filters.json +0 -170
- package/examples/private/line-test-data.json +0 -22
- package/examples/private/line-test-two.json +0 -210
- package/examples/private/line-test.json +0 -102
- package/examples/private/new.json +0 -48800
- package/examples/private/newtest.csv +0 -101
- package/examples/private/shawn.json +0 -1106
- package/examples/private/test.json +0 -10124
- package/examples/private/yaxis-testing.csv +0 -27
- package/examples/private/yaxis.json +0 -28
- package/src/components/BarChart.tsx +0 -579
- package/src/components/Legend.js +0 -284
- package/src/components/useIntersectionObserver.tsx +0 -27
- package/src/index.tsx +0 -18
- /package/src/{context.tsx → ConfigContext.jsx} +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"Category": "One",
|
|
4
|
+
"Values": 888
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"Category": "Two",
|
|
8
|
+
"Values": 400
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"Category": "Three",
|
|
12
|
+
"Values": -100
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"Category": "Four",
|
|
16
|
+
"Values": 500
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"Category": "Five",
|
|
20
|
+
"Values": 700
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"Category": "Six",
|
|
24
|
+
"Values": -1000
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"Category": "Seven",
|
|
28
|
+
"Values": 300
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"Category": "Eight",
|
|
32
|
+
"Values": -500
|
|
33
|
+
}
|
|
34
|
+
]
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"x": "Group 1",
|
|
4
|
+
"min": -3.529439249291613,
|
|
5
|
+
"firstQuartile": 2.498913996933074,
|
|
6
|
+
"median": 6,
|
|
7
|
+
"thirdQuartile": 6.517816161082865,
|
|
8
|
+
"max": 12.546169407307552,
|
|
9
|
+
"outliers": [
|
|
10
|
+
-4.222649440089676,
|
|
11
|
+
-3.7995254226812145,
|
|
12
|
+
12.669680018702707
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"x": "Group 2",
|
|
17
|
+
"min": -2.961278855962981,
|
|
18
|
+
"firstQuartile": 3.1553763355078277,
|
|
19
|
+
"median": 5.31642875968012,
|
|
20
|
+
"thirdQuartile": 7.233146463155033,
|
|
21
|
+
"max": 13.349801654625843,
|
|
22
|
+
"outliers": [
|
|
23
|
+
-4.5962772985737645,
|
|
24
|
+
14.42798091207488,
|
|
25
|
+
14.832072412460995
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"x": "Group 3",
|
|
30
|
+
"min": -0.784362943544294,
|
|
31
|
+
"firstQuartile": 5.600233888319485,
|
|
32
|
+
"median": 7.606034555385235,
|
|
33
|
+
"thirdQuartile": 9.85663177622867,
|
|
34
|
+
"max": 16.24122860809245,
|
|
35
|
+
"outliers": [
|
|
36
|
+
-2.0568265981730285,
|
|
37
|
+
-2.036299998010181,
|
|
38
|
+
-1.634595257757523,
|
|
39
|
+
-0.9751707921193091,
|
|
40
|
+
-0.9256799494292718,
|
|
41
|
+
-0.813852054679872,
|
|
42
|
+
16.255225428689318,
|
|
43
|
+
19.221712546396496
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"x": "Group 4",
|
|
48
|
+
"min": -3.4976011611041598,
|
|
49
|
+
"firstQuartile": 2.362493132101971,
|
|
50
|
+
"median": 4.364242960871863,
|
|
51
|
+
"thirdQuartile": 6.269222660906058,
|
|
52
|
+
"max": 12.129316954112188,
|
|
53
|
+
"outliers": [
|
|
54
|
+
-5.912277243480174,
|
|
55
|
+
-4.535668956980487,
|
|
56
|
+
-4.255719319016919,
|
|
57
|
+
-4.175200716132927,
|
|
58
|
+
-4.1021204775116455,
|
|
59
|
+
-3.7913796362224352,
|
|
60
|
+
-3.6909919981778567,
|
|
61
|
+
-3.6261129831962697,
|
|
62
|
+
12.169135739844744,
|
|
63
|
+
12.1724073804239,
|
|
64
|
+
12.191268834215071,
|
|
65
|
+
12.236896118210165,
|
|
66
|
+
12.34513716605812,
|
|
67
|
+
12.826785108558722,
|
|
68
|
+
13.048968511771164
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
x,min,firstQuartile,median,thirdQuartile,max,outliers
|
|
2
|
+
Group 1,-3.529439249291613,2.498913996933074,6,6.517816161082865,12.546169407307552,-4.222649440089676,-3.7995254226812145,12.669680018702707,,,,,,,,,,,,
|
|
3
|
+
Group 2,-2.961278855962981,3.1553763355078277,5.31642875968012,7.233146463155033,13.349801654625843,-4.5962772985737645,14.42798091207488,14.832072412460995,,,,,,,,,,,,
|
|
4
|
+
Group 3,-0.784362943544294,5.600233888319485,7.606034555385235,9.85663177622867,16.24122860809245,-2.0568265981730285,-2.036299998010181,-1.634595257757523,-0.9751707921193091,-0.9256799494292718,-0.813852054679872,16.255225428689318,19.221712546396496,,,,,,,
|
|
5
|
+
Group 4,-3.4976011611041598,2.362493132101971,4.364242960871863,6.269222660906058,12.129316954112188,-5.912277243480174,-4.535668956980487,-4.255719319016919,-4.175200716132927,-4.1021204775116455,-3.7913796362224352,-3.6909919981778567,-3.6261129831962697,12.169135739844744,12.1724073804239,12.191268834215071,12.236896118210165,12.34513716605812,12.826785108558722,13.048968511771164
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Example Box Plot",
|
|
4
|
+
"theme": "theme-blue",
|
|
5
|
+
"animate": false,
|
|
6
|
+
"fontSize": "medium",
|
|
7
|
+
"lineDatapointStyle": "hover",
|
|
8
|
+
"barHasBorder": "false",
|
|
9
|
+
"isLollipopChart": false,
|
|
10
|
+
"lollipopShape": "circle",
|
|
11
|
+
"lollipopColorStyle": "two-tone",
|
|
12
|
+
"visualizationSubType": "regular",
|
|
13
|
+
"barStyle": "",
|
|
14
|
+
"roundingStyle": "standard",
|
|
15
|
+
"tipRounding": "top",
|
|
16
|
+
"padding": {
|
|
17
|
+
"left": 5,
|
|
18
|
+
"right": 5
|
|
19
|
+
},
|
|
20
|
+
"yAxis": {
|
|
21
|
+
"dataKey": "Value",
|
|
22
|
+
"hideAxis": false,
|
|
23
|
+
"displayNumbersOnBar": false,
|
|
24
|
+
"hideLabel": false,
|
|
25
|
+
"hideTicks": false,
|
|
26
|
+
"size": 50,
|
|
27
|
+
"gridLines": true,
|
|
28
|
+
"min": "",
|
|
29
|
+
"max": "",
|
|
30
|
+
"labelColor": "#333",
|
|
31
|
+
"tickLabelColor": "#333",
|
|
32
|
+
"tickColor": "#333",
|
|
33
|
+
"rightHideAxis": true,
|
|
34
|
+
"rightAxisSize": 50,
|
|
35
|
+
"rightLabelOffsetSize": 0,
|
|
36
|
+
"rightAxisLabelColor": "#333",
|
|
37
|
+
"rightAxisTickLabelColor": "#333",
|
|
38
|
+
"rightAxisTickColor": "#333",
|
|
39
|
+
"isLegendValue": false,
|
|
40
|
+
"numTicks": "",
|
|
41
|
+
"label": "Observations"
|
|
42
|
+
},
|
|
43
|
+
"topAxis": {
|
|
44
|
+
"hasLine": false
|
|
45
|
+
},
|
|
46
|
+
"barThickness": 0.35,
|
|
47
|
+
"barHeight": 25,
|
|
48
|
+
"height": 300,
|
|
49
|
+
"xAxis": {
|
|
50
|
+
"type": "categorical",
|
|
51
|
+
"hideAxis": false,
|
|
52
|
+
"hideLabel": false,
|
|
53
|
+
"hideTicks": false,
|
|
54
|
+
"size": 75,
|
|
55
|
+
"tickRotation": 0,
|
|
56
|
+
"min": "",
|
|
57
|
+
"max": "",
|
|
58
|
+
"labelColor": "#333",
|
|
59
|
+
"tickLabelColor": "#333",
|
|
60
|
+
"tickColor": "#333",
|
|
61
|
+
"isLegendValue": false,
|
|
62
|
+
"numTicks": "",
|
|
63
|
+
"dataKey": "Group_Category",
|
|
64
|
+
"label": "Groups"
|
|
65
|
+
},
|
|
66
|
+
"table": {
|
|
67
|
+
"label": "Data Table",
|
|
68
|
+
"expanded": true,
|
|
69
|
+
"limitHeight": false,
|
|
70
|
+
"height": "",
|
|
71
|
+
"caption": "",
|
|
72
|
+
"show": true
|
|
73
|
+
},
|
|
74
|
+
"orientation": "vertical",
|
|
75
|
+
"legend": {
|
|
76
|
+
"behavior": "isolate",
|
|
77
|
+
"position": "right",
|
|
78
|
+
"singleRow": false,
|
|
79
|
+
"colorCode": "",
|
|
80
|
+
"reverseLabelOrder": false,
|
|
81
|
+
"description": "",
|
|
82
|
+
"hide": true,
|
|
83
|
+
"dynamicLegend": false,
|
|
84
|
+
"dynamicLegendDefaultText": "Show All",
|
|
85
|
+
"dynamicLegendItemLimit": 5,
|
|
86
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
87
|
+
"dynamicLegendChartMessage": "Select Options from the Legend"
|
|
88
|
+
},
|
|
89
|
+
"exclusions": {
|
|
90
|
+
"active": false,
|
|
91
|
+
"keys": []
|
|
92
|
+
},
|
|
93
|
+
"palette": "qualitative1",
|
|
94
|
+
"isPaletteReversed": false,
|
|
95
|
+
"labels": false,
|
|
96
|
+
"dataFormat": {
|
|
97
|
+
"commas": false,
|
|
98
|
+
"prefix": "",
|
|
99
|
+
"suffix": "",
|
|
100
|
+
"useFormat": false
|
|
101
|
+
},
|
|
102
|
+
"confidenceKeys": {},
|
|
103
|
+
"visual": {
|
|
104
|
+
"border": true,
|
|
105
|
+
"accent": true,
|
|
106
|
+
"background": true
|
|
107
|
+
},
|
|
108
|
+
"dataUrl": "/examples/newdata.json",
|
|
109
|
+
"visualizationType": "Box Plot",
|
|
110
|
+
"description": "Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries for previewing layouts and visual mockups.",
|
|
111
|
+
"dataDescription": {
|
|
112
|
+
"horizontal": false,
|
|
113
|
+
"series": false,
|
|
114
|
+
"singleRow": true,
|
|
115
|
+
"xKey": "Group_Category",
|
|
116
|
+
"valueKey": "Value"
|
|
117
|
+
},
|
|
118
|
+
"series": [
|
|
119
|
+
{
|
|
120
|
+
"dataKey": "Value",
|
|
121
|
+
"type": "Bar"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Example Bar Chart",
|
|
4
|
+
"theme": "theme-blue",
|
|
5
|
+
"fontSize": "medium",
|
|
6
|
+
"height": 300,
|
|
7
|
+
"padding": { "left": 5, "right": 5 },
|
|
8
|
+
"yAxis": { "size": "76", "gridLines": false, "label": "Y Axis Example Label" },
|
|
9
|
+
"barThickness": "0.6",
|
|
10
|
+
"xAxis": { "size": "59", "tickRotation": 0, "dataKey": "Date", "label": "X Axis Example Label" },
|
|
11
|
+
"table": { "label": "Data Type by Date", "expanded": true },
|
|
12
|
+
"legend": { "behavior": "isolate", "position": "right", "label": "Type of Data" },
|
|
13
|
+
"palette": "qualitative-bold",
|
|
14
|
+
"labels": false,
|
|
15
|
+
"dataFormat": { "suffix": " units" },
|
|
16
|
+
"confidenceKeys": {},
|
|
17
|
+
"data": [
|
|
18
|
+
{ "Date": "1/15/2016", "Data 1": "90", "Data 2": "1323.5", "Data 3": "1000", "Data 4": "95", "Data 5": "120", "Data 6": "310" },
|
|
19
|
+
{ "Date": "2/15/2016", "Data 1": "NA", "Data 2": "90.3", "Data 3": "240", "Data 4": "60", "Data 5": "160", "Data 6": "200" },
|
|
20
|
+
{ "Date": "3/15/2016", "Data 1": "50", "Data 2": "booo", "Data 3": "290", "Data 4": "100", "Data 5": "200", "Data 6": "250" },
|
|
21
|
+
{ "Date": "4/15/2016", "Data 1": "", "Data 2": "160", "Data 3": "230", "Data 4": "180", "Data 5": "160", "Data 6": "220" },
|
|
22
|
+
{ "Date": "5/15/2016", "Data 1": "", "Data 2": "350", "Data 3": "300", "Data 4": "150", "Data 5": "130", "Data 6": "100" },
|
|
23
|
+
{ "Date": "6/15/2016", "Data 1": "90", "Data 2": "220", "Data 3": "320", "Data 4": "100", "Data 5": "220", "Data 6": "300" }
|
|
24
|
+
],
|
|
25
|
+
"visualizationType": "Bar",
|
|
26
|
+
"series": [
|
|
27
|
+
{ "dataKey": "Data 1", "type": "Bar" },
|
|
28
|
+
{ "dataKey": "Data 2", "type": "Bar" },
|
|
29
|
+
{ "dataKey": "Data 3", "type": "Bar" },
|
|
30
|
+
{ "dataKey": "Data 4", "type": "Bar" },
|
|
31
|
+
{ "dataKey": "Data 5", "type": "Bar" },
|
|
32
|
+
{ "dataKey": "Data 6", "type": "Bar" }
|
|
33
|
+
],
|
|
34
|
+
"description": "This example shows a bar chart created in the visualization editor in WCMS",
|
|
35
|
+
"dataCutoff": "0"
|
|
36
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Example Bar Chart",
|
|
4
|
+
"theme": "theme-blue",
|
|
5
|
+
"fontSize": "medium",
|
|
6
|
+
"height": 300,
|
|
7
|
+
"padding": { "left": 5, "right": 5 },
|
|
8
|
+
"yAxis": { "size": "76", "gridLines": false, "label": "Y Axis Example Label" },
|
|
9
|
+
"barThickness": "0.6",
|
|
10
|
+
"xAxis": { "size": "59", "tickRotation": 0, "dataKey": "Date", "label": "X Axis Example Label" },
|
|
11
|
+
"table": { "label": "Data Type by Date", "expanded": true },
|
|
12
|
+
"legend": { "behavior": "isolate", "position": "right", "label": "Type of Data" },
|
|
13
|
+
"palette": "qualitative-bold",
|
|
14
|
+
"labels": false,
|
|
15
|
+
"dataFormat": { "suffix": " units" },
|
|
16
|
+
"confidenceKeys": {},
|
|
17
|
+
"data": [
|
|
18
|
+
{ "Date": "1/15/2016", "Data 1": "90", "Data 2": "135", "Data 3": "300", "Data 4": "95", "Data 5": "120", "Data 6": "310" },
|
|
19
|
+
{ "Date": "2/15/2016", "Data 1": "40", "Data 2": "90", "Data 3": "240", "Data 4": "60", "Data 5": "160", "Data 6": "200" },
|
|
20
|
+
{ "Date": "3/15/2016", "Data 1": "50", "Data 2": "300", "Data 3": "290", "Data 4": "100", "Data 5": "200", "Data 6": "250" },
|
|
21
|
+
{ "Date": "4/15/2016", "Data 1": "120", "Data 2": "160", "Data 3": "230", "Data 4": "180", "Data 5": "160", "Data 6": "220" },
|
|
22
|
+
{ "Date": "5/15/2016", "Data 1": "80", "Data 2": "350", "Data 3": "300", "Data 4": "150", "Data 5": "130", "Data 6": "100" },
|
|
23
|
+
{ "Date": "6/15/2016", "Data 1": "90", "Data 2": "220", "Data 3": "320", "Data 4": "100", "Data 5": "220", "Data 6": "300" }
|
|
24
|
+
],
|
|
25
|
+
"visualizationType": "Bar",
|
|
26
|
+
"series": [
|
|
27
|
+
{ "dataKey": "Data 1", "type": "Bar" },
|
|
28
|
+
{ "dataKey": "Data 2", "type": "Bar" },
|
|
29
|
+
{ "dataKey": "Data 3", "type": "Bar" }
|
|
30
|
+
],
|
|
31
|
+
"description": "This example shows a bar chart created in the visualization editor in WCMS",
|
|
32
|
+
"dataCutoff": "0"
|
|
33
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Combo Bar-Line Chart",
|
|
4
|
+
"theme": "theme-indigo",
|
|
5
|
+
"animate": false,
|
|
6
|
+
"fontSize": "medium",
|
|
7
|
+
"lineDatapointStyle": "hover",
|
|
8
|
+
"barHasBorder": "false",
|
|
9
|
+
"isLollipopChart": false,
|
|
10
|
+
"lollipopShape": "circle",
|
|
11
|
+
"lollipopColorStyle": "two-tone",
|
|
12
|
+
"visualizationSubType": "regular",
|
|
13
|
+
"barStyle": "",
|
|
14
|
+
"roundingStyle": "standard",
|
|
15
|
+
"tipRounding": "top",
|
|
16
|
+
"padding": { "left": 5, "right": 5 },
|
|
17
|
+
"yAxis": {
|
|
18
|
+
"hideAxis": false,
|
|
19
|
+
"displayNumbersOnBar": false,
|
|
20
|
+
"hideLabel": false,
|
|
21
|
+
"hideTicks": false,
|
|
22
|
+
"size": "68",
|
|
23
|
+
"gridLines": true,
|
|
24
|
+
"min": "",
|
|
25
|
+
"max": "",
|
|
26
|
+
"labelColor": "#333",
|
|
27
|
+
"tickLabelColor": "#333",
|
|
28
|
+
"tickColor": "#333",
|
|
29
|
+
"rightHideAxis": true,
|
|
30
|
+
"rightAxisSize": 50,
|
|
31
|
+
"rightLabelOffsetSize": 0,
|
|
32
|
+
"rightAxisLabelColor": "#333",
|
|
33
|
+
"rightAxisTickLabelColor": "#333",
|
|
34
|
+
"rightAxisTickColor": "#333",
|
|
35
|
+
"isLegendValue": false,
|
|
36
|
+
"numTicks": "",
|
|
37
|
+
"label": "Y-Axis Label Example"
|
|
38
|
+
},
|
|
39
|
+
"topAxis": { "hasLine": false },
|
|
40
|
+
"barThickness": "0.5",
|
|
41
|
+
"barHeight": 25,
|
|
42
|
+
"height": "332",
|
|
43
|
+
"xAxis": {
|
|
44
|
+
"type": "date",
|
|
45
|
+
"hideAxis": false,
|
|
46
|
+
"hideLabel": false,
|
|
47
|
+
"hideTicks": false,
|
|
48
|
+
"size": "78",
|
|
49
|
+
"tickRotation": "25",
|
|
50
|
+
"min": "",
|
|
51
|
+
"max": "",
|
|
52
|
+
"labelColor": "#333",
|
|
53
|
+
"tickLabelColor": "#333",
|
|
54
|
+
"tickColor": "#333",
|
|
55
|
+
"isLegendValue": false,
|
|
56
|
+
"numTicks": "",
|
|
57
|
+
"dataKey": "Date",
|
|
58
|
+
"label": "X-Axis Example Label",
|
|
59
|
+
"dateParseFormat": "%d/%m/%Y",
|
|
60
|
+
"dateDisplayFormat": "%d/%m/%Y"
|
|
61
|
+
},
|
|
62
|
+
"table": { "label": "Data Table", "expanded": true, "limitHeight": false, "height": "", "caption": "", "download": true, "show": true },
|
|
63
|
+
"orientation": "vertical",
|
|
64
|
+
"legend": {
|
|
65
|
+
"behavior": "highlight",
|
|
66
|
+
"position": "right",
|
|
67
|
+
"singleRow": false,
|
|
68
|
+
"colorCode": "",
|
|
69
|
+
"reverseLabelOrder": false,
|
|
70
|
+
"description": "",
|
|
71
|
+
"dynamicLegend": false,
|
|
72
|
+
"dynamicLegendDefaultText": "Show All",
|
|
73
|
+
"dynamicLegendItemLimit": 5,
|
|
74
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
75
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
76
|
+
"label": "Data Type"
|
|
77
|
+
},
|
|
78
|
+
"exclusions": { "active": false, "keys": [] },
|
|
79
|
+
"palette": "qualitative2",
|
|
80
|
+
"isPaletteReversed": false,
|
|
81
|
+
"labels": false,
|
|
82
|
+
"dataFormat": { "commas": false, "prefix": "", "suffix": "" },
|
|
83
|
+
"confidenceKeys": {},
|
|
84
|
+
"visual": { "border": true, "accent": true, "background": true },
|
|
85
|
+
"data": [
|
|
86
|
+
{ "Date": "1/15/2016", "Data 1": "N/A", "Data 2": "110", "Data 3": "100", "Data 4": "90", "Monthly-Goal": "100" },
|
|
87
|
+
{ "Date": "2/15/2016", "Data 1": "100", "Data 2": "goop", "Data 3": "100", "Data 4": "100", "Monthly-Goal": "100" },
|
|
88
|
+
{ "Date": "3/15/2016", "Data 1": "", "Data 2": "90", "Data 3": "100.5", "Data 4": "120", "Monthly-Goal": "110" },
|
|
89
|
+
{ "Date": "4/15/2016", "Data 1": "80", "Data 2": "2,00", "Data 3": "110", "Data 4": "120", "Monthly-Goal": "110" },
|
|
90
|
+
{ "Date": "5/15/2016", "Data 1": "70", "Data 2": "90", "Data 3": "110", "Data 4": "130", "Monthly-Goal": "120" },
|
|
91
|
+
{ "Date": "6/15/2016", "Data 1": "100", "Data 2": "120", "Data 3": "120", "Data 4": "130", "Monthly-Goal": "120" },
|
|
92
|
+
{ "Date": "7/15/2016", "Data 1": "zip", "Data 2": null, "Data 3": "120", "Data 4": "130", "Monthly-Goal": "130" },
|
|
93
|
+
{ "Date": "8/15/2016", "Data 1": "110", "Data 2": "130", "Data 3": "120", "Data 4": "140", "Monthly-Goal": "130" },
|
|
94
|
+
{ "Date": "9/15/2016", "Data 1": "120", "Data 2": "130", "Data 3": "120", "Data 4": "150", "Monthly-Goal": "140" }
|
|
95
|
+
],
|
|
96
|
+
"visualizationType": "Combo",
|
|
97
|
+
"series": [
|
|
98
|
+
{ "dataKey": "Data 1", "type": "Bar" },
|
|
99
|
+
{ "dataKey": "Data 2", "type": "Bar" },
|
|
100
|
+
{ "dataKey": "Data 3", "type": "Bar" },
|
|
101
|
+
{ "dataKey": "Data 4", "type": "Bar" },
|
|
102
|
+
{ "dataKey": "Monthly-Goal", "type": "dashed-sm", "axis": "Left" }
|
|
103
|
+
],
|
|
104
|
+
"description": "Note: There is an option to make the line dotted as demonstrated above"
|
|
105
|
+
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"theme": "theme-purple",
|
|
5
5
|
"fontSize": "medium",
|
|
6
6
|
"height": "332",
|
|
7
|
+
"animate": true,
|
|
7
8
|
"padding": {
|
|
8
9
|
"left": 5,
|
|
9
10
|
"right": 5
|
|
@@ -131,7 +132,8 @@
|
|
|
131
132
|
},
|
|
132
133
|
{
|
|
133
134
|
"dataKey": "Monthly-Goal",
|
|
134
|
-
"type": "
|
|
135
|
+
"type": "dashed-md",
|
|
136
|
+
"axis": "Left"
|
|
135
137
|
}
|
|
136
138
|
]
|
|
137
139
|
}
|
|
@@ -2,93 +2,162 @@
|
|
|
2
2
|
"type": "chart",
|
|
3
3
|
"title": "Example Bar Chart",
|
|
4
4
|
"theme": "theme-blue",
|
|
5
|
+
"animate": false,
|
|
5
6
|
"fontSize": "medium",
|
|
6
|
-
"
|
|
7
|
+
"lineDatapointStyle": "hover",
|
|
8
|
+
"barHasBorder": "false",
|
|
9
|
+
"isLollipopChart": false,
|
|
10
|
+
"lollipopShape": "circle",
|
|
11
|
+
"lollipopColorStyle": "two-tone",
|
|
12
|
+
"visualizationSubType": "regular",
|
|
13
|
+
"barStyle": "",
|
|
14
|
+
"roundingStyle": "standard",
|
|
15
|
+
"tipRounding": "top",
|
|
7
16
|
"padding": {
|
|
8
17
|
"left": 5,
|
|
9
18
|
"right": 5
|
|
10
19
|
},
|
|
11
20
|
"yAxis": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
21
|
+
"hideAxis": false,
|
|
22
|
+
"displayNumbersOnBar": false,
|
|
23
|
+
"hideLabel": false,
|
|
24
|
+
"hideTicks": false,
|
|
25
|
+
"size": "150",
|
|
26
|
+
"gridLines": true,
|
|
27
|
+
"min": "",
|
|
28
|
+
"max": "",
|
|
29
|
+
"labelColor": "#333",
|
|
30
|
+
"tickLabelColor": "#333",
|
|
31
|
+
"tickColor": "#333",
|
|
32
|
+
"rightHideAxis": true,
|
|
33
|
+
"rightAxisSize": 0,
|
|
34
|
+
"rightLabelOffsetSize": 0,
|
|
35
|
+
"rightAxisLabelColor": "#333",
|
|
36
|
+
"rightAxisTickLabelColor": "#333",
|
|
37
|
+
"rightAxisTickColor": "#333",
|
|
38
|
+
"isLegendValue": false,
|
|
39
|
+
"numTicks": "",
|
|
14
40
|
"label": "Y Axis Example Label"
|
|
15
41
|
},
|
|
42
|
+
"topAxis": {
|
|
43
|
+
"hasLine": false
|
|
44
|
+
},
|
|
16
45
|
"barThickness": "0.6",
|
|
46
|
+
"barHeight": 25,
|
|
47
|
+
"height": 300,
|
|
17
48
|
"xAxis": {
|
|
49
|
+
"type": "categorical",
|
|
50
|
+
"hideAxis": false,
|
|
51
|
+
"hideLabel": false,
|
|
52
|
+
"hideTicks": false,
|
|
18
53
|
"size": "59",
|
|
19
54
|
"tickRotation": 0,
|
|
55
|
+
"min": "",
|
|
56
|
+
"max": "",
|
|
57
|
+
"labelColor": "#333",
|
|
58
|
+
"tickLabelColor": "#333",
|
|
59
|
+
"tickColor": "#333",
|
|
60
|
+
"isLegendValue": false,
|
|
61
|
+
"numTicks": "",
|
|
20
62
|
"dataKey": "Date",
|
|
21
63
|
"label": "X Axis Example Label"
|
|
22
64
|
},
|
|
23
65
|
"table": {
|
|
24
66
|
"label": "Data Type by Date",
|
|
25
|
-
"expanded":
|
|
67
|
+
"expanded": false,
|
|
68
|
+
"limitHeight": false,
|
|
69
|
+
"height": "",
|
|
70
|
+
"caption": "",
|
|
71
|
+
"show": true,
|
|
72
|
+
"download": true
|
|
26
73
|
},
|
|
74
|
+
"orientation": "vertical",
|
|
27
75
|
"legend": {
|
|
28
76
|
"behavior": "isolate",
|
|
29
77
|
"position": "right",
|
|
78
|
+
"singleRow": false,
|
|
79
|
+
"colorCode": "",
|
|
80
|
+
"reverseLabelOrder": false,
|
|
81
|
+
"description": "",
|
|
82
|
+
"dynamicLegend": false,
|
|
83
|
+
"dynamicLegendDefaultText": "Show All",
|
|
84
|
+
"dynamicLegendItemLimit": 5,
|
|
85
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
86
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
30
87
|
"label": "Type of Data"
|
|
31
88
|
},
|
|
89
|
+
"exclusions": {
|
|
90
|
+
"active": false,
|
|
91
|
+
"keys": []
|
|
92
|
+
},
|
|
32
93
|
"palette": "qualitative-bold",
|
|
94
|
+
"isPaletteReversed": false,
|
|
33
95
|
"labels": false,
|
|
34
96
|
"dataFormat": {
|
|
97
|
+
"commas": false,
|
|
98
|
+
"prefix": "",
|
|
35
99
|
"suffix": " units"
|
|
36
100
|
},
|
|
37
101
|
"confidenceKeys": {},
|
|
102
|
+
"visual": {
|
|
103
|
+
"border": true,
|
|
104
|
+
"accent": true,
|
|
105
|
+
"background": true
|
|
106
|
+
},
|
|
38
107
|
"data": [
|
|
39
108
|
{
|
|
40
109
|
"Date": "1/15/2016",
|
|
41
|
-
"Data 1": "
|
|
110
|
+
"Data 1": "900",
|
|
42
111
|
"Data 2": "135",
|
|
43
112
|
"Data 3": "300",
|
|
44
113
|
"Data 4": "95",
|
|
45
114
|
"Data 5": "120",
|
|
46
|
-
"Data 6": "
|
|
115
|
+
"Data 6": "3100"
|
|
47
116
|
},
|
|
48
117
|
{
|
|
49
118
|
"Date": "2/15/2016",
|
|
50
|
-
"Data 1": "
|
|
119
|
+
"Data 1": "4000",
|
|
51
120
|
"Data 2": "90",
|
|
52
121
|
"Data 3": "240",
|
|
53
122
|
"Data 4": "60",
|
|
54
123
|
"Data 5": "160",
|
|
55
|
-
"Data 6": "
|
|
124
|
+
"Data 6": "2000"
|
|
56
125
|
},
|
|
57
126
|
{
|
|
58
127
|
"Date": "3/15/2016",
|
|
59
|
-
"Data 1": "
|
|
128
|
+
"Data 1": "5000",
|
|
60
129
|
"Data 2": "300",
|
|
61
130
|
"Data 3": "290",
|
|
62
131
|
"Data 4": "100",
|
|
63
132
|
"Data 5": "200",
|
|
64
|
-
"Data 6": "
|
|
133
|
+
"Data 6": "2500"
|
|
65
134
|
},
|
|
66
135
|
{
|
|
67
136
|
"Date": "4/15/2016",
|
|
68
|
-
"Data 1": "
|
|
137
|
+
"Data 1": "12000",
|
|
69
138
|
"Data 2": "160",
|
|
70
139
|
"Data 3": "230",
|
|
71
140
|
"Data 4": "180",
|
|
72
141
|
"Data 5": "160",
|
|
73
|
-
"Data 6": "
|
|
142
|
+
"Data 6": "2200"
|
|
74
143
|
},
|
|
75
144
|
{
|
|
76
145
|
"Date": "5/15/2016",
|
|
77
|
-
"Data 1": "
|
|
146
|
+
"Data 1": "8000",
|
|
78
147
|
"Data 2": "350",
|
|
79
148
|
"Data 3": "300",
|
|
80
149
|
"Data 4": "150",
|
|
81
150
|
"Data 5": "130",
|
|
82
|
-
"Data 6": "
|
|
151
|
+
"Data 6": "1000"
|
|
83
152
|
},
|
|
84
153
|
{
|
|
85
154
|
"Date": "6/15/2016",
|
|
86
|
-
"Data 1": "
|
|
87
|
-
"Data 2": "
|
|
155
|
+
"Data 1": "9000",
|
|
156
|
+
"Data 2": "-2200",
|
|
88
157
|
"Data 3": "320",
|
|
89
158
|
"Data 4": "100",
|
|
90
159
|
"Data 5": "220",
|
|
91
|
-
"Data 6": "
|
|
160
|
+
"Data 6": "-3000"
|
|
92
161
|
}
|
|
93
162
|
],
|
|
94
163
|
"visualizationType": "Bar",
|