@cdc/chart 4.24.10 → 4.24.11

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 (53) hide show
  1. package/dist/cdcchart.js +34618 -33995
  2. package/examples/feature/boxplot/boxplot-data.json +88 -22
  3. package/examples/feature/boxplot/boxplot.json +540 -16
  4. package/examples/feature/boxplot/testing.csv +7 -7
  5. package/examples/feature/sankey/sankey-example-data.json +0 -1
  6. package/examples/private/test.json +20092 -0
  7. package/index.html +3 -3
  8. package/package.json +2 -2
  9. package/src/CdcChart.tsx +86 -86
  10. package/src/_stories/Chart.CustomColors.stories.tsx +19 -0
  11. package/src/_stories/Chart.DynamicSeries.stories.tsx +27 -0
  12. package/src/_stories/Chart.Legend.Gradient.stories.tsx +42 -1
  13. package/src/_stories/Chart.stories.tsx +7 -8
  14. package/src/_stories/ChartEditor.stories.tsx +27 -0
  15. package/src/_stories/ChartLine.Suppression.stories.tsx +25 -0
  16. package/src/_stories/ChartPrefixSuffix.stories.tsx +8 -0
  17. package/src/_stories/_mock/boxplot_multiseries.json +647 -0
  18. package/src/_stories/_mock/dynamic_series_bar_config.json +723 -0
  19. package/src/_stories/_mock/dynamic_series_config.json +979 -0
  20. package/{examples/feature/scatterplot/scatterplot.json → src/_stories/_mock/scatterplot_mock.json} +62 -92
  21. package/src/_stories/_mock/suppression_mock.json +1549 -0
  22. package/src/components/BarChart/components/BarChart.StackedVertical.tsx +43 -9
  23. package/src/components/BarChart/components/BarChart.Vertical.tsx +60 -42
  24. package/src/components/BarChart/helpers/index.ts +1 -2
  25. package/src/components/BoxPlot/BoxPlot.tsx +189 -0
  26. package/src/components/EditorPanel/EditorPanel.tsx +64 -62
  27. package/src/components/EditorPanel/components/Panels/Panel.Annotate.tsx +3 -3
  28. package/src/components/EditorPanel/components/Panels/Panel.BoxPlot.tsx +51 -6
  29. package/src/components/EditorPanel/components/Panels/Panel.Regions.tsx +40 -9
  30. package/src/components/EditorPanel/components/Panels/Panel.Sankey.tsx +3 -3
  31. package/src/components/EditorPanel/components/Panels/Panel.Series.tsx +121 -56
  32. package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +1 -2
  33. package/src/components/EditorPanel/useEditorPermissions.ts +15 -1
  34. package/src/components/Legend/Legend.Component.tsx +9 -10
  35. package/src/components/Legend/Legend.tsx +16 -16
  36. package/src/components/LineChart/helpers.ts +48 -43
  37. package/src/components/LineChart/index.tsx +88 -82
  38. package/src/components/LinearChart.tsx +17 -10
  39. package/src/components/Sankey/index.tsx +50 -32
  40. package/src/components/Sankey/sankey.scss +6 -5
  41. package/src/components/Sankey/useSankeyAlert.tsx +60 -0
  42. package/src/components/ScatterPlot/ScatterPlot.jsx +20 -4
  43. package/src/data/initial-state.js +3 -9
  44. package/src/hooks/useLegendClasses.ts +10 -23
  45. package/src/hooks/useMinMax.ts +27 -13
  46. package/src/hooks/useReduceData.ts +43 -10
  47. package/src/hooks/useScales.ts +56 -35
  48. package/src/hooks/useTooltip.tsx +54 -49
  49. package/src/scss/main.scss +0 -18
  50. package/src/types/ChartConfig.ts +6 -19
  51. package/src/types/ChartContext.ts +4 -1
  52. package/src/types/ForestPlot.ts +8 -0
  53. package/src/components/BoxPlot/BoxPlot.jsx +0 -111
@@ -1,90 +1,156 @@
1
1
  [
2
2
  {
3
3
  "Group_Category": "category one",
4
- "Value": "21"
4
+ "Value": "21",
5
+ "Price": "100",
6
+ "Month": "January",
7
+ "Radius": "10"
5
8
  },
6
9
  {
7
10
  "Group_Category": "category one",
8
- "Value": "19"
11
+ "Value": "19",
12
+ "Price": "105",
13
+ "Month": "January",
14
+ "Radius": "12"
9
15
  },
10
16
  {
11
17
  "Group_Category": "category one",
12
- "Value": "23"
18
+ "Value": "23",
19
+ "Price": "110",
20
+ "Month": "February",
21
+ "Radius": "7"
13
22
  },
14
23
  {
15
24
  "Group_Category": "category one",
16
- "Value": "24"
25
+ "Value": "24",
26
+ "Price": "115",
27
+ "Month": "February",
28
+ "Radius": "5"
17
29
  },
18
30
  {
19
31
  "Group_Category": "category two",
20
- "Value": "18"
32
+ "Value": "18",
33
+ "Price": "120",
34
+ "Month": "March",
35
+ "Radius": "9"
21
36
  },
22
37
  {
23
38
  "Group_Category": "category two",
24
- "Value": "10"
39
+ "Value": "10",
40
+ "Price": "125",
41
+ "Month": "March",
42
+ "Radius": "14"
25
43
  },
26
44
  {
27
45
  "Group_Category": "category two",
28
- "Value": "12"
46
+ "Value": "12",
47
+ "Price": "130",
48
+ "Month": "April",
49
+ "Radius": "11"
29
50
  },
30
51
  {
31
52
  "Group_Category": "category two",
32
- "Value": "19"
53
+ "Value": "19",
54
+ "Price": "135",
55
+ "Month": "April",
56
+ "Radius": "6"
33
57
  },
34
58
  {
35
59
  "Group_Category": "category three",
36
- "Value": "30"
60
+ "Value": "30",
61
+ "Price": "140",
62
+ "Month": "May",
63
+ "Radius": "8"
37
64
  },
38
65
  {
39
66
  "Group_Category": "category three",
40
- "Value": "35"
67
+ "Value": "35",
68
+ "Price": "145",
69
+ "Month": "May",
70
+ "Radius": "10"
41
71
  },
42
72
  {
43
73
  "Group_Category": "category three",
44
- "Value": "36"
74
+ "Value": "36",
75
+ "Price": "150",
76
+ "Month": "June",
77
+ "Radius": "12"
45
78
  },
46
79
  {
47
80
  "Group_Category": "category three",
48
- "Value": "46"
81
+ "Value": "46",
82
+ "Price": "155",
83
+ "Month": "June",
84
+ "Radius": "13"
49
85
  },
50
86
  {
51
87
  "Group_Category": "category four",
52
- "Value": "30"
88
+ "Value": "30",
89
+ "Price": "160",
90
+ "Month": "July",
91
+ "Radius": "5"
53
92
  },
54
93
  {
55
94
  "Group_Category": "category four",
56
- "Value": "40"
95
+ "Value": "40",
96
+ "Price": "165",
97
+ "Month": "July",
98
+ "Radius": "9"
57
99
  },
58
100
  {
59
101
  "Group_Category": "category four",
60
- "Value": "50"
102
+ "Value": "50",
103
+ "Price": "170",
104
+ "Month": "August",
105
+ "Radius": "14"
61
106
  },
62
107
  {
63
108
  "Group_Category": "category four",
64
- "Value": "50"
109
+ "Value": "50",
110
+ "Price": "175",
111
+ "Month": "August",
112
+ "Radius": "15"
65
113
  },
66
114
  {
67
115
  "Group_Category": "category four",
68
- "Value": "85"
116
+ "Value": "85",
117
+ "Price": "180",
118
+ "Month": "September",
119
+ "Radius": "7"
69
120
  },
70
121
  {
71
122
  "Group_Category": "category four",
72
- "Value": "82"
123
+ "Value": "82",
124
+ "Price": "185",
125
+ "Month": "September",
126
+ "Radius": "8"
73
127
  },
74
128
  {
75
129
  "Group_Category": "category four",
76
- "Value": "43"
130
+ "Value": "43",
131
+ "Price": "190",
132
+ "Month": "October",
133
+ "Radius": "10"
77
134
  },
78
135
  {
79
136
  "Group_Category": "category four",
80
- "Value": "42"
137
+ "Value": "42",
138
+ "Price": "195",
139
+ "Month": "October",
140
+ "Radius": "12"
81
141
  },
82
142
  {
83
143
  "Group_Category": "category four",
84
- "Value": "41"
144
+ "Value": "41",
145
+ "Price": "200",
146
+ "Month": "November",
147
+ "Radius": "11"
85
148
  },
86
149
  {
87
150
  "Group_Category": "category four",
88
- "Value": "21"
151
+ "Value": "21",
152
+ "Price": "205",
153
+ "Month": "November",
154
+ "Radius": "9"
89
155
  }
90
156
  ]