@cdc/chart 1.3.2 → 1.3.4

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 (36) hide show
  1. package/dist/cdcchart.js +77 -4
  2. package/examples/age-adjusted-rates.json +1218 -0
  3. package/examples/case-rate-example-config.json +36 -0
  4. package/examples/case-rate-example-data.json +33602 -0
  5. package/examples/date-exclusions-config.json +62 -0
  6. package/examples/date-exclusions-data.json +162 -0
  7. package/examples/horizontal-chart.json +35 -0
  8. package/examples/horizontal-stacked-bar-chart.json +36 -0
  9. package/examples/line-chart.json +76 -0
  10. package/examples/paired-bar-data.json +14 -0
  11. package/examples/paired-bar-example.json +48 -0
  12. package/examples/paired-bar-formatted.json +37 -0
  13. package/examples/planet-chart-horizontal-example-config.json +35 -0
  14. package/examples/planet-example-config.json +1 -0
  15. package/examples/private/newtest.csv +101 -0
  16. package/examples/private/test.json +10124 -0
  17. package/package.json +9 -5
  18. package/src/CdcChart.tsx +417 -149
  19. package/src/components/BarChart.tsx +431 -24
  20. package/src/components/BarStackVertical.js +0 -0
  21. package/src/components/DataTable.tsx +55 -28
  22. package/src/components/EditorPanel.js +914 -260
  23. package/src/components/LineChart.tsx +4 -3
  24. package/src/components/LinearChart.tsx +258 -88
  25. package/src/components/PairedBarChart.tsx +144 -0
  26. package/src/components/PieChart.tsx +30 -16
  27. package/src/components/SparkLine.js +206 -0
  28. package/src/data/initial-state.js +59 -32
  29. package/src/hooks/useActiveElement.js +19 -0
  30. package/src/hooks/useColorPalette.ts +83 -0
  31. package/src/hooks/useReduceData.ts +43 -0
  32. package/src/index.html +49 -13
  33. package/src/index.tsx +6 -2
  34. package/src/scss/editor-panel.scss +12 -4
  35. package/src/scss/main.scss +112 -3
  36. package/LICENSE +0 -201
@@ -0,0 +1,36 @@
1
+ {
2
+ "title": "Case Rate Data",
3
+ "theme": "theme-blue",
4
+ "dataUrl": "/examples/case-rate-example-data.json",
5
+ "visualizationType": "Bar",
6
+ "visualizationSubType": "horizontal",
7
+ "series": [],
8
+ "barThickness": 0.3,
9
+ "height": 300,
10
+ "dataFormat": {
11
+ "commas": false,
12
+ "prefix": "",
13
+ "suffix": ""
14
+ },
15
+ "padding": {
16
+ "left": 10,
17
+ "right": 10
18
+ },
19
+ "yAxis": {
20
+ "gridLines": false,
21
+ "numTicks": 3
22
+ },
23
+ "xAxis": {
24
+ "dataKey": "",
25
+ "size": 20,
26
+ "wrap": true
27
+ },
28
+ "legend": {
29
+ "hide": true
30
+ },
31
+ "table": {
32
+ "label": "",
33
+ "expanded": true,
34
+ "download": true
35
+ }
36
+ }