@cdc/chart 4.23.2 → 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.
Files changed (48) hide show
  1. package/dist/cdcchart.js +41198 -39447
  2. package/examples/area-chart.json +187 -0
  3. package/examples/big-small-test-bar.json +328 -0
  4. package/examples/big-small-test-line.json +328 -0
  5. package/examples/big-small-test-negative.json +328 -0
  6. package/examples/box-plot.json +0 -1
  7. package/examples/example-bar-chart.json +4 -1
  8. package/examples/example-sparkline.json +76 -0
  9. package/examples/gallery/bar-chart-horizontal/horizontal-bar-chart.json +31 -172
  10. package/examples/gallery/bar-chart-vertical/vertical-bar-chart-confidence.json +1 -0
  11. package/examples/gallery/bar-chart-vertical/vertical-bar-chart-with-confidence.json +96 -14
  12. package/examples/gallery/line/line.json +1 -0
  13. package/examples/horizontal-chart-max-increase.json +38 -0
  14. package/examples/line-chart-max-increase.json +32 -0
  15. package/examples/line-chart-nonnumeric.json +5 -5
  16. package/examples/line-chart.json +6 -6
  17. package/examples/planet-deviation-config.json +168 -0
  18. package/examples/planet-deviation-data.json +38 -0
  19. package/examples/planet-example-config.json +139 -20
  20. package/examples/planet-example-data-max-increase.json +56 -0
  21. package/examples/planet-example-data.json +10 -10
  22. package/examples/scatterplot-continuous.csv +3 -3
  23. package/examples/scatterplot.json +2 -2
  24. package/examples/sparkline-chart-nonnumeric.json +3 -3
  25. package/index.html +26 -9
  26. package/package.json +6 -3
  27. package/src/CdcChart.jsx +146 -92
  28. package/src/components/AreaChart.jsx +198 -0
  29. package/src/components/BarChart.jsx +58 -34
  30. package/src/components/BoxPlot.jsx +28 -15
  31. package/src/components/DataTable.jsx +21 -17
  32. package/src/components/DeviationBar.jsx +191 -0
  33. package/src/components/EditorPanel.jsx +473 -168
  34. package/src/components/Filters.jsx +3 -2
  35. package/src/components/Legend.jsx +59 -46
  36. package/src/components/LineChart.jsx +3 -21
  37. package/src/components/LinearChart.jsx +158 -55
  38. package/src/components/PairedBarChart.jsx +0 -1
  39. package/src/components/PieChart.jsx +11 -14
  40. package/src/components/ScatterPlot.jsx +19 -16
  41. package/src/components/SparkLine.jsx +87 -85
  42. package/src/components/useIntersectionObserver.jsx +1 -1
  43. package/src/data/initial-state.js +20 -4
  44. package/src/hooks/useColorPalette.js +58 -48
  45. package/src/hooks/useReduceData.js +3 -4
  46. package/src/index.jsx +1 -1
  47. package/src/scss/editor-panel.scss +5 -0
  48. package/src/test/CdcChart.test.jsx +6 -0
@@ -0,0 +1,168 @@
1
+ {
2
+ "type": "chart",
3
+ "title": "Planet Radius (Bar Example)",
4
+ "showTitle": true,
5
+ "theme": "theme-blue",
6
+ "animate": false,
7
+ "fontSize": "medium",
8
+ "lineDatapointStyle": "hover",
9
+ "barHasBorder": "false",
10
+ "isLollipopChart": false,
11
+ "lollipopShape": "circle",
12
+ "lollipopColorStyle": "two-tone",
13
+ "visualizationSubType": "regular",
14
+ "barStyle": "rounded",
15
+ "roundingStyle": "finger",
16
+ "tipRounding": "top",
17
+ "padding": {
18
+ "left": 5,
19
+ "right": 5
20
+ },
21
+ "yAxis": {
22
+ "hideAxis": false,
23
+ "displayNumbersOnBar": true,
24
+ "hideLabel": false,
25
+ "hideTicks": false,
26
+ "size": 50,
27
+ "gridLines": false,
28
+ "enablePadding": false,
29
+ "min": "",
30
+ "max": "",
31
+ "labelColor": "#333",
32
+ "tickLabelColor": "#333",
33
+ "tickColor": "#333",
34
+ "rightHideAxis": true,
35
+ "rightAxisSize": 50,
36
+ "rightLabel": "testing",
37
+ "rightLabelOffsetSize": 0,
38
+ "rightAxisLabelColor": "#333",
39
+ "rightAxisTickLabelColor": "#333",
40
+ "rightAxisTickColor": "#333",
41
+ "numTicks": "11",
42
+ "axisPadding": 0,
43
+ "tickRotation": 0,
44
+ "label": "Measurement (1000km)",
45
+ "rightSeries": "Diameter"
46
+ },
47
+ "boxplot": {
48
+ "plots": [],
49
+ "borders": "true",
50
+ "firstQuartilePercentage": 25,
51
+ "thirdQuartilePercentage": 75,
52
+ "boxWidthPercentage": 40,
53
+ "plotOutlierValues": false,
54
+ "plotNonOutlierValues": true,
55
+ "legend": {
56
+ "showHowToReadText": false,
57
+ "howToReadText": ""
58
+ },
59
+ "labels": {
60
+ "q1": "Lower Quartile",
61
+ "q2": "q2",
62
+ "q3": "Upper Quartile",
63
+ "q4": "q4",
64
+ "minimum": "Minimum",
65
+ "maximum": "Maximum",
66
+ "mean": "Mean",
67
+ "median": "Median",
68
+ "sd": "Standard Deviation",
69
+ "iqr": "Interquartile Range",
70
+ "count": "Count",
71
+ "outliers": "Outliers",
72
+ "values": "Values"
73
+ }
74
+ },
75
+ "topAxis": {
76
+ "hasLine": false
77
+ },
78
+ "isLegendValue": false,
79
+ "barThickness": 0.35,
80
+ "barHeight": 25,
81
+ "barSpace": 15,
82
+ "heights": {
83
+ "vertical": 300,
84
+ "horizontal": 360
85
+ },
86
+ "xAxis": {
87
+ "type": "categorical",
88
+ "showTargetLabel": true,
89
+ "targetLabel": "Target",
90
+ "hideAxis": false,
91
+ "hideLabel": false,
92
+ "hideTicks": false,
93
+ "size": 75,
94
+ "tickRotation": "0",
95
+ "min": "",
96
+ "max": "",
97
+ "labelColor": "#333",
98
+ "tickLabelColor": "#333",
99
+ "tickColor": "#333",
100
+ "numTicks": "",
101
+ "labelOffset": 65,
102
+ "axisPadding": 0,
103
+ "target": "55",
104
+ "label": "Planet",
105
+ "dataKey": "name"
106
+ },
107
+ "table": {
108
+ "label": "Data Table",
109
+ "expanded": false,
110
+ "limitHeight": false,
111
+ "height": "",
112
+ "caption": "",
113
+ "showDownloadUrl": false,
114
+ "show": true
115
+ },
116
+ "orientation": "horizontal",
117
+ "legend": {
118
+ "behavior": "isolate",
119
+ "singleRow": false,
120
+ "colorCode": "",
121
+ "reverseLabelOrder": false,
122
+ "description": "",
123
+ "dynamicLegend": false,
124
+ "dynamicLegendDefaultText": "Show All",
125
+ "dynamicLegendItemLimit": 5,
126
+ "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
127
+ "dynamicLegendChartMessage": "Select Options from the Legend",
128
+ "position": "right",
129
+ "hide": false
130
+ },
131
+ "exclusions": {
132
+ "active": false,
133
+ "keys": []
134
+ },
135
+ "palette": "qualitative-bold",
136
+ "isPaletteReversed": false,
137
+ "twoColor": {
138
+ "palette": "complementary-5reverse",
139
+ "isPaletteReversed": true
140
+ },
141
+ "labels": false,
142
+ "dataFormat": {
143
+ "commas": false,
144
+ "prefix": "",
145
+ "suffix": "km",
146
+ "abbreviated": false,
147
+ "bottomSuffix": "",
148
+ "bottomPrefix": "",
149
+ "bottomAbbreviated": false,
150
+ "roundTo": 1
151
+ },
152
+ "confidenceKeys": {},
153
+ "visual": {
154
+ "border": true,
155
+ "accent": true,
156
+ "background": true
157
+ },
158
+ "dataUrl": "/examples/planet-deviation-data.json",
159
+ "visualizationType": "Deviation Bar",
160
+ "series": [
161
+ {
162
+ "dataKey": "Radius",
163
+ "type": "Deviation Bar",
164
+ "axis": "Left"
165
+ }
166
+ ],
167
+ "dataCutoff": "0.5"
168
+ }
@@ -0,0 +1,38 @@
1
+ [
2
+ {
3
+ "name": "Jupiter",
4
+ "Radius": "10000"
5
+ },
6
+ {
7
+ "name": "Saturn",
8
+ "Radius": "90000"
9
+ },
10
+ {
11
+ "name": "Uranus",
12
+ "Radius": "-80000"
13
+ },
14
+ {
15
+ "name": "Neptune",
16
+ "Radius": "7000"
17
+ },
18
+ {
19
+ "name": "Earth",
20
+ "Radius": "60000"
21
+ },
22
+ {
23
+ "name": "Venus",
24
+ "Radius": "50000"
25
+ },
26
+ {
27
+ "name": "Mars",
28
+ "Radius": "40000"
29
+ },
30
+ {
31
+ "name": "Mercury",
32
+ "Radius": "30000"
33
+ },
34
+ {
35
+ "name": "Pluto",
36
+ "Radius": "20000"
37
+ }
38
+ ]
@@ -1,37 +1,156 @@
1
1
  {
2
+ "type": "chart",
2
3
  "title": "Planet Radius (Bar Example)",
3
- "dataUrl": "/examples/planet-example-data.json",
4
- "visualizationType": "Bar",
5
- "visualizationSubType": "regular",
6
- "series": [{ "dataKey": "Radius" }],
4
+ "theme": "theme-blue",
5
+ "animate": false,
7
6
  "fontSize": "medium",
8
- "dataCutoff": "0.5",
9
- "orientation": "vertical",
10
- "dataFormat": {
11
- "roundTo": 1,
12
- "commas": false,
13
- "prefix": "",
14
- "suffix": "km"
15
- },
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
16
  "padding": {
17
17
  "left": 5,
18
18
  "right": 5
19
19
  },
20
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": true,
33
+ "rightAxisSize": 50,
34
+ "rightLabel": "testing",
35
+ "rightLabelOffsetSize": 0,
36
+ "rightAxisLabelColor": "#333",
37
+ "rightAxisTickLabelColor": "#333",
38
+ "rightAxisTickColor": "#333",
39
+ "numTicks": "11",
40
+ "axisPadding": 0,
41
+ "tickRotation": 0,
21
42
  "label": "Measurement (1000km)",
22
- "rightSeries": "Diameter",
23
- "rightLabel": "testing"
43
+ "rightSeries": "Diameter"
44
+ },
45
+ "boxplot": {
46
+ "plots": [],
47
+ "borders": "true",
48
+ "firstQuartilePercentage": 25,
49
+ "thirdQuartilePercentage": 75,
50
+ "boxWidthPercentage": 40,
51
+ "plotOutlierValues": false,
52
+ "plotNonOutlierValues": true,
53
+ "legend": {
54
+ "showHowToReadText": false,
55
+ "howToReadText": ""
56
+ },
57
+ "labels": {
58
+ "q1": "Lower Quartile",
59
+ "q2": "q2",
60
+ "q3": "Upper Quartile",
61
+ "q4": "q4",
62
+ "minimum": "Minimum",
63
+ "maximum": "Maximum",
64
+ "mean": "Mean",
65
+ "median": "Median",
66
+ "sd": "Standard Deviation",
67
+ "iqr": "Interquartile Range",
68
+ "count": "Count",
69
+ "outliers": "Outliers",
70
+ "values": "Values"
71
+ }
72
+ },
73
+ "topAxis": {
74
+ "hasLine": false
75
+ },
76
+ "isLegendValue": false,
77
+ "barThickness": 0.35,
78
+ "barHeight": 25,
79
+ "barSpace": 15,
80
+ "heights": {
81
+ "vertical": 300,
82
+ "horizontal": 405
24
83
  },
25
84
  "xAxis": {
85
+ "type": "categorical",
86
+ "hideAxis": false,
87
+ "hideLabel": false,
88
+ "hideTicks": false,
89
+ "size": 75,
90
+ "tickRotation": "0",
91
+ "min": "",
92
+ "max": "",
93
+ "labelColor": "#333",
94
+ "tickLabelColor": "#333",
95
+ "tickColor": "#333",
96
+ "numTicks": "",
97
+ "labelOffset": 65,
98
+ "axisPadding": 0,
26
99
  "label": "Planet",
27
- "dataKey": "name",
28
- "tickRotation": 30
100
+ "dataKey": "name"
101
+ },
102
+ "table": {
103
+ "label": "Data Table",
104
+ "expanded": false,
105
+ "limitHeight": false,
106
+ "height": "",
107
+ "caption": "",
108
+ "showDownloadUrl": false,
109
+ "show": true
29
110
  },
111
+ "orientation": "horizontal",
30
112
  "legend": {
113
+ "behavior": "isolate",
114
+ "position": "right",
115
+ "singleRow": false,
116
+ "colorCode": "",
117
+ "reverseLabelOrder": false,
118
+ "description": "",
119
+ "dynamicLegend": false,
120
+ "dynamicLegendDefaultText": "Show All",
121
+ "dynamicLegendItemLimit": 5,
122
+ "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
123
+ "dynamicLegendChartMessage": "Select Options from the Legend",
31
124
  "hide": false
32
125
  },
33
- "table": {
34
- "label": "Data Table",
35
- "expanded": false
36
- }
126
+ "exclusions": {
127
+ "active": false,
128
+ "keys": []
129
+ },
130
+ "palette": "qualitative-bold",
131
+ "isPaletteReversed": false,
132
+ "labels": false,
133
+ "dataFormat": {
134
+ "commas": false,
135
+ "prefix": "",
136
+ "suffix": "km",
137
+ "abbreviated": false,
138
+ "roundTo": 1
139
+ },
140
+ "confidenceKeys": {},
141
+ "visual": {
142
+ "border": true,
143
+ "accent": true,
144
+ "background": true
145
+ },
146
+ "dataUrl": "/examples/planet-example-data.json",
147
+ "visualizationType": "Deviation Bar",
148
+ "series": [
149
+ {
150
+ "dataKey": "Radius",
151
+ "type": "Deviation Bar",
152
+ "axis": "Left"
153
+ }
154
+ ],
155
+ "dataCutoff": "0.5"
37
156
  }
@@ -0,0 +1,56 @@
1
+ [
2
+ {
3
+ "name": "Jupiter",
4
+ "Radius": "10.97",
5
+ "Diameter": "25.1",
6
+ "distance": "0"
7
+ },
8
+ {
9
+ "name": "Saturn",
10
+ "Radius": "9.14",
11
+ "Diameter": "18",
12
+ "distance": "0"
13
+ },
14
+ {
15
+ "name": "Uranus",
16
+ "Radius": "-4",
17
+ "Diameter": "-30",
18
+ "distance": "0"
19
+ },
20
+ {
21
+ "name": "Neptune",
22
+ "Radius": "3.86",
23
+ "Diameter": "7",
24
+ "distance": "0"
25
+ },
26
+ {
27
+ "name": "Earth",
28
+ "Radius": "1",
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
+ ]
@@ -1,56 +1,56 @@
1
1
  [
2
2
  {
3
3
  "name": "Jupiter",
4
- "Radius": "10.97",
4
+ "Radius": "100",
5
5
  "Diameter": "22",
6
6
  "distance": "0"
7
7
  },
8
8
  {
9
9
  "name": "Saturn",
10
- "Radius": "9.14",
10
+ "Radius": "90",
11
11
  "Diameter": "18",
12
12
  "distance": "0"
13
13
  },
14
14
  {
15
15
  "name": "Uranus",
16
- "Radius": "-10",
16
+ "Radius": "80",
17
17
  "Diameter": "8",
18
18
  "distance": "0"
19
19
  },
20
20
  {
21
21
  "name": "Neptune",
22
- "Radius": "3.86",
22
+ "Radius": "70",
23
23
  "Diameter": "7",
24
24
  "distance": "0"
25
25
  },
26
26
  {
27
27
  "name": "Earth",
28
- "Radius": "1",
28
+ "Radius": "60",
29
29
  "Diameter": "2",
30
30
  "distance": "0"
31
31
  },
32
32
  {
33
33
  "name": "Venus",
34
- "Radius": "0.950",
34
+ "Radius": "50",
35
35
  "Diameter": "2",
36
36
  "distance": "0"
37
37
  },
38
38
  {
39
39
  "name": "Mars",
40
- "Radius": "0.532",
40
+ "Radius": "-40",
41
41
  "Diameter": "1",
42
42
  "distance": "0"
43
43
  },
44
44
  {
45
45
  "name": "Mercury",
46
- "Radius": "0.383",
46
+ "Radius": "30",
47
47
  "Diameter": "0.7",
48
48
  "distance": "0"
49
49
  },
50
50
  {
51
51
  "name": "Pluto",
52
- "Radius": "0.181",
52
+ "Radius": "20",
53
53
  "Diameter": "0.3",
54
54
  "distance": "0"
55
55
  }
56
- ]
56
+ ]
@@ -1,7 +1,7 @@
1
1
  x,y1,y2,y3,y4
2
- 1,8,37,72,82
3
- 2,2,30,75,83
4
- 3,15,42,51,95
2
+ 1000,8,37,72,82
3
+ 2000,2,30,75,83
4
+ 3000,15,42,51,95
5
5
  4,10,38,61,96
6
6
  5,1,38,66,86
7
7
  60,6,37,70,85
@@ -48,7 +48,7 @@
48
48
  "barHeight": 25,
49
49
  "height": 300,
50
50
  "xAxis": {
51
- "type": "continuous",
51
+ "type": "",
52
52
  "hideAxis": false,
53
53
  "hideLabel": false,
54
54
  "hideTicks": false,
@@ -133,4 +133,4 @@
133
133
  "type": "Bar"
134
134
  }
135
135
  ]
136
- }
136
+ }
@@ -50,7 +50,7 @@
50
50
  },
51
51
  {
52
52
  "Date": "3/15/2016",
53
- "Data 1": "NA"
53
+ "Data 1": "40"
54
54
  },
55
55
  {
56
56
  "Date": "4/15/2016",
@@ -69,8 +69,8 @@
69
69
  "series": [
70
70
  {
71
71
  "dataKey": "Data 1",
72
- "type": "Bar"
72
+ "type": "Line"
73
73
  }
74
74
  ],
75
75
  "description": "Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries for previewing layouts and visual mockups."
76
- }
76
+ }
package/index.html CHANGED
@@ -34,19 +34,30 @@
34
34
  <!-- <div class="react-container" data-config="/examples/planet-example-config.json"></div> -->
35
35
  <!-- <div class="react-container" data-config="/examples/planet-chart-horizontal-example-config.json"></div> -->
36
36
  <!-- <div class="react-container" data-config="/examples/planet-example-config.json"></div> -->
37
+ <!-- <div class="react-container" data-config="/examples/example-sparkline.json"></div> -->
37
38
  <!-- <div class="react-container" data-config="/examples/date-exclusions-config.json"></div> -->
38
39
  <!-- <div class="react-container" data-config="/examples/case-rate-example-config.json"></div> -->
39
- <!-- <div class="react-container" data-config="/examples/private/textelements.json"></div> -->
40
- <!-- <div class="react-container" data-config="/examples/private/example-bar-chart.json"></div> -->
40
+ <!-- <div class="react-container" data-config="/examples/example-bar-chart.json"></div> -->
41
41
  <!-- <div class="react-container" data-config="/examples/example-sparkline.json"></div> -->
42
42
  <!-- DATA PRESENTATION GALLERY: https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/bar-chart.html#examples -->
43
43
 
44
+ <div class="react-container" data-config="/examples/gallery/line/line.json"></div>
45
+ <!-- EDGE CASES -->
46
+ <!-- <div class="react-container" data-config="/examples/big-small-test-line.json"></div> -->
47
+ <!-- <div class="react-container" data-config="/examples/big-small-test-bar.json"></div> -->
48
+ <!-- <div class="react-container" data-config="/examples/big-small-test-negative.json"></div> -->
49
+ <!-- <div class="react-container" data-config="/examples/line-chart-max-increase.json"></div> -->
50
+ <!-- <div class="react-container" data-config="/examples/horizontal-chart-max-increase.json"></div> -->
51
+
44
52
  <!-- NONNUMERIC TESTS -->
45
53
  <!-- <div class="react-container" data-config="/examples/planet-pie-example-config-nonnumeric.json"></div> -->
46
- <div class="react-container" data-config="/examples/example-combo-bar-nonnumeric.json"></div>
54
+ <!-- <div class="react-container" data-config="/examples/planet-pie-example-config.json"></div> -->
55
+ <!-- <div class="react-container" data-config="/examples/example-combo-bar-nonnumeric.json"></div> -->
47
56
  <!-- <div class="react-container" data-config="/examples/example-bar-chart-nonnumeric.json"></div> -->
48
- <!-- <div class="react-container" data-config="/examples/line-chart-nonnumeric.json"></div> -->
57
+ <!-- <div class="react-container" data-config="/examples/line-chart.json"></div> -->
49
58
  <!-- <div class="react-container" data-config="/examples/sparkline-chart-nonnumeric.json"></div> -->
59
+ <!-- <div class="react-container" data-config="/examples/area-chart.json"></div> -->
60
+ <!-- <div class="react-container" data-config="/examples/scatterplot.json"></div> -->
50
61
 
51
62
  <!-- HORIZONTAL BAR CHARTS -->
52
63
  <!-- <div class="react-container" data-config="/examples/gallery/bar-chart-horizontal/horizontal-bar-chart-with-numbers-on-bar.json"></div> -->
@@ -54,16 +65,22 @@
54
65
  <!-- <div class="react-container" data-config="/examples/gallery/bar-chart-horizontal/horizontal-stacked.json"></div> -->
55
66
 
56
67
  <!-- VERTICAL BAR CHARTS -->
57
- <!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/combo-line-chart.json"></div> -->
68
+ <!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/combo-line-chart.json"></div> -->
58
69
  <!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-categorical.json"></div> -->
59
70
  <!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-stacked.json"></div> -->
60
71
  <!-- <div class="react-container" data-config="/examples/stacked-vertical-bar-example-nonnumerics.json"></div> -->
61
- <!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-with-confidence.json"></div> -->
72
+ <!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-confidence.json"></div> -->
73
+ <!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-confidence.json"></div> -->
62
74
  <!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart.json"></div> -->
63
- <!-- <div class="react-container" data-config="/examples/box-plot.json"></div> -->
64
75
 
76
+ <!-- <div class="react-container" data-config="/examples/area-chart.json"></div> -->
77
+ <!-- <div class="react-container" data-config="/examples/scatterplot.json"></div> -->
78
+ <!-- <div class="react-container" data-config="/examples/box-plot.json"></div> -->
65
79
  <!-- Paired bar Chart -->
66
- <div class="react-container" data-config="/examples/gallery/paired-bar/paired-bar-chart.json"></div>
80
+ <!-- <div class="react-container" data-config="/examples/gallery/paired-bar/paired-bar-chart.json"></div> -->
81
+
82
+ <!-- Deviation Bar Chart -->
83
+ <!-- <div class="react-container" data-config="/examples/planet-deviation-config.json"></div> -->
67
84
 
68
85
  <noscript>You need to enable JavaScript to run this app.</noscript>
69
86
  </body>
@@ -71,4 +88,4 @@
71
88
  <script type="module" src="./src/index.jsx"></script>
72
89
  </body>
73
90
 
74
- </html>
91
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdc/chart",
3
- "version": "4.23.2",
3
+ "version": "4.23.3",
4
4
  "description": "React component for visualizing tabular data in various types of charts",
5
5
  "moduleName": "CdcChart",
6
6
  "main": "dist/cdcchart",
@@ -10,7 +10,9 @@
10
10
  "build": "vite build",
11
11
  "preview": "vite preview",
12
12
  "graph": "nx graph",
13
- "prepublishOnly": "lerna run --scope @cdc/chart build"
13
+ "prepublishOnly": "lerna run --scope @cdc/chart build",
14
+ "test": "vitest watch --reporter verbose",
15
+ "test:ui": "vitest --ui"
14
16
  },
15
17
  "repository": {
16
18
  "type": "git",
@@ -26,6 +28,7 @@
26
28
  "@hello-pangea/dnd": "^16.2.0",
27
29
  "@visx/axis": "^3.0.0",
28
30
  "@visx/curve": "^3.0.0",
31
+ "@visx/event": "^3.0.1",
29
32
  "@visx/gradient": "^3.0.0",
30
33
  "@visx/group": "^3.0.0",
31
34
  "@visx/legend": "^3.0.0",
@@ -54,7 +57,7 @@
54
57
  "react": "^18.2.0",
55
58
  "react-dom": "^18.2.0"
56
59
  },
57
- "gitHead": "cd4216f47b1c41bfbc1de3b704f70c52cc7293c2",
60
+ "gitHead": "6fa3b11db159d38538f18023fe70b67a29e7d327",
58
61
  "devDependencies": {
59
62
  "resize-observer-polyfill": "^1.5.1"
60
63
  }