@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.
Files changed (65) hide show
  1. package/dist/cdcchart.js +54569 -16
  2. package/examples/Barchart_with_negative.json +34 -0
  3. package/examples/box-plot-data.json +71 -0
  4. package/examples/box-plot.csv +5 -0
  5. package/examples/box-plot.json +124 -0
  6. package/examples/dynamic-legends.json +1 -1
  7. package/examples/example-bar-chart-nonnumeric.json +36 -0
  8. package/examples/example-bar-chart.json +33 -0
  9. package/examples/example-combo-bar-nonnumeric.json +105 -0
  10. package/examples/gallery/bar-chart-vertical/combo-line-chart.json +3 -1
  11. package/examples/gallery/bar-chart-vertical/vertical-bar-chart-categorical.json +1 -1
  12. package/examples/gallery/bar-chart-vertical/vertical-bar-chart.json +86 -17
  13. package/examples/gallery/paired-bar/paired-bar-chart.json +65 -13
  14. package/examples/line-chart-nonnumeric.json +32 -0
  15. package/examples/line-chart.json +21 -63
  16. package/examples/new-data.csv +17 -0
  17. package/examples/newdata.json +90 -0
  18. package/examples/planet-combo-example-config.json +143 -20
  19. package/examples/planet-example-data-nonnumeric.json +56 -0
  20. package/examples/planet-example-data.json +2 -2
  21. package/examples/planet-pie-example-config-nonnumeric.json +30 -0
  22. package/examples/scatterplot-continuous.csv +17 -0
  23. package/examples/{private/yaxis-test.json → scatterplot.json} +53 -50
  24. package/examples/sparkline-chart-nonnumeric.json +76 -0
  25. package/examples/stacked-vertical-bar-example-negative.json +154 -0
  26. package/examples/stacked-vertical-bar-example-nonnumerics.json +154 -0
  27. package/{src/index.html → index.html} +18 -11
  28. package/package.json +29 -22
  29. package/src/{CdcChart.tsx → CdcChart.jsx} +193 -119
  30. package/src/components/BarChart.jsx +517 -0
  31. package/src/components/BoxPlot.jsx +88 -0
  32. package/src/components/{DataTable.tsx → DataTable.jsx} +125 -32
  33. package/src/components/{EditorPanel.js → EditorPanel.jsx} +376 -115
  34. package/src/components/Filters.jsx +125 -0
  35. package/src/components/Legend.jsx +303 -0
  36. package/src/components/{LineChart.tsx → LineChart.jsx} +87 -22
  37. package/src/components/{LinearChart.tsx → LinearChart.jsx} +172 -113
  38. package/src/components/{PairedBarChart.tsx → PairedBarChart.jsx} +46 -79
  39. package/src/components/{PieChart.tsx → PieChart.jsx} +29 -34
  40. package/src/components/ScatterPlot.jsx +48 -0
  41. package/src/components/{SparkLine.js → SparkLine.jsx} +49 -18
  42. package/src/components/useIntersectionObserver.jsx +29 -0
  43. package/src/data/initial-state.js +44 -8
  44. package/src/hooks/{useColorPalette.ts → useColorPalette.js} +10 -28
  45. package/src/hooks/{useReduceData.ts → useReduceData.js} +27 -13
  46. package/src/hooks/useRightAxis.js +3 -1
  47. package/src/index.jsx +16 -0
  48. package/src/scss/DataTable.scss +23 -1
  49. package/src/scss/main.scss +83 -32
  50. package/vite.config.js +4 -0
  51. package/examples/private/filters.json +0 -170
  52. package/examples/private/line-test-data.json +0 -22
  53. package/examples/private/line-test-two.json +0 -210
  54. package/examples/private/line-test.json +0 -102
  55. package/examples/private/new.json +0 -48800
  56. package/examples/private/newtest.csv +0 -101
  57. package/examples/private/shawn.json +0 -1106
  58. package/examples/private/test.json +0 -10124
  59. package/examples/private/yaxis-testing.csv +0 -27
  60. package/examples/private/yaxis.json +0 -28
  61. package/src/components/BarChart.tsx +0 -579
  62. package/src/components/Legend.js +0 -284
  63. package/src/components/useIntersectionObserver.tsx +0 -27
  64. package/src/index.tsx +0 -18
  65. /package/src/{context.tsx → ConfigContext.jsx} +0 -0
@@ -1,43 +1,80 @@
1
1
  {
2
2
  "type": "chart",
3
3
  "title": "Example Paired Bar Chart",
4
- "theme": "theme-slate",
4
+ "theme": "theme-pink",
5
+ "animate": false,
5
6
  "fontSize": "small",
6
7
  "lineDatapointStyle": "hover",
7
- "barHasBorder": "false",
8
+ "barHasBorder": "true",
8
9
  "isLollipopChart": false,
9
10
  "lollipopShape": "circle",
10
11
  "lollipopColorStyle": "two-tone",
11
12
  "visualizationSubType": null,
13
+ "barStyle": "",
14
+ "roundingStyle": "standard",
15
+ "tipRounding": "top",
12
16
  "padding": {
13
17
  "left": 5,
14
18
  "right": 5
15
19
  },
16
20
  "yAxis": {
17
- "hideAxis": true,
21
+ "hideAxis": false,
22
+ "displayNumbersOnBar": true,
18
23
  "hideLabel": false,
19
24
  "hideTicks": false,
20
- "size": "75",
25
+ "size": "86",
21
26
  "gridLines": false,
22
- "label": "Value Axis",
23
- "numTicks": "6"
27
+ "min": "",
28
+ "max": "",
29
+ "labelColor": "#333",
30
+ "tickLabelColor": "#333",
31
+ "tickColor": "#333",
32
+ "rightHideAxis": true,
33
+ "rightAxisSize": 50,
34
+ "rightLabel": "",
35
+ "rightLabelOffsetSize": 0,
36
+ "rightAxisLabelColor": "#333",
37
+ "rightAxisTickLabelColor": "#333",
38
+ "rightAxisTickColor": "#333",
39
+ "numTicks": "4",
40
+ "label": "Value Axisd"
41
+ },
42
+ "boxplot": [],
43
+ "topAxis": {
44
+ "hasLine": false
24
45
  },
46
+ "isLegendValue": false,
25
47
  "barThickness": 0.35,
26
- "height": "400",
48
+ "barHeight": "25",
49
+ "barSpace": "15",
50
+ "heights": {
51
+ "vertical": 300,
52
+ "horizontal": 287
53
+ },
27
54
  "xAxis": {
28
55
  "type": "categorical",
29
56
  "hideAxis": false,
30
57
  "hideLabel": false,
31
58
  "hideTicks": false,
32
- "size": "56",
59
+ "size": "79",
33
60
  "tickRotation": "0",
61
+ "min": "",
34
62
  "max": "15000",
63
+ "labelColor": "#333",
64
+ "tickLabelColor": "#333",
65
+ "tickColor": "#333",
66
+ "numTicks": "",
67
+ "labelOffset": "87",
35
68
  "dataKey": "Age Group",
36
69
  "label": "Age Group"
37
70
  },
38
71
  "table": {
39
72
  "label": "Data Table",
40
73
  "expanded": false,
74
+ "limitHeight": false,
75
+ "height": "",
76
+ "caption": "",
77
+ "showDownloadUrl": false,
41
78
  "show": true,
42
79
  "indexLabel": "Region"
43
80
  },
@@ -45,7 +82,15 @@
45
82
  "legend": {
46
83
  "behavior": "isolate",
47
84
  "position": "right",
85
+ "singleRow": false,
86
+ "colorCode": "",
48
87
  "reverseLabelOrder": false,
88
+ "description": "",
89
+ "dynamicLegend": false,
90
+ "dynamicLegendDefaultText": "Show All",
91
+ "dynamicLegendItemLimit": 5,
92
+ "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
93
+ "dynamicLegendChartMessage": "Select Options from the Legend",
49
94
  "hide": false,
50
95
  "label": "Region "
51
96
  },
@@ -53,14 +98,22 @@
53
98
  "active": false,
54
99
  "keys": []
55
100
  },
56
- "palette": "qualitative-soft",
101
+ "palette": "qualitative1",
57
102
  "isPaletteReversed": false,
58
103
  "labels": false,
59
104
  "dataFormat": {
60
105
  "commas": true,
61
- "suffix": " per 100k"
106
+ "prefix": "",
107
+ "suffix": " per 100k",
108
+ "abbreviated": false
62
109
  },
63
110
  "confidenceKeys": {},
111
+ "visual": {
112
+ "border": true,
113
+ "accent": true,
114
+ "background": true
115
+ },
116
+ "height": "400",
64
117
  "data": [
65
118
  {
66
119
  "Region": "West Coast",
@@ -115,7 +168,7 @@
115
168
  {
116
169
  "Region": "East Coast",
117
170
  "Age Group": "35-44",
118
- "Cases Per 100K": "7478"
171
+ "Cases Per 100K": "27478"
119
172
  },
120
173
  {
121
174
  "Region": "East Coast",
@@ -191,6 +244,5 @@
191
244
  "type": "Bar"
192
245
  }
193
246
  ],
194
- "filters": [],
195
- "barHeight": "23"
247
+ "filters": []
196
248
  }
@@ -0,0 +1,32 @@
1
+ {
2
+ "type": "chart",
3
+ "title": "Example Line Chart",
4
+ "theme": "theme-green",
5
+ "fontSize": "medium",
6
+ "height": "375",
7
+ "padding": { "left": 5, "right": 5 },
8
+ "yAxis": { "size": "75", "gridLines": false, "label": "Y-Axis Example Label", "numTicks": "9" },
9
+ "barThickness": 0.35,
10
+ "xAxis": { "size": "77", "tickRotation": "25", "dataKey": "Date", "label": "X-Axis Example Label", "type": "date", "dateParseFormat": "%d/%m/%Y", "dateDisplayFormat": "%d/%m/%Y" },
11
+ "table": { "label": "Data Table", "expanded": true, "download": true },
12
+ "legend": { "behavior": "isolate", "position": "right", "label": "Type of Data" },
13
+ "palette": "qualitative-bold",
14
+ "labels": false,
15
+ "dataFormat": {},
16
+ "confidenceKeys": {},
17
+ "data": [
18
+ { "Date": "1/15/2016", "Data 1": "8", "Data 2": "N/A", "Data 3": "1,300", "Data 4": "95", "Data 5": "120", "Data 6": "310" },
19
+ { "Date": "2/15/2016", "Data 1": "dddd", "Data 2": "9", "Data 3": "240", "Data 4": "60", "Data 5": "160", "Data 6": "200" },
20
+ { "Date": "3/15/2016", "Data 1": "boo", "Data 2": "5", "Data 3": "290", "Data 4": "100", "Data 5": "200", "Data 6": "250" },
21
+ { "Date": "4/15/2016", "Data 1": "44", "Data 2": "NA", "Data 3": "230", "Data 4": "180", "Data 5": "160", "Data 6": "220" },
22
+ { "Date": "5/15/2016", "Data 1": "12", "Data 2": "350", "Data 3": "300", "Data 4": "150", "Data 5": "130", "Data 6": "100" }
23
+ ],
24
+ "visualizationType": "Line",
25
+ "series": [
26
+ { "dataKey": "Data 1", "type": "Bar" },
27
+ { "dataKey": "Data 2", "type": "Bar" },
28
+ { "dataKey": "Data 3", "type": "Bar" },
29
+ { "dataKey": "Data 4", "type": "Bar" },
30
+ { "dataKey": "Data 5", "type": "Bar" }
31
+ ]
32
+ }
@@ -1,76 +1,34 @@
1
1
  {
2
2
  "type": "chart",
3
- "title": "Example Spark Line",
4
- "theme": "theme-blue",
3
+ "title": "Example Line Chart",
4
+ "theme": "theme-green",
5
5
  "fontSize": "medium",
6
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
- },
7
+ "padding": { "left": 5, "right": 5 },
8
+ "yAxis": { "size": "75", "gridLines": false, "label": "Y-Axis Example Label", "numTicks": "9" },
18
9
  "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
- },
10
+ "xAxis": { "size": "77", "tickRotation": "25", "dataKey": "Date", "label": "X-Axis Example Label", "type": "date", "dateParseFormat": "%d/%m/%Y", "dateDisplayFormat": "%d/%m/%Y" },
11
+ "table": { "label": "Data Table", "expanded": true, "download": true },
12
+ "legend": { "behavior": "isolate", "position": "right", "label": "Type of Data" },
38
13
  "palette": "qualitative-bold",
39
14
  "labels": false,
40
15
  "dataFormat": {},
41
16
  "confidenceKeys": {},
42
17
  "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
- }
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" }
67
24
  ],
68
- "visualizationType": "Spark Line",
25
+ "visualizationType": "Line",
69
26
  "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."
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
+ ]
76
34
  }
@@ -0,0 +1,17 @@
1
+ Group_Category,Value
2
+ category one,21
3
+ category one,19
4
+ category one,23
5
+ category one,24
6
+ category two,18
7
+ category two,10
8
+ category two,12
9
+ category two,19
10
+ category three,30
11
+ category three,35
12
+ category three,36
13
+ category three,40
14
+ category four,50
15
+ category four,54
16
+ category four,42
17
+ category four,159
@@ -0,0 +1,90 @@
1
+ [
2
+ {
3
+ "Group_Category": "category one",
4
+ "Value": "21"
5
+ },
6
+ {
7
+ "Group_Category": "category one",
8
+ "Value": "19"
9
+ },
10
+ {
11
+ "Group_Category": "category one",
12
+ "Value": "23"
13
+ },
14
+ {
15
+ "Group_Category": "category one",
16
+ "Value": "24"
17
+ },
18
+ {
19
+ "Group_Category": "category two",
20
+ "Value": "18"
21
+ },
22
+ {
23
+ "Group_Category": "category two",
24
+ "Value": "10"
25
+ },
26
+ {
27
+ "Group_Category": "category two",
28
+ "Value": "12"
29
+ },
30
+ {
31
+ "Group_Category": "category two",
32
+ "Value": "19"
33
+ },
34
+ {
35
+ "Group_Category": "category three",
36
+ "Value": "30"
37
+ },
38
+ {
39
+ "Group_Category": "category three",
40
+ "Value": "35"
41
+ },
42
+ {
43
+ "Group_Category": "category three",
44
+ "Value": "36"
45
+ },
46
+ {
47
+ "Group_Category": "category three",
48
+ "Value": "46"
49
+ },
50
+ {
51
+ "Group_Category": "category four",
52
+ "Value": "30"
53
+ },
54
+ {
55
+ "Group_Category": "category four",
56
+ "Value": "40"
57
+ },
58
+ {
59
+ "Group_Category": "category four",
60
+ "Value": "50"
61
+ },
62
+ {
63
+ "Group_Category": "category four",
64
+ "Value": "50"
65
+ },
66
+ {
67
+ "Group_Category": "category four",
68
+ "Value": "85"
69
+ },
70
+ {
71
+ "Group_Category": "category four",
72
+ "Value": "82"
73
+ },
74
+ {
75
+ "Group_Category": "category four",
76
+ "Value": "43"
77
+ },
78
+ {
79
+ "Group_Category": "category four",
80
+ "Value": "42"
81
+ },
82
+ {
83
+ "Group_Category": "category four",
84
+ "Value": "41"
85
+ },
86
+ {
87
+ "Group_Category": "category four",
88
+ "Value": "21"
89
+ }
90
+ ]
@@ -1,36 +1,159 @@
1
1
  {
2
+ "type": "chart",
2
3
  "title": "Planet Radius (Combo Example)",
3
- "dataUrl": "/examples/planet-example-data.json",
4
+ "theme": "theme-blue",
4
5
  "animate": true,
5
- "animateReplay": true,
6
- "visualizationType": "Combo",
7
- "series": [
8
- { "dataKey": "Radius", "type": "Line" },
9
- { "dataKey": "Diameter", "type": "Bar" }
10
- ],
11
- "dataFormat": {
12
- "roundTo": 1,
13
- "commas": false,
14
- "prefix": "",
15
- "suffix": "km"
16
- },
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",
17
16
  "padding": {
18
17
  "left": 0,
19
18
  "right": 0
20
19
  },
21
20
  "yAxis": {
21
+ "hideAxis": false,
22
+ "displayNumbersOnBar": false,
23
+ "hideLabel": false,
24
+ "hideTicks": false,
25
+ "size": 50,
26
+ "gridLines": false,
27
+ "min": "",
28
+ "max": "",
29
+ "labelColor": "#333",
30
+ "tickLabelColor": "#333",
31
+ "tickColor": "#333",
32
+ "rightHideAxis": false,
33
+ "rightAxisSize": 50,
34
+ "rightLabel": "",
35
+ "rightLabelOffsetSize": 0,
36
+ "rightAxisLabelColor": "#333",
37
+ "rightAxisTickLabelColor": "#333",
38
+ "rightAxisTickColor": "#333",
39
+ "numTicks": "",
40
+ "axisPadding": 0,
41
+ "tickRotation": 0,
22
42
  "label": "Measurement (1000km)"
23
43
  },
44
+ "boxplot": {
45
+ "plots": [],
46
+ "borders": "true",
47
+ "firstQuartilePercentage": 25,
48
+ "thirdQuartilePercentage": 75,
49
+ "boxWidthPercentage": 40,
50
+ "plotOutlierValues": false,
51
+ "plotNonOutlierValues": true,
52
+ "legend": {
53
+ "showHowToReadText": false,
54
+ "howToReadText": ""
55
+ },
56
+ "labels": {
57
+ "q1": "Lower Quartile",
58
+ "q2": "q2",
59
+ "q3": "Upper Quartile",
60
+ "q4": "q4",
61
+ "minimum": "Minimum",
62
+ "maximum": "Maximum",
63
+ "mean": "Mean",
64
+ "median": "Median",
65
+ "sd": "Standard Deviation",
66
+ "iqr": "Interquartile Range",
67
+ "count": "Count",
68
+ "outliers": "Outliers",
69
+ "values": "Values"
70
+ }
71
+ },
72
+ "topAxis": {
73
+ "hasLine": true
74
+ },
75
+ "isLegendValue": false,
76
+ "barThickness": 0.35,
77
+ "barHeight": 25,
78
+ "barSpace": 15,
79
+ "heights": {
80
+ "vertical": 300,
81
+ "horizontal": 750
82
+ },
24
83
  "xAxis": {
84
+ "type": "categorical",
85
+ "hideAxis": false,
86
+ "hideLabel": false,
87
+ "hideTicks": false,
88
+ "size": 75,
89
+ "tickRotation": 30,
90
+ "min": "",
91
+ "max": "",
92
+ "labelColor": "#333",
93
+ "tickLabelColor": "#333",
94
+ "tickColor": "#333",
95
+ "numTicks": "",
96
+ "labelOffset": 65,
97
+ "axisPadding": 0,
25
98
  "label": "Planet",
26
- "dataKey": "name",
27
- "tickRotation": 30
99
+ "dataKey": "name"
100
+ },
101
+ "table": {
102
+ "label": "Data Table",
103
+ "expanded": false,
104
+ "limitHeight": false,
105
+ "height": "",
106
+ "caption": "",
107
+ "showDownloadUrl": false,
108
+ "show": true
28
109
  },
110
+ "orientation": "vertical",
29
111
  "legend": {
112
+ "behavior": "isolate",
113
+ "position": "right",
114
+ "singleRow": false,
115
+ "colorCode": "",
116
+ "reverseLabelOrder": false,
117
+ "description": "",
118
+ "dynamicLegend": false,
119
+ "dynamicLegendDefaultText": "Show All",
120
+ "dynamicLegendItemLimit": 5,
121
+ "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
122
+ "dynamicLegendChartMessage": "Select Options from the Legend",
30
123
  "hide": false
31
124
  },
32
- "table": {
33
- "label": "Data Table",
34
- "expanded": false
35
- }
36
- }
125
+ "exclusions": {
126
+ "active": false,
127
+ "keys": []
128
+ },
129
+ "palette": "qualitative-bold",
130
+ "isPaletteReversed": false,
131
+ "labels": false,
132
+ "dataFormat": {
133
+ "commas": false,
134
+ "prefix": "",
135
+ "suffix": "km",
136
+ "abbreviated": false,
137
+ "roundTo": 1
138
+ },
139
+ "confidenceKeys": {},
140
+ "visual": {
141
+ "border": true,
142
+ "accent": true,
143
+ "background": true
144
+ },
145
+ "dataUrl": "/examples/planet-example-data.json",
146
+ "animateReplay": true,
147
+ "visualizationType": "Combo",
148
+ "series": [
149
+ {
150
+ "dataKey": "Radius",
151
+ "type": "Line",
152
+ "axis": "Right"
153
+ },
154
+ {
155
+ "dataKey": "Diameter",
156
+ "type": "Bar"
157
+ }
158
+ ]
159
+ }
@@ -0,0 +1,56 @@
1
+ [
2
+ {
3
+ "name": "Jupiter",
4
+ "Radius": "10.97",
5
+ "Diameter": "22",
6
+ "distance": "0"
7
+ },
8
+ {
9
+ "name": "Saturn",
10
+ "Radius": "9.14",
11
+ "Diameter": "NA",
12
+ "distance": "0"
13
+ },
14
+ {
15
+ "name": "Uranus",
16
+ "Radius": null,
17
+ "Diameter": "8",
18
+ "distance": "0"
19
+ },
20
+ {
21
+ "name": "Neptune",
22
+ "Radius": "1,123",
23
+ "Diameter": "7",
24
+ "distance": "0"
25
+ },
26
+ {
27
+ "name": "Earth",
28
+ "Radius": "1,345",
29
+ "Diameter": "2",
30
+ "distance": "0"
31
+ },
32
+ {
33
+ "name": "Venus",
34
+ "Radius": "0.950",
35
+ "Diameter": "2.",
36
+ "distance": "0"
37
+ },
38
+ {
39
+ "name": "Mars",
40
+ "Radius": "0.532",
41
+ "Diameter": "1",
42
+ "distance": "0"
43
+ },
44
+ {
45
+ "name": "Mercury",
46
+ "Radius": "0.383",
47
+ "Diameter": "0.7",
48
+ "distance": "0"
49
+ },
50
+ {
51
+ "name": "Pluto",
52
+ "Radius": "0.181",
53
+ "Diameter": "0.3",
54
+ "distance": "0"
55
+ }
56
+ ]
@@ -13,7 +13,7 @@
13
13
  },
14
14
  {
15
15
  "name": "Uranus",
16
- "Radius": "0",
16
+ "Radius": "-10",
17
17
  "Diameter": "8",
18
18
  "distance": "0"
19
19
  },
@@ -53,4 +53,4 @@
53
53
  "Diameter": "0.3",
54
54
  "distance": "0"
55
55
  }
56
- ]
56
+ ]
@@ -0,0 +1,30 @@
1
+ {
2
+ "title": "Planet Radius (Pie Example)",
3
+ "dataUrl": "/examples/planet-example-data-nonnumeric.json",
4
+ "animate": true,
5
+ "animateReplay": true,
6
+ "visualizationType": "Pie",
7
+ "palette": "qualitative-soft",
8
+ "aspectRatio": 1,
9
+ "dataFormat": {
10
+ "roundTo": 1,
11
+ "commas": false,
12
+ "prefix": "",
13
+ "suffix": "km"
14
+ },
15
+ "yAxis": {
16
+ "label": "Radius",
17
+ "dataKey": "Radius"
18
+ },
19
+ "xAxis": {
20
+ "label": "Planet",
21
+ "dataKey": "name"
22
+ },
23
+ "legend": {
24
+ "hide": false
25
+ },
26
+ "table": {
27
+ "label": "Data Table",
28
+ "expanded": false
29
+ }
30
+ }