@cdc/chart 4.25.8 → 4.25.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 (145) hide show
  1. package/.claude/settings.local.json +9 -0
  2. package/dist/{cdcchart-1a1724a1.es.js → cdcchart-dgT_1dIT.es.js} +136 -151
  3. package/dist/cdcchart.js +44236 -40355
  4. package/examples/feature/__data__/planet-example-data.json +0 -30
  5. package/examples/feature/boxplot/valid-boxplot.csv +38 -17
  6. package/examples/grouped-bar-test.json +400 -0
  7. package/examples/private/DEV-11825.json +573 -0
  8. package/examples/private/d.json +382 -0
  9. package/examples/private/example-2.json +49784 -0
  10. package/examples/private/f2.json +1 -0
  11. package/examples/private/f4.json +1577 -0
  12. package/examples/private/forecast.json +1180 -0
  13. package/examples/private/lollipop.json +468 -0
  14. package/examples/private/na.json +913 -0
  15. package/examples/private/new.json +48756 -0
  16. package/examples/private/pie-chart-legend.json +904 -0
  17. package/examples/private/test-data.csv +28 -0
  18. package/examples/suppressed_tooltip.json +480 -0
  19. package/index.html +2 -133
  20. package/package.json +25 -7
  21. package/src/CdcChart.tsx +9 -13
  22. package/src/CdcChartComponent.tsx +403 -92
  23. package/src/_stories/Chart.Anchors.stories.tsx +2 -2
  24. package/src/_stories/Chart.BoxPlot.stories.tsx +1 -1
  25. package/src/_stories/Chart.CI.stories.tsx +1 -1
  26. package/src/_stories/Chart.Combo.stories.tsx +18 -0
  27. package/src/_stories/Chart.CustomColors.stories.tsx +1 -1
  28. package/src/_stories/Chart.DynamicSeries.stories.tsx +2 -2
  29. package/src/_stories/Chart.Filters.stories.tsx +2 -2
  30. package/src/_stories/Chart.Forecast.stories.tsx +36 -0
  31. package/src/_stories/Chart.HTMLInDataTable.stories.tsx +520 -0
  32. package/src/_stories/Chart.Legend.Gradient.stories.tsx +2 -2
  33. package/src/_stories/Chart.Patterns.stories.tsx +20 -0
  34. package/src/_stories/Chart.PreserveDecimals.stories.tsx +220 -0
  35. package/src/_stories/Chart.ScatterPlot.stories.tsx +1 -1
  36. package/src/_stories/Chart.SmallMultiples.stories.tsx +47 -0
  37. package/src/_stories/Chart.stories.tsx +8 -5
  38. package/src/_stories/Chart.tooltip.stories.tsx +1 -1
  39. package/src/_stories/ChartAnnotation.stories.tsx +7 -4
  40. package/src/_stories/ChartAxisLabels.stories.tsx +2 -2
  41. package/src/_stories/ChartAxisTitles.stories.tsx +2 -2
  42. package/src/_stories/ChartBar.Editor.stories.tsx +3580 -0
  43. package/src/_stories/ChartEditor.Editor.stories.tsx +658 -0
  44. package/src/_stories/ChartEditor.stories.tsx +59 -60
  45. package/src/_stories/ChartLine.Suppression.stories.tsx +1 -1
  46. package/src/_stories/ChartLine.Symbols.stories.tsx +1 -1
  47. package/src/_stories/ChartPrefixSuffix.stories.tsx +2 -2
  48. package/src/_stories/_mock/combo.json +451 -0
  49. package/src/_stories/_mock/editor-test-configs.json +376 -0
  50. package/src/_stories/_mock/editor-test-datasets.json +477 -0
  51. package/src/_stories/_mock/editor-tests/bar-chart-editor-test.json +255 -0
  52. package/src/_stories/_mock/editor-tests/bar-chart-general-test.json +267 -0
  53. package/src/_stories/_mock/editor-tests/bar-chart-test.json +237 -0
  54. package/src/_stories/_mock/forecast_combo_with_gaps.json +913 -0
  55. package/src/_stories/_mock/pie_config.json +257 -62
  56. package/src/_stories/_mock/small_multiples/small_multiples_bars.json +1944 -0
  57. package/src/_stories/_mock/small_multiples/small_multiples_big_data_bars.json +1114 -0
  58. package/src/_stories/_mock/small_multiples/small_multiples_lines.json +2646 -0
  59. package/src/_stories/_mock/small_multiples/small_multiples_lines_colors.json +1305 -0
  60. package/src/_stories/_mock/small_multiples/small_multiples_stacked_bars.json +1936 -0
  61. package/src/_stories/_mock/stacked-pattern-test.json +520 -0
  62. package/src/components/Annotations/components/AnnotationDraggable.tsx +1 -0
  63. package/src/components/Annotations/components/AnnotationDropdown.tsx +1 -1
  64. package/src/components/Annotations/components/findNearestDatum.ts +6 -41
  65. package/src/components/AreaChart/components/AreaChart.Stacked.jsx +10 -6
  66. package/src/components/AreaChart/index.tsx +1 -2
  67. package/src/components/BarChart/components/BarChart.Horizontal.tsx +161 -22
  68. package/src/components/BarChart/components/BarChart.StackedHorizontal.tsx +138 -5
  69. package/src/components/BarChart/components/BarChart.StackedVertical.tsx +215 -73
  70. package/src/components/BarChart/components/BarChart.Vertical.tsx +155 -22
  71. package/src/components/BarChart/helpers/index.ts +43 -4
  72. package/src/components/BarChart/helpers/lollipopColors.ts +27 -0
  73. package/src/components/BarChart/helpers/useBarChart.ts +25 -3
  74. package/src/components/BoxPlot/BoxPlot.Vertical.tsx +2 -1
  75. package/src/components/BoxPlot/helpers/index.ts +3 -3
  76. package/src/components/Brush/BrushChart.tsx +1 -1
  77. package/src/components/DeviationBar.jsx +9 -6
  78. package/src/components/EditorPanel/EditorPanel.tsx +563 -229
  79. package/src/components/EditorPanel/EditorPanelContext.ts +3 -0
  80. package/src/components/EditorPanel/components/Panels/Panel.Annotate.tsx +96 -111
  81. package/src/components/EditorPanel/components/Panels/Panel.General.tsx +19 -1
  82. package/src/components/EditorPanel/components/Panels/Panel.PatternSettings.tsx +461 -0
  83. package/src/components/EditorPanel/components/Panels/Panel.Series.tsx +80 -67
  84. package/src/components/EditorPanel/components/Panels/Panel.SmallMultiples.tsx +422 -0
  85. package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +188 -139
  86. package/src/components/EditorPanel/components/Panels/index.tsx +5 -1
  87. package/src/components/EditorPanel/components/Panels/panelVisual.styles.css +0 -8
  88. package/src/components/EditorPanel/editor-panel.scss +0 -20
  89. package/src/components/EditorPanel/helpers/updateFieldRankByValue.ts +49 -48
  90. package/src/components/EditorPanel/useEditorPermissions.ts +7 -15
  91. package/src/components/Forecasting/Forecasting.tsx +175 -27
  92. package/src/components/ForestPlot/ForestPlot.tsx +11 -7
  93. package/src/components/ForestPlot/ForestPlotProps.ts +1 -1
  94. package/src/components/Legend/Legend.Component.tsx +114 -14
  95. package/src/components/Legend/helpers/createFormatLabels.tsx +230 -171
  96. package/src/components/Legend/helpers/getLegendClasses.ts +0 -1
  97. package/src/components/LegendWrapper.tsx +1 -1
  98. package/src/components/LineChart/LineChartProps.ts +0 -3
  99. package/src/components/LineChart/components/LineChart.Circle.tsx +2 -2
  100. package/src/components/LineChart/helpers.ts +1 -1
  101. package/src/components/LineChart/index.tsx +38 -15
  102. package/src/components/LinearChart.tsx +96 -84
  103. package/src/components/PairedBarChart.jsx +6 -4
  104. package/src/components/PieChart/PieChart.tsx +170 -54
  105. package/src/components/Regions/components/Regions.tsx +3 -24
  106. package/src/components/Sankey/components/Sankey.tsx +7 -1
  107. package/src/components/Sankey/types/index.ts +1 -1
  108. package/src/components/ScatterPlot/ScatterPlot.jsx +32 -4
  109. package/src/components/SmallMultiples/SmallMultipleTile.tsx +198 -0
  110. package/src/components/SmallMultiples/SmallMultiples.css +32 -0
  111. package/src/components/SmallMultiples/SmallMultiples.tsx +271 -0
  112. package/src/components/SmallMultiples/index.ts +2 -0
  113. package/src/data/initial-state.js +327 -293
  114. package/src/helpers/buildForecastPaletteMappings.ts +112 -0
  115. package/src/helpers/buildForecastPaletteOptions.ts +71 -0
  116. package/src/helpers/getColorScale.ts +82 -8
  117. package/src/{hooks/useMinMax.ts → helpers/getMinMax.ts} +14 -7
  118. package/src/helpers/getNewRuntime.ts +1 -1
  119. package/src/helpers/getTransformedData.ts +1 -1
  120. package/src/helpers/getYAxisAutoPadding.ts +53 -0
  121. package/src/helpers/smallMultiplesHelpers.ts +529 -0
  122. package/src/hooks/useChartHoverAnalytics.tsx +44 -0
  123. package/src/hooks/useProgrammaticTooltip.ts +96 -0
  124. package/src/hooks/useReduceData.ts +105 -70
  125. package/src/hooks/useScales.ts +88 -34
  126. package/src/hooks/useSmallMultipleSynchronization.ts +59 -0
  127. package/src/hooks/useTooltip.tsx +116 -29
  128. package/src/index.jsx +0 -2
  129. package/src/scss/main.scss +13 -80
  130. package/src/store/chart.actions.ts +2 -0
  131. package/src/store/chart.reducer.ts +5 -1
  132. package/src/test/CdcChart.test.jsx +8 -3
  133. package/src/types/ChartConfig.ts +53 -11
  134. package/src/types/ChartContext.ts +4 -0
  135. package/vite.config.js +1 -1
  136. package/vitest.config.ts +16 -0
  137. package/src/_stories/_mock/pie_data.json +0 -218
  138. package/src/components/AreaChart/components/AreaChart.jsx +0 -109
  139. package/src/coreStyles_chart.scss +0 -3
  140. package/src/helpers/configHelpers.ts +0 -28
  141. package/src/helpers/generateColorsArray.ts +0 -8
  142. package/src/helpers/sort.ts +0 -7
  143. package/src/hooks/useActiveElement.js +0 -19
  144. package/src/hooks/useChartClasses.js +0 -41
  145. package/src/hooks/useColorPalette.js +0 -76
@@ -1,312 +1,346 @@
1
- export default {
2
- annotations: [],
3
- allowLineToBarGraph: undefined,
4
- type: 'chart',
5
- debugSvg: false,
6
- chartMessage: {
7
- noData: 'No Data Available'
8
- },
9
- title: '',
10
- showTitle: true,
11
- showDownloadMediaButton: false,
12
- theme: 'theme-blue',
13
- animate: false,
14
- lineDatapointStyle: 'hover',
15
- lineDatapointColor: 'Same as Line',
16
- barHasBorder: 'true',
17
- isLollipopChart: false,
18
- lollipopShape: 'circle',
19
- lollipopColorStyle: 'two-tone',
20
- visualizationSubType: 'regular',
21
- barStyle: '',
22
- roundingStyle: 'standard',
23
- tipRounding: 'top',
24
- isResponsiveTicks: false,
25
- general: {
26
- annotationDropdownText: 'Annotations',
27
- showMissingDataLabel: true,
28
- showSuppressedSymbol: true,
29
- showZeroValueData: true,
30
- hideNullValue: true
31
- },
32
- padding: {
33
- left: 5,
34
- right: 5
35
- },
36
- preliminaryData: [],
37
- yAxis: {
38
- hideAxis: false,
39
- displayNumbersOnBar: false,
40
- hideLabel: false,
41
- hideTicks: false,
42
- size: 50,
43
- gridLines: false,
44
- enablePadding: false,
45
- min: '',
46
- max: '',
47
- labelColor: '#1c1d1f',
48
- tickLabelColor: '#1c1d1f',
49
- tickColor: '#1c1d1f',
50
- rightHideAxis: false,
51
- rightAxisSize: 0,
52
- rightLabel: '',
53
- rightLabelOffsetSize: 0,
54
- rightAxisLabelColor: '#1c1d1f',
55
- rightAxisTickLabelColor: '#1c1d1f',
56
- rightAxisTickColor: '#1c1d1f',
57
- numTicks: '',
58
- axisPadding: 0,
59
- scalePadding: 10,
60
- tickRotation: 0,
61
- anchors: [],
62
- shoMissingDataLabel: true,
63
- showMissingDataLine: true,
64
- categories: []
65
- },
66
- boxplot: {
67
- plots: [],
68
- borders: 'true',
69
- plotOutlierValues: false,
70
- plotNonOutlierValues: true,
71
- labels: {
72
- q1: 'Lower Quartile',
73
- q2: 'q2',
74
- q3: 'Upper Quartile',
75
- q4: 'q4',
76
- minimum: 'Minimum',
77
- maximum: 'Maximum',
78
- mean: 'Mean',
79
- median: 'Median',
80
- sd: 'Standard Deviation',
81
- iqr: 'Interquartile Range',
82
- count: 'Count',
83
- outliers: 'Outliers',
84
- values: 'Values',
85
- lowerBounds: 'Lower Bounds',
86
- upperBounds: 'Upper Bounds'
87
- }
88
- },
89
- topAxis: {
90
- hasLine: false
91
- },
1
+ import { USE_V2_MIGRATION } from '@cdc/core/helpers/constants'
92
2
 
93
- isLegendValue: false,
94
- barThickness: 0.35,
95
- barHeight: 25,
96
- barSpace: 15,
97
- heights: {
98
- vertical: 300,
99
- horizontal: 750
100
- },
101
- xAxis: {
102
- sortDates: false,
103
- anchors: [],
104
- type: 'categorical',
105
- showTargetLabel: true,
106
- targetLabel: 'Target',
107
- hideAxis: false,
108
- hideLabel: false,
109
- hideTicks: false,
110
- size: 75,
111
- tickRotation: 0,
112
- min: '',
113
- max: '',
114
- labelColor: '#1c1d1f',
115
- tickLabelColor: '#1c1d1f',
116
- tickColor: '#1c1d1f',
117
- numTicks: '',
118
- labelOffset: 0,
119
- axisPadding: 200,
120
- target: 0,
121
- maxTickRotation: 0,
122
- padding: 5,
123
- showYearsOnce: false,
124
- sortByRecentDate: false,
125
- brushActive: false
126
- },
127
- table: {
128
- label: 'Data Table',
129
- expanded: true,
130
- limitHeight: false,
131
- height: '',
132
- caption: '',
133
- showDownloadUrl: false,
134
- showDataTableLink: true,
135
- showDownloadLinkBelow: true,
136
- indexLabel: '',
137
- download: false,
138
- showVertical: true,
139
- dateDisplayFormat: '',
140
- showMissingDataLabel: true,
141
- showSuppressedSymbol: true,
142
- collapsible: true
143
- },
144
- orientation: 'vertical',
145
- color: 'pinkpurple',
146
- columns: {
147
- // start with a blank list
148
- },
149
- legend: {
150
- hide: false,
151
- behavior: 'isolate',
152
- axisAlign: true,
153
- singleRow: true,
154
- colorCode: '',
155
- reverseLabelOrder: false,
156
- description: '',
157
- dynamicLegend: false,
158
- dynamicLegendDefaultText: 'Show All',
159
- dynamicLegendItemLimit: 5,
160
- dynamicLegendItemLimitMessage: 'Dynamic Legend Item Limit Hit.',
161
- dynamicLegendChartMessage: 'Select Options from the Legend',
162
- label: '',
163
- lineMode: false,
164
- verticalSorted: false,
165
- highlightOnHover: false,
166
- hideSuppressedLabels: false,
167
- hideSuppressionLink: false,
168
- seriesHighlight: [],
169
- style: 'circles',
170
- subStyle: 'linear blocks',
171
- groupBy: '',
172
- shape: 'circle',
173
- tickRotation: '',
174
- order: 'dataColumn',
175
- hideBorder: {
176
- side: false,
177
- topBottom: true
178
- },
179
- position: 'right',
180
- orderedValues: []
181
- },
3
+ // Dynamic initial state based on migration flag
4
+ const createInitialState = () => {
5
+ const paletteDefaults = USE_V2_MIGRATION
6
+ ? {
7
+ isReversed: true,
8
+ version: '2.0',
9
+ name: 'sequential_bluereverse'
10
+ }
11
+ : {
12
+ isReversed: true,
13
+ version: '1.0',
14
+ name: 'qualitative_bold'
15
+ }
182
16
 
183
- exclusions: {
184
- active: false,
185
- keys: []
186
- },
187
- palette: 'qualitative-bold',
188
- isPaletteReversed: false,
189
- twoColor: {
190
- palette: 'monochrome-1',
191
- isPaletteReversed: false
192
- },
193
- labels: false,
194
- dataFormat: {
195
- commas: false,
196
- prefix: '',
197
- suffix: '',
198
- abbreviated: false,
199
- bottomSuffix: '',
200
- bottomPrefix: '',
201
- bottomAbbreviated: false
202
- },
203
- filters: [],
204
- confidenceKeys: {},
205
- visual: {
206
- border: true,
207
- accent: true,
208
- background: true,
209
- verticalHoverLine: false,
210
- horizontalHoverLine: false,
211
- lineDatapointSymbol: 'none',
212
- maximumShapeAmount: 7
213
- },
214
- useLogScale: false,
215
- filterBehavior: 'Filter Change',
216
- highlightedBarValues: [],
217
- series: [],
218
- tooltips: {
219
- opacity: 90,
220
- singleSeries: false,
221
- dateDisplayFormat: ''
222
- },
223
- forestPlot: {
224
- startAt: 0,
225
- colors: {
226
- line: '',
227
- shape: ''
17
+ return {
18
+ annotations: [],
19
+ allowLineToBarGraph: undefined,
20
+ type: 'chart',
21
+ debugSvg: false,
22
+ chartMessage: {
23
+ noData: 'No Data Available'
24
+ },
25
+ title: '',
26
+ showTitle: true,
27
+ showDownloadMediaButton: false,
28
+ theme: 'theme-blue',
29
+ animate: false,
30
+ lineDatapointStyle: 'hover',
31
+ lineDatapointColor: 'Same as Line',
32
+ barHasBorder: 'true',
33
+ isLollipopChart: false,
34
+ lollipopShape: 'circle',
35
+ lollipopColorStyle: 'two-tone',
36
+ visualizationSubType: 'regular',
37
+ barStyle: '',
38
+ roundingStyle: 'standard',
39
+ tipRounding: 'top',
40
+ isResponsiveTicks: false,
41
+ general: {
42
+ annotationDropdownText: 'Annotations',
43
+ showMissingDataLabel: true,
44
+ showSuppressedSymbol: true,
45
+ showZeroValueData: true,
46
+ hideNullValue: true,
47
+ palette: paletteDefaults
48
+ },
49
+ padding: {
50
+ left: 5,
51
+ right: 5
52
+ },
53
+ preliminaryData: [],
54
+ yAxis: {
55
+ hideAxis: false,
56
+ displayNumbersOnBar: false,
57
+ hideLabel: false,
58
+ hideTicks: false,
59
+ size: 50,
60
+ gridLines: false,
61
+ enablePadding: false,
62
+ min: '',
63
+ max: '',
64
+ labelColor: '#1c1d1f',
65
+ tickLabelColor: '#1c1d1f',
66
+ tickColor: '#1c1d1f',
67
+ rightHideAxis: false,
68
+ rightAxisSize: 0,
69
+ rightLabel: '',
70
+ rightLabelOffsetSize: 0,
71
+ rightAxisLabelColor: '#1c1d1f',
72
+ rightAxisTickLabelColor: '#1c1d1f',
73
+ rightAxisTickColor: '#1c1d1f',
74
+ numTicks: '',
75
+ axisPadding: 0,
76
+ scalePadding: 10,
77
+ tickRotation: 0,
78
+ anchors: [],
79
+ shoMissingDataLabel: true,
80
+ showMissingDataLine: true,
81
+ categories: []
228
82
  },
229
- lineOfNoEffect: {
230
- show: true
83
+ boxplot: {
84
+ plots: [],
85
+ borders: 'true',
86
+ plotOutlierValues: false,
87
+ plotNonOutlierValues: true,
88
+ labels: {
89
+ q1: 'Lower Quartile',
90
+ q2: 'q2',
91
+ q3: 'Upper Quartile',
92
+ q4: 'q4',
93
+ minimum: 'Minimum',
94
+ maximum: 'Maximum',
95
+ mean: 'Mean',
96
+ median: 'Median',
97
+ sd: 'Standard Deviation',
98
+ iqr: 'Interquartile Range',
99
+ count: 'Count',
100
+ outliers: 'Outliers',
101
+ values: 'Values',
102
+ lowerBounds: 'Lower Bounds',
103
+ upperBounds: 'Upper Bounds'
104
+ }
231
105
  },
232
- type: '',
233
- pooledResult: {
234
- diamondHeight: 5,
235
- column: ''
106
+ topAxis: {
107
+ hasLine: false
236
108
  },
237
- estimateField: '',
238
- estimateRadius: '',
239
- shape: 'square',
240
- rowHeight: 20,
241
- description: {
242
- show: true,
243
- text: 'description',
244
- location: 0
109
+
110
+ isLegendValue: false,
111
+ barThickness: 0.35,
112
+ barHeight: 25,
113
+ barSpace: 15,
114
+ heights: {
115
+ vertical: 300,
116
+ horizontal: 750
117
+ },
118
+ xAxis: {
119
+ sortDates: false,
120
+ anchors: [],
121
+ type: 'categorical',
122
+ showTargetLabel: true,
123
+ targetLabel: 'Target',
124
+ hideAxis: false,
125
+ hideLabel: false,
126
+ hideTicks: false,
127
+ size: 75,
128
+ tickRotation: 0,
129
+ min: '',
130
+ max: '',
131
+ labelColor: '#1c1d1f',
132
+ tickLabelColor: '#1c1d1f',
133
+ tickColor: '#1c1d1f',
134
+ numTicks: '',
135
+ labelOffset: 0,
136
+ axisPadding: 200,
137
+ target: 0,
138
+ maxTickRotation: 0,
139
+ padding: 5,
140
+ showYearsOnce: false,
141
+ sortByRecentDate: false,
142
+ brushActive: false
245
143
  },
246
- result: {
247
- show: true,
248
- text: 'result',
249
- location: 100
144
+ table: {
145
+ label: 'Data Table',
146
+ expanded: true,
147
+ limitHeight: false,
148
+ height: '',
149
+ caption: '',
150
+ showDownloadUrl: false,
151
+ showDataTableLink: true,
152
+ showDownloadLinkBelow: true,
153
+ indexLabel: '',
154
+ download: false,
155
+ showVertical: true,
156
+ dateDisplayFormat: '',
157
+ showMissingDataLabel: true,
158
+ showSuppressedSymbol: true,
159
+ collapsible: true
250
160
  },
251
- radius: {
252
- min: 2,
253
- max: 10,
254
- scalingColumn: ''
161
+ orientation: 'vertical',
162
+ color: 'qualitative-bold',
163
+ columns: {
164
+ // start with a blank list
255
165
  },
256
- regression: {
257
- lower: 0,
258
- upper: 0,
259
- estimateField: 0
166
+ legend: {
167
+ hide: false,
168
+ behavior: 'isolate',
169
+ axisAlign: true,
170
+ singleRow: true,
171
+ colorCode: '',
172
+ reverseLabelOrder: false,
173
+ description: '',
174
+ dynamicLegend: false,
175
+ dynamicLegendDefaultText: 'Show All',
176
+ dynamicLegendItemLimit: 5,
177
+ dynamicLegendItemLimitMessage: 'Dynamic Legend Item Limit Hit.',
178
+ dynamicLegendChartMessage: 'Select Options from the Legend',
179
+ label: '',
180
+ lineMode: false,
181
+ verticalSorted: false,
182
+ highlightOnHover: false,
183
+ hideSuppressedLabels: false,
184
+ hideSuppressionLink: false,
185
+ seriesHighlight: [],
186
+ style: 'circles',
187
+ subStyle: 'linear blocks',
188
+ groupBy: '',
189
+ shape: 'circle',
190
+ tickRotation: '',
191
+ order: 'dataColumn',
192
+ hideBorder: {
193
+ side: false,
194
+ topBottom: true
195
+ },
196
+ position: 'right',
197
+ orderedValues: [],
198
+ patterns: {},
199
+ patternField: ''
260
200
  },
261
- leftWidthOffset: 0,
262
- rightWidthOffset: 0,
263
- showZeroLine: false,
264
- leftLabel: '',
265
- rightLabel: ''
266
- },
267
- area: {
268
- isStacked: false
269
- },
270
- sankey: {
271
- title: {
272
- defaultColor: 'black'
201
+ smallMultiples: {
202
+ mode: '',
203
+ tileColumn: '',
204
+ tilesPerRowDesktop: 3,
205
+ tilesPerRowMobile: 1,
206
+ tileOrder: [],
207
+ tileOrderType: 'asc',
208
+ tileTitles: {},
209
+ independentYAxis: false,
210
+ colorMode: 'same',
211
+ synchronizedTooltips: true,
212
+ showAreaUnderLine: true
273
213
  },
274
- iterations: 1,
275
- rxValue: 0.9,
276
- overallSize: {
277
- width: 900,
278
- height: 700
214
+ exclusions: {
215
+ active: false,
216
+ keys: []
279
217
  },
280
- margin: {
281
- margin_y: 25,
282
- margin_x: 0
218
+ twoColor: {
219
+ palette: 'monochrome-1',
220
+ isPaletteReversed: false
283
221
  },
284
- nodeSize: {
285
- nodeWidth: 26,
286
- nodeHeight: 40
222
+ labels: false,
223
+ dataFormat: {
224
+ commas: false,
225
+ prefix: '',
226
+ suffix: '',
227
+ abbreviated: false,
228
+ bottomSuffix: '',
229
+ bottomPrefix: '',
230
+ bottomAbbreviated: false
287
231
  },
288
- nodePadding: 55,
289
- nodeFontColor: 'black',
290
- nodeColor: {
291
- default: '#ff8500',
292
- inactive: '#808080'
232
+ filters: [],
233
+ confidenceKeys: {},
234
+ visual: {
235
+ border: true,
236
+ accent: true,
237
+ background: true,
238
+ verticalHoverLine: false,
239
+ horizontalHoverLine: false,
240
+ lineDatapointSymbol: 'none',
241
+ maximumShapeAmount: 7
293
242
  },
294
- linkColor: {
295
- default: '#ffc900',
296
- inactive: '#D3D3D3'
243
+ useLogScale: false,
244
+ filterBehavior: 'Filter Change',
245
+ highlightedBarValues: [],
246
+ series: [],
247
+ tooltips: {
248
+ opacity: 90,
249
+ singleSeries: false,
250
+ dateDisplayFormat: ''
297
251
  },
298
- opacity: {
299
- nodeOpacityDefault: 1.0,
300
- nodeOpacityInactive: 0.1,
301
- LinkOpacityDefault: 1.0,
302
- LinkOpacityInactive: 0.1
252
+ forestPlot: {
253
+ startAt: 0,
254
+ colors: {
255
+ line: '',
256
+ shape: ''
257
+ },
258
+ lineOfNoEffect: {
259
+ show: true
260
+ },
261
+ type: '',
262
+ pooledResult: {
263
+ diamondHeight: 5,
264
+ column: ''
265
+ },
266
+ estimateField: '',
267
+ estimateRadius: '',
268
+ shape: 'square',
269
+ rowHeight: 20,
270
+ description: {
271
+ show: true,
272
+ text: 'description',
273
+ location: 0
274
+ },
275
+ result: {
276
+ show: true,
277
+ text: 'result',
278
+ location: 100
279
+ },
280
+ radius: {
281
+ min: 2,
282
+ max: 10,
283
+ scalingColumn: ''
284
+ },
285
+ regression: {
286
+ lower: 0,
287
+ upper: 0,
288
+ estimateField: 0
289
+ },
290
+ leftWidthOffset: 0,
291
+ rightWidthOffset: 0,
292
+ showZeroLine: false,
293
+ leftLabel: '',
294
+ rightLabel: ''
303
295
  },
304
- storyNodeFontColor: '#006778',
305
- storyNodeText: [],
306
- nodeValueStyle: {
307
- textBefore: '(',
308
- textAfter: ')'
296
+ area: {
297
+ isStacked: false
309
298
  },
310
- data: []
299
+ sankey: {
300
+ title: {
301
+ defaultColor: 'black'
302
+ },
303
+ iterations: 1,
304
+ rxValue: 0.9,
305
+ overallSize: {
306
+ width: 900,
307
+ height: 700
308
+ },
309
+ margin: {
310
+ margin_y: 25,
311
+ margin_x: 0
312
+ },
313
+ nodeSize: {
314
+ nodeWidth: 26,
315
+ nodeHeight: 40
316
+ },
317
+ nodePadding: 55,
318
+ nodeFontColor: 'black',
319
+ nodeColor: {
320
+ default: '#ff8500',
321
+ inactive: '#808080'
322
+ },
323
+ linkColor: {
324
+ default: '#ffc900',
325
+ inactive: '#D3D3D3'
326
+ },
327
+ opacity: {
328
+ nodeOpacityDefault: 1.0,
329
+ nodeOpacityInactive: 0.1,
330
+ LinkOpacityDefault: 1.0,
331
+ LinkOpacityInactive: 0.1
332
+ },
333
+ storyNodeFontColor: '#006778',
334
+ storyNodeText: [],
335
+ nodeValueStyle: {
336
+ textBefore: '(',
337
+ textAfter: ')'
338
+ },
339
+ data: []
340
+ },
341
+ markupVariables: [],
342
+ enableMarkupVariables: false
311
343
  }
312
344
  }
345
+
346
+ export default createInitialState()