@cdc/chart 4.23.1 → 4.23.3
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 +56289 -702
- package/examples/Barchart_with_negative.json +34 -0
- package/examples/area-chart.json +187 -0
- package/examples/big-small-test-bar.json +328 -0
- package/examples/big-small-test-line.json +328 -0
- package/examples/big-small-test-negative.json +328 -0
- package/examples/box-plot.json +1 -2
- package/examples/dynamic-legends.json +1 -1
- package/examples/example-bar-chart-nonnumeric.json +36 -0
- package/examples/example-bar-chart.json +36 -0
- package/examples/example-combo-bar-nonnumeric.json +105 -0
- package/examples/example-sparkline.json +76 -0
- package/examples/gallery/bar-chart-horizontal/horizontal-bar-chart.json +31 -172
- package/examples/gallery/bar-chart-vertical/vertical-bar-chart-categorical.json +1 -1
- package/examples/gallery/bar-chart-vertical/vertical-bar-chart-confidence.json +1 -0
- package/examples/gallery/bar-chart-vertical/vertical-bar-chart-with-confidence.json +96 -14
- package/examples/gallery/bar-chart-vertical/vertical-bar-chart.json +2 -2
- package/examples/gallery/line/line.json +1 -0
- package/examples/gallery/paired-bar/paired-bar-chart.json +65 -13
- package/examples/horizontal-chart-max-increase.json +38 -0
- package/examples/line-chart-max-increase.json +32 -0
- package/examples/line-chart-nonnumeric.json +32 -0
- package/examples/line-chart.json +21 -63
- package/examples/newdata.json +1 -1
- package/examples/planet-combo-example-config.json +143 -20
- package/examples/planet-deviation-config.json +168 -0
- package/examples/planet-deviation-data.json +38 -0
- package/examples/planet-example-config.json +139 -20
- package/examples/planet-example-data-max-increase.json +56 -0
- package/examples/planet-example-data-nonnumeric.json +56 -0
- package/examples/planet-example-data.json +9 -9
- package/examples/planet-pie-example-config-nonnumeric.json +30 -0
- package/examples/scatterplot-continuous.csv +17 -0
- package/examples/scatterplot.json +136 -0
- 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/index.html +91 -0
- package/package.json +33 -24
- package/src/{CdcChart.tsx → CdcChart.jsx} +196 -124
- package/src/components/AreaChart.jsx +198 -0
- package/src/components/{BarChart.tsx → BarChart.jsx} +154 -122
- package/src/components/BoxPlot.jsx +101 -0
- package/src/components/{DataTable.tsx → DataTable.jsx} +109 -28
- package/src/components/DeviationBar.jsx +191 -0
- package/src/components/{EditorPanel.js → EditorPanel.jsx} +676 -157
- package/src/components/{Filters.js → Filters.jsx} +6 -11
- package/src/components/Legend.jsx +316 -0
- package/src/components/{LineChart.tsx → LineChart.jsx} +22 -26
- package/src/components/{LinearChart.tsx → LinearChart.jsx} +214 -91
- package/src/components/{PairedBarChart.tsx → PairedBarChart.jsx} +44 -78
- package/src/components/{PieChart.tsx → PieChart.jsx} +26 -44
- package/src/components/ScatterPlot.jsx +51 -0
- package/src/components/SparkLine.jsx +218 -0
- package/src/components/{useIntersectionObserver.tsx → useIntersectionObserver.jsx} +2 -2
- package/src/data/initial-state.js +51 -5
- package/src/hooks/useColorPalette.js +68 -0
- package/src/hooks/{useReduceData.ts → useReduceData.js} +26 -16
- package/src/hooks/useRightAxis.js +3 -1
- package/src/index.jsx +16 -0
- package/src/scss/DataTable.scss +22 -0
- package/src/scss/editor-panel.scss +5 -0
- package/src/scss/main.scss +30 -10
- package/src/test/CdcChart.test.jsx +6 -0
- package/vite.config.js +4 -0
- package/dist/495.js +0 -3
- package/dist/703.js +0 -1
- package/src/components/BoxPlot.js +0 -92
- package/src/components/Legend.js +0 -291
- package/src/components/SparkLine.js +0 -185
- package/src/hooks/useColorPalette.ts +0 -76
- package/src/index.html +0 -67
- package/src/index.tsx +0 -18
- /package/src/{context.tsx → ConfigContext.jsx} +0 -0
|
@@ -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,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": "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
|
+
{ "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,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
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Example Spark Line",
|
|
4
|
+
"theme": "theme-blue",
|
|
5
|
+
"fontSize": "medium",
|
|
6
|
+
"height": "375",
|
|
7
|
+
"compact": true,
|
|
8
|
+
"padding": {
|
|
9
|
+
"left": 5,
|
|
10
|
+
"right": 5
|
|
11
|
+
},
|
|
12
|
+
"yAxis": {
|
|
13
|
+
"size": "75",
|
|
14
|
+
"gridLines": false,
|
|
15
|
+
"label": "Y-Axis Example Label",
|
|
16
|
+
"numTicks": "9"
|
|
17
|
+
},
|
|
18
|
+
"barThickness": 0.35,
|
|
19
|
+
"xAxis": {
|
|
20
|
+
"size": "77",
|
|
21
|
+
"tickRotation": "25",
|
|
22
|
+
"dataKey": "Date",
|
|
23
|
+
"label": "X-Axis Example Label",
|
|
24
|
+
"type": "date",
|
|
25
|
+
"dateParseFormat": "%d/%m/%Y",
|
|
26
|
+
"dateDisplayFormat": "%d/%m/%Y"
|
|
27
|
+
},
|
|
28
|
+
"table": {
|
|
29
|
+
"label": "Data Table",
|
|
30
|
+
"expanded": true,
|
|
31
|
+
"download": true
|
|
32
|
+
},
|
|
33
|
+
"legend": {
|
|
34
|
+
"behavior": "isolate",
|
|
35
|
+
"position": "right",
|
|
36
|
+
"label": "Type of Data"
|
|
37
|
+
},
|
|
38
|
+
"palette": "qualitative-bold",
|
|
39
|
+
"labels": false,
|
|
40
|
+
"dataFormat": {},
|
|
41
|
+
"confidenceKeys": {},
|
|
42
|
+
"data": [
|
|
43
|
+
{
|
|
44
|
+
"Date": "1/15/2016",
|
|
45
|
+
"Data 1": "0"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"Date": "2/15/2016",
|
|
49
|
+
"Data 1": "25"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"Date": "3/15/2016",
|
|
53
|
+
"Data 1": "50"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"Date": "4/15/2016",
|
|
57
|
+
"Data 1": "75"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"Date": "5/15/2016",
|
|
61
|
+
"Data 1": "100"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"Date": "6/15/2016",
|
|
65
|
+
"Data 1": "50"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"visualizationType": "Spark Line",
|
|
69
|
+
"series": [
|
|
70
|
+
{
|
|
71
|
+
"dataKey": "Data 1",
|
|
72
|
+
"type": "Bar"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"description": "Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries for previewing layouts and visual mockups."
|
|
76
|
+
}
|
|
@@ -5,10 +5,7 @@
|
|
|
5
5
|
"fontSize": "small",
|
|
6
6
|
"lineDatapointStyle": "hover",
|
|
7
7
|
"barHasBorder": "false",
|
|
8
|
-
"padding": {
|
|
9
|
-
"left": 5,
|
|
10
|
-
"right": 5
|
|
11
|
-
},
|
|
8
|
+
"padding": { "left": 5, "right": 5 },
|
|
12
9
|
"yAxis": {
|
|
13
10
|
"size": 50,
|
|
14
11
|
"gridLines": false,
|
|
@@ -18,124 +15,40 @@
|
|
|
18
15
|
"fontSize": "small",
|
|
19
16
|
"lineDatapointStyle": "hover",
|
|
20
17
|
"barHasBorder": "false",
|
|
21
|
-
"padding": {
|
|
22
|
-
|
|
23
|
-
"right": 5
|
|
24
|
-
},
|
|
25
|
-
"yAxis": {
|
|
26
|
-
"size": 50,
|
|
27
|
-
"gridLines": false,
|
|
28
|
-
"label": "X-Axis Example Label",
|
|
29
|
-
"numTicks": "10"
|
|
30
|
-
},
|
|
18
|
+
"padding": { "left": 5, "right": 5 },
|
|
19
|
+
"yAxis": { "size": 50, "gridLines": false, "label": "X-Axis Example Label", "numTicks": "10" },
|
|
31
20
|
"barThickness": "0.7",
|
|
32
21
|
"height": 560,
|
|
33
|
-
"xAxis": {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"dataKey": "Group",
|
|
38
|
-
"label": ""
|
|
39
|
-
},
|
|
40
|
-
"table": {
|
|
41
|
-
"label": "Data Table",
|
|
42
|
-
"expanded": true,
|
|
43
|
-
"download": false,
|
|
44
|
-
"show": true
|
|
45
|
-
},
|
|
46
|
-
"legend": {
|
|
47
|
-
"behavior": "isolate",
|
|
48
|
-
"position": "right",
|
|
49
|
-
"label": "Type of Data"
|
|
50
|
-
},
|
|
51
|
-
"exclusions": {
|
|
52
|
-
"active": false,
|
|
53
|
-
"keys": []
|
|
54
|
-
},
|
|
22
|
+
"xAxis": { "type": "categorical", "size": "0", "tickRotation": 0, "dataKey": "Group", "label": "" },
|
|
23
|
+
"table": { "label": "Data Table", "expanded": true, "download": false, "show": true },
|
|
24
|
+
"legend": { "behavior": "isolate", "position": "right", "label": "Type of Data" },
|
|
25
|
+
"exclusions": { "active": false, "keys": [] },
|
|
55
26
|
"palette": "qualitative-soft",
|
|
56
27
|
"labels": false,
|
|
57
28
|
"dataFormat": {},
|
|
58
29
|
"confidenceKeys": {},
|
|
59
30
|
"data": [
|
|
60
|
-
{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"Work": "140",
|
|
65
|
-
"Office": "120"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"Group": "Combined Total of Group B",
|
|
69
|
-
"Vehicle": "150",
|
|
70
|
-
"Home": "140",
|
|
71
|
-
"Work": "100",
|
|
72
|
-
"Office": "90"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"Group": "Combined Total of Group C",
|
|
76
|
-
"Vehicle": "90",
|
|
77
|
-
"Home": "90",
|
|
78
|
-
"Work": "80",
|
|
79
|
-
"Office": "80"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"Group": "Combined Total of Group D",
|
|
83
|
-
"Vehicle": "70",
|
|
84
|
-
"Home": "60",
|
|
85
|
-
"Work": "50",
|
|
86
|
-
"Office": "70"
|
|
87
|
-
}
|
|
31
|
+
{ "Group": "Combined Total of Group A", "Vehicle": "100", "Home": "120", "Work": "140", "Office": "120" },
|
|
32
|
+
{ "Group": "Combined Total of Group B", "Vehicle": "150", "Home": "140", "Work": "100", "Office": "90" },
|
|
33
|
+
{ "Group": "Combined Total of Group C", "Vehicle": "90", "Home": "90", "Work": "80", "Office": "80" },
|
|
34
|
+
{ "Group": "Combined Total of Group D", "Vehicle": "70", "Home": "60", "Work": "50", "Office": "70" }
|
|
88
35
|
],
|
|
89
36
|
"visualizationType": "Bar",
|
|
90
37
|
"visualizationSubType": "horizontal",
|
|
91
38
|
"series": [
|
|
92
|
-
{
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
{
|
|
97
|
-
"dataKey": "Home",
|
|
98
|
-
"type": "Bar"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"dataKey": "Work",
|
|
102
|
-
"type": "Bar"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"dataKey": "Office",
|
|
106
|
-
"type": "Bar"
|
|
107
|
-
}
|
|
39
|
+
{ "dataKey": "Vehicle", "type": "Bar" },
|
|
40
|
+
{ "dataKey": "Home", "type": "Bar" },
|
|
41
|
+
{ "dataKey": "Work", "type": "Bar" },
|
|
42
|
+
{ "dataKey": "Office", "type": "Bar" }
|
|
108
43
|
],
|
|
109
44
|
"description": "This example shows a horizontal bar chart created in the visualization editor in WCMS",
|
|
110
45
|
"runtime": {
|
|
111
|
-
"seriesLabels": {
|
|
112
|
-
"Vehicle": "Vehicle",
|
|
113
|
-
"Home": "Home",
|
|
114
|
-
"Work": "Work",
|
|
115
|
-
"Office": "Office"
|
|
116
|
-
},
|
|
46
|
+
"seriesLabels": { "Vehicle": "Vehicle", "Home": "Home", "Work": "Work", "Office": "Office" },
|
|
117
47
|
"seriesLabelsAll": ["Vehicle", "Home", "Work", "Office"],
|
|
118
|
-
"originalXAxis": {
|
|
119
|
-
"type": "categorical",
|
|
120
|
-
"size": "0",
|
|
121
|
-
"tickRotation": 0,
|
|
122
|
-
"dataKey": "Group",
|
|
123
|
-
"label": ""
|
|
124
|
-
},
|
|
48
|
+
"originalXAxis": { "type": "categorical", "size": "0", "tickRotation": 0, "dataKey": "Group", "label": "" },
|
|
125
49
|
"seriesKeys": ["Vehicle", "Home", "Work", "Office"],
|
|
126
|
-
"xAxis": {
|
|
127
|
-
|
|
128
|
-
"gridLines": false,
|
|
129
|
-
"label": "X-Axis Example Label",
|
|
130
|
-
"numTicks": "10"
|
|
131
|
-
},
|
|
132
|
-
"yAxis": {
|
|
133
|
-
"type": "categorical",
|
|
134
|
-
"size": "0",
|
|
135
|
-
"tickRotation": 0,
|
|
136
|
-
"dataKey": "Group",
|
|
137
|
-
"label": ""
|
|
138
|
-
},
|
|
50
|
+
"xAxis": { "size": 50, "gridLines": false, "label": "X-Axis Example Label", "numTicks": "10" },
|
|
51
|
+
"yAxis": { "type": "categorical", "size": "0", "tickRotation": 0, "dataKey": "Group", "label": "" },
|
|
139
52
|
"horizontal": true,
|
|
140
53
|
"uniqueId": 1644353484184,
|
|
141
54
|
"editorErrorMessage": ""
|
|
@@ -147,81 +60,27 @@
|
|
|
147
60
|
},
|
|
148
61
|
"barThickness": "0.7",
|
|
149
62
|
"height": 560,
|
|
150
|
-
"xAxis": {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"dataKey": "Group",
|
|
155
|
-
"label": ""
|
|
156
|
-
},
|
|
157
|
-
"table": {
|
|
158
|
-
"label": "Data Table",
|
|
159
|
-
"expanded": true,
|
|
160
|
-
"download": false,
|
|
161
|
-
"show": true
|
|
162
|
-
},
|
|
163
|
-
"legend": {
|
|
164
|
-
"behavior": "isolate",
|
|
165
|
-
"position": "right",
|
|
166
|
-
"label": "Location"
|
|
167
|
-
},
|
|
168
|
-
"exclusions": {
|
|
169
|
-
"active": false,
|
|
170
|
-
"keys": []
|
|
171
|
-
},
|
|
63
|
+
"xAxis": { "type": "categorical", "size": "0", "tickRotation": 0, "dataKey": "Group", "label": "" },
|
|
64
|
+
"table": { "label": "Data Table", "expanded": true, "download": false, "show": true },
|
|
65
|
+
"legend": { "behavior": "isolate", "position": "right", "label": "Location" },
|
|
66
|
+
"exclusions": { "active": false, "keys": [] },
|
|
172
67
|
"palette": "qualitative-soft",
|
|
173
68
|
"labels": false,
|
|
174
69
|
"dataFormat": {},
|
|
175
70
|
"confidenceKeys": {},
|
|
176
71
|
"data": [
|
|
177
|
-
{
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
"Work": "140",
|
|
182
|
-
"Office": "120"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"Group": "Group B Survey Results",
|
|
186
|
-
"Vehicle": "150",
|
|
187
|
-
"Home": "140",
|
|
188
|
-
"Work": "100",
|
|
189
|
-
"Office": "90"
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"Group": "Group C Survey Results",
|
|
193
|
-
"Vehicle": "90",
|
|
194
|
-
"Home": "90",
|
|
195
|
-
"Work": "80",
|
|
196
|
-
"Office": "80"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"Group": "Group D Survey Results",
|
|
200
|
-
"Vehicle": "70",
|
|
201
|
-
"Home": "60",
|
|
202
|
-
"Work": "50",
|
|
203
|
-
"Office": "70"
|
|
204
|
-
}
|
|
72
|
+
{ "Group": "Group A Survey Results", "Vehicle": "100", "Home": "120", "Work": "140", "Office": "120" },
|
|
73
|
+
{ "Group": "Group B Survey Results", "Vehicle": "150", "Home": "140", "Work": "100", "Office": "90" },
|
|
74
|
+
{ "Group": "Group C Survey Results", "Vehicle": "90", "Home": "90", "Work": "80", "Office": "80" },
|
|
75
|
+
{ "Group": "Group D Survey Results", "Vehicle": "70", "Home": "60", "Work": "50", "Office": "70" }
|
|
205
76
|
],
|
|
206
77
|
"visualizationType": "Bar",
|
|
207
78
|
"visualizationSubType": "horizontal",
|
|
208
79
|
"series": [
|
|
209
|
-
{
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
213
|
-
{
|
|
214
|
-
"dataKey": "Home",
|
|
215
|
-
"type": "Bar"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"dataKey": "Work",
|
|
219
|
-
"type": "Bar"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"dataKey": "Office",
|
|
223
|
-
"type": "Bar"
|
|
224
|
-
}
|
|
80
|
+
{ "dataKey": "Vehicle", "type": "Bar" },
|
|
81
|
+
{ "dataKey": "Home", "type": "Bar" },
|
|
82
|
+
{ "dataKey": "Work", "type": "Bar" },
|
|
83
|
+
{ "dataKey": "Office", "type": "Bar" }
|
|
225
84
|
],
|
|
226
85
|
"description": "This example shows a horizontal bar chart created in the visualization editor in WCMS",
|
|
227
86
|
"barPadding": 40,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"chart","title":"Bar Chart with Confidence Intervals","theme":"theme-green","animate":false,"fontSize":"medium","lineDatapointStyle":"hover","barHasBorder":"false","isLollipopChart":false,"lollipopShape":"circle","lollipopColorStyle":"two-tone","visualizationSubType":"regular","barStyle":"rounded","roundingStyle":"standard","tipRounding":"top","padding":{"left":5,"right":5},"yAxis":{"hideAxis":false,"displayNumbersOnBar":false,"hideLabel":false,"hideTicks":false,"size":"75","gridLines":true,"min":"","max":"","labelColor":"#333","tickLabelColor":"#333","tickColor":"#333","rightHideAxis":true,"rightAxisSize":50,"rightLabelOffsetSize":0,"rightAxisLabelColor":"#333","rightAxisTickLabelColor":"#333","rightAxisTickColor":"#333","isLegendValue":false,"numTicks":"","label":"Y-Axis Example Label"},"topAxis":{"hasLine":false},"barThickness":0.35,"barHeight":25,"height":300,"xAxis":{"type":"categorical","hideAxis":false,"hideLabel":false,"hideTicks":false,"size":"50","tickRotation":0,"min":"","max":"","labelColor":"#333","tickLabelColor":"#333","tickColor":"#333","isLegendValue":false,"numTicks":"","dataKey":"Date","label":"X-Axis Sample Label"},"table":{"label":"Data Table","expanded":true,"limitHeight":false,"height":"","caption":"","show":true},"orientation":"vertical","legend":{"behavior":"isolate","position":"right","singleRow":false,"colorCode":"","reverseLabelOrder":false,"description":"","dynamicLegend":false,"dynamicLegendDefaultText":"Show All","dynamicLegendItemLimit":5,"dynamicLegendItemLimitMessage":"Dynamic Legend Item Limit Hit.","dynamicLegendChartMessage":"Select Options from the Legend"},"exclusions":{"active":false,"keys":[]},"palette":"qualitative-bold","isPaletteReversed":false,"labels":false,"dataFormat":{"commas":false,"prefix":"","suffix":""},"confidenceKeys":{"upper":"high","lower":"low"},"visual":{"border":true,"accent":true,"background":true},"data":[{"Data":"data1","Date":"1/12/2016","Value":"212","high":"220","low":"200"},{"Data":"data2","Date":"1/13/2016","Value":"213","high":"230","low":"205"},{"Data":"data3","Date":"1/14/2016","Value":"214","high":"240","low":"210"}],"visualizationType":"Bar","series":[{"dataKey":"Value","type":"Bar"}]}
|