@cdc/dashboard 4.25.10 → 4.26.1

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 (86) hide show
  1. package/Dynamic_Data.md +66 -0
  2. package/dist/{cdcdashboard-fce76882.es.js → cdcdashboard-BnB1QM5d.es.js} +6 -13
  3. package/dist/{cdcdashboard-c55ac1ea.es.js → cdcdashboard-D6CG2-Hb.es.js} +5 -12
  4. package/dist/{cdcdashboard-31a33da1.es.js → cdcdashboard-MXgURbdZ.es.js} +6 -13
  5. package/dist/{cdcdashboard-1a1724a1.es.js → cdcdashboard-dgT_1dIT.es.js} +136 -151
  6. package/dist/cdcdashboard.js +84214 -79641
  7. package/examples/api-dashboard-data.json +272 -0
  8. package/examples/api-dashboard-years.json +11 -0
  9. package/examples/api-geographies-data.json +11 -0
  10. package/examples/api-test/categories.json +18 -0
  11. package/examples/api-test/chart-data.json +602 -0
  12. package/examples/api-test/topics.json +47 -0
  13. package/examples/api-test/years.json +22 -0
  14. package/examples/markup-axis-label.json +4167 -0
  15. package/examples/private/big-dashboard.json +39095 -39077
  16. package/examples/private/cat-y.json +1235 -0
  17. package/examples/private/chronic-dash.json +1584 -0
  18. package/examples/private/clade-2.json +430 -0
  19. package/examples/private/diabetes.json +546 -196
  20. package/examples/private/map-issue.json +2260 -0
  21. package/examples/private/markup-footer/mortality-deaths-footnotes-age.csv +3 -0
  22. package/examples/private/mpinc-state-reports.json +2260 -0
  23. package/examples/private/mpox.json +38128 -0
  24. package/examples/private/nwss/rsv.json +1240 -0
  25. package/examples/private/reset.json +32920 -0
  26. package/examples/private/simple-dash.json +490 -0
  27. package/examples/private/test-dash.json +0 -0
  28. package/examples/private/test123.json +491 -0
  29. package/examples/test-api-filter-reset.json +132 -0
  30. package/examples/test-dashboard-simple.json +503 -0
  31. package/index.html +25 -26
  32. package/package.json +11 -11
  33. package/src/CdcDashboardComponent.tsx +35 -10
  34. package/src/DashboardContext.tsx +3 -1
  35. package/src/_stories/Dashboard.DataSetup.stories.tsx +203 -0
  36. package/src/_stories/Dashboard.stories.tsx +402 -1
  37. package/src/_stories/_mock/custom-order-new-values.json +116 -0
  38. package/src/_stories/_mock/filter-cascade.json +3350 -0
  39. package/src/_stories/_mock/gallery-data-bite-dashboard.json +3500 -0
  40. package/src/_stories/_mock/nested-parent-child-filters.json +392 -0
  41. package/src/_stories/_mock/parent-child-filters.json +233 -0
  42. package/src/components/DashboardFilters/DashboardFilters.tsx +54 -31
  43. package/src/components/DashboardFilters/DashboardFiltersEditor/DashboardFiltersEditor.tsx +118 -50
  44. package/src/components/DashboardFilters/DashboardFiltersEditor/components/FilterEditor.tsx +96 -108
  45. package/src/components/DashboardFilters/DashboardFiltersEditor/components/NestedDropDownDashboard.tsx +196 -59
  46. package/src/components/DashboardFilters/DashboardFiltersWrapper.tsx +129 -29
  47. package/src/components/DashboardFilters/_stories/DashboardFilters.stories.tsx +62 -3
  48. package/src/components/DataDesignerModal.tsx +18 -6
  49. package/src/components/Header/Header.tsx +53 -21
  50. package/src/components/Toggle/Toggle.tsx +48 -48
  51. package/src/components/VisualizationRow.tsx +73 -6
  52. package/src/components/VisualizationsPanel/VisualizationsPanel.tsx +2 -3
  53. package/src/components/Widget/Widget.tsx +1 -1
  54. package/src/data/initial-state.js +1 -0
  55. package/src/helpers/addValuesToDashboardFilters.ts +24 -6
  56. package/src/helpers/apiFilterHelpers.ts +26 -2
  57. package/src/helpers/changeFilterActive.ts +67 -65
  58. package/src/helpers/filterData.ts +52 -7
  59. package/src/helpers/filterResetHelpers.ts +102 -0
  60. package/src/helpers/formatConfigBeforeSave.ts +6 -5
  61. package/src/helpers/getUpdateConfig.ts +91 -91
  62. package/src/helpers/getVizConfig.ts +2 -2
  63. package/src/helpers/loadAPIFilters.ts +109 -99
  64. package/src/helpers/tests/filterResetHelpers.test.ts +532 -0
  65. package/src/helpers/tests/updatesChildFilters.test.ts +53 -22
  66. package/src/helpers/updateChildFilters.ts +50 -27
  67. package/src/index.tsx +1 -0
  68. package/src/scss/editor-panel.scss +3 -431
  69. package/src/scss/main.scss +142 -25
  70. package/src/store/errorMessage/errorMessage.reducer.ts +1 -1
  71. package/src/test/CdcDashboard.test.jsx +9 -4
  72. package/src/types/Dashboard.ts +1 -0
  73. package/src/types/DashboardFilters.ts +9 -8
  74. package/src/types/FilterStyles.ts +8 -7
  75. package/src/types/SharedFilter.ts +13 -0
  76. package/LICENSE +0 -201
  77. package/examples/private/DEV-11072.json +0 -7591
  78. package/examples/private/burden_toolkit_mortality_diabetes_attributable_deaths_data.csv +0 -14041
  79. package/examples/private/burden_toolkit_mortality_diabetes_attributable_deaths_per_100000_data.csv +0 -14041
  80. package/examples/private/burden_toolkit_mortality_qaly_data.csv +0 -18721
  81. package/examples/private/burden_toolkit_mortality_yll_data.csv +0 -18721
  82. package/examples/private/pedro.json +0 -1
  83. package/src/helpers/getAutoLoadVisualization.ts +0 -11
  84. package/src/scss/mixins.scss +0 -47
  85. package/src/scss/variables.scss +0 -5
  86. /package/dist/{cdcdashboard-548642e6.es.js → cdcdashboard-Ct2SB0vL.es.js} +0 -0
@@ -0,0 +1,491 @@
1
+ {
2
+ "dashboard": {
3
+ "theme": "theme-blue",
4
+ "sharedFilters": [
5
+ {
6
+ "key": "New Dashboard Filter 1",
7
+ "showDropdown": true,
8
+ "values": [
9
+ "Hispanic or Latino",
10
+ "Non-Hispanic American Indian",
11
+ "Non-Hispanic Asian or Pacific Islander",
12
+ "Non-Hispanic Black",
13
+ "Non-Hispanic White"
14
+ ],
15
+ "type": "datafilter",
16
+ "orderedValues": [
17
+ "Hispanic or Latino",
18
+ "Non-Hispanic American Indian",
19
+ "Non-Hispanic Asian or Pacific Islander",
20
+ "Non-Hispanic Black",
21
+ "Non-Hispanic White"
22
+ ],
23
+ "columnName": "Race",
24
+ "usedBy": [
25
+ "chart1764795728458"
26
+ ],
27
+ "tier": 1
28
+ }
29
+ ]
30
+ },
31
+ "rows": [
32
+ {
33
+ "uuid": "__​undefined__",
34
+ "toggle": "__​undefined__",
35
+ "equalHeight": "__​undefined__",
36
+ "columns": [
37
+ {
38
+ "width": 12,
39
+ "widget": "dashboardFilters1764795713083"
40
+ },
41
+ {},
42
+ {}
43
+ ]
44
+ },
45
+ {
46
+ "columns": [
47
+ {
48
+ "width": 12,
49
+ "widget": "chart1764795728458"
50
+ }
51
+ ]
52
+ }
53
+ ],
54
+ "visualizations": {
55
+ "dashboardFilters1764795713083": {
56
+ "filters": [],
57
+ "filterBehavior": "Filter Change",
58
+ "newViz": true,
59
+ "openModal": true,
60
+ "uid": "dashboardFilters1764795713083",
61
+ "type": "dashboardFilters",
62
+ "sharedFilterIndexes": [
63
+ 0
64
+ ],
65
+ "visualizationType": "dashboardFilters"
66
+ },
67
+ "chart1764795728458": {
68
+ "annotations": [],
69
+ "allowLineToBarGraph": "__​undefined__",
70
+ "type": "chart",
71
+ "debugSvg": false,
72
+ "chartMessage": {
73
+ "noData": "No Data Available"
74
+ },
75
+ "title": "",
76
+ "showTitle": true,
77
+ "showDownloadMediaButton": false,
78
+ "theme": "theme-blue",
79
+ "animate": false,
80
+ "lineDatapointStyle": "hover",
81
+ "lineDatapointColor": "Same as Line",
82
+ "barHasBorder": "true",
83
+ "isLollipopChart": false,
84
+ "lollipopShape": "circle",
85
+ "lollipopColorStyle": "two-tone",
86
+ "visualizationSubType": "regular",
87
+ "barStyle": "",
88
+ "roundingStyle": "standard",
89
+ "tipRounding": "top",
90
+ "isResponsiveTicks": false,
91
+ "general": {
92
+ "annotationDropdownText": "Annotations",
93
+ "showMissingDataLabel": true,
94
+ "showSuppressedSymbol": true,
95
+ "showZeroValueData": true,
96
+ "hideNullValue": true,
97
+ "palette": {
98
+ "isReversed": true,
99
+ "version": "2.0",
100
+ "name": "sequential_bluereverse"
101
+ }
102
+ },
103
+ "padding": {
104
+ "left": 5,
105
+ "right": 5
106
+ },
107
+ "preliminaryData": [],
108
+ "yAxis": {
109
+ "hideAxis": false,
110
+ "displayNumbersOnBar": false,
111
+ "hideLabel": false,
112
+ "hideTicks": false,
113
+ "size": 50,
114
+ "gridLines": false,
115
+ "enablePadding": false,
116
+ "min": "",
117
+ "max": "",
118
+ "labelColor": "#1c1d1f",
119
+ "tickLabelColor": "#1c1d1f",
120
+ "tickColor": "#1c1d1f",
121
+ "rightHideAxis": false,
122
+ "rightAxisSize": 0,
123
+ "rightLabel": "",
124
+ "rightLabelOffsetSize": 0,
125
+ "rightAxisLabelColor": "#1c1d1f",
126
+ "rightAxisTickLabelColor": "#1c1d1f",
127
+ "rightAxisTickColor": "#1c1d1f",
128
+ "numTicks": "",
129
+ "axisPadding": 0,
130
+ "scalePadding": 10,
131
+ "tickRotation": 0,
132
+ "anchors": [],
133
+ "shoMissingDataLabel": true,
134
+ "showMissingDataLine": true,
135
+ "categories": []
136
+ },
137
+ "boxplot": {
138
+ "plots": [],
139
+ "borders": "true",
140
+ "plotOutlierValues": false,
141
+ "plotNonOutlierValues": true,
142
+ "labels": {
143
+ "q1": "Lower Quartile",
144
+ "q2": "q2",
145
+ "q3": "Upper Quartile",
146
+ "q4": "q4",
147
+ "minimum": "Minimum",
148
+ "maximum": "Maximum",
149
+ "mean": "Mean",
150
+ "median": "Median",
151
+ "sd": "Standard Deviation",
152
+ "iqr": "Interquartile Range",
153
+ "count": "Count",
154
+ "outliers": "Outliers",
155
+ "values": "Values",
156
+ "lowerBounds": "Lower Bounds",
157
+ "upperBounds": "Upper Bounds"
158
+ }
159
+ },
160
+ "topAxis": {
161
+ "hasLine": false
162
+ },
163
+ "isLegendValue": false,
164
+ "barThickness": 0.35,
165
+ "barHeight": 25,
166
+ "barSpace": 15,
167
+ "heights": {
168
+ "vertical": 300,
169
+ "horizontal": 750
170
+ },
171
+ "xAxis": {
172
+ "sortDates": false,
173
+ "anchors": [],
174
+ "type": "categorical",
175
+ "showTargetLabel": true,
176
+ "targetLabel": "Target",
177
+ "hideAxis": false,
178
+ "hideLabel": false,
179
+ "hideTicks": false,
180
+ "size": 75,
181
+ "tickRotation": 0,
182
+ "min": "",
183
+ "max": "",
184
+ "labelColor": "#1c1d1f",
185
+ "tickLabelColor": "#1c1d1f",
186
+ "tickColor": "#1c1d1f",
187
+ "numTicks": "",
188
+ "labelOffset": 0,
189
+ "axisPadding": 200,
190
+ "target": 0,
191
+ "maxTickRotation": 0,
192
+ "padding": 5,
193
+ "showYearsOnce": false,
194
+ "sortByRecentDate": false,
195
+ "brushActive": false,
196
+ "dataKey": "Race",
197
+ "axisBBox": "__​undefined__",
198
+ "tickWidthMax": 274
199
+ },
200
+ "table": {
201
+ "label": "Data Table",
202
+ "expanded": true,
203
+ "limitHeight": false,
204
+ "height": "",
205
+ "caption": "",
206
+ "showDownloadUrl": false,
207
+ "showDataTableLink": true,
208
+ "showDownloadLinkBelow": true,
209
+ "indexLabel": "",
210
+ "download": false,
211
+ "showVertical": true,
212
+ "dateDisplayFormat": "",
213
+ "showMissingDataLabel": true,
214
+ "showSuppressedSymbol": true,
215
+ "collapsible": true,
216
+ "show": false
217
+ },
218
+ "orientation": "vertical",
219
+ "color": "qualitative-bold",
220
+ "columns": {},
221
+ "legend": {
222
+ "hide": false,
223
+ "behavior": "isolate",
224
+ "axisAlign": true,
225
+ "singleRow": true,
226
+ "colorCode": "",
227
+ "reverseLabelOrder": false,
228
+ "description": "",
229
+ "dynamicLegend": false,
230
+ "dynamicLegendDefaultText": "Show All",
231
+ "dynamicLegendItemLimit": 5,
232
+ "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
233
+ "dynamicLegendChartMessage": "Select Options from the Legend",
234
+ "label": "",
235
+ "lineMode": false,
236
+ "verticalSorted": false,
237
+ "highlightOnHover": false,
238
+ "hideSuppressedLabels": false,
239
+ "hideSuppressionLink": false,
240
+ "seriesHighlight": [],
241
+ "style": "circles",
242
+ "subStyle": "linear blocks",
243
+ "groupBy": "",
244
+ "shape": "circle",
245
+ "tickRotation": "",
246
+ "order": "dataColumn",
247
+ "hideBorder": {
248
+ "side": false,
249
+ "topBottom": true
250
+ },
251
+ "position": "right",
252
+ "orderedValues": [],
253
+ "patterns": {},
254
+ "patternField": ""
255
+ },
256
+ "smallMultiples": {
257
+ "mode": "",
258
+ "tileColumn": "",
259
+ "tilesPerRowDesktop": 3,
260
+ "tilesPerRowMobile": 1,
261
+ "tileOrder": [],
262
+ "tileOrderType": "asc",
263
+ "tileTitles": {},
264
+ "independentYAxis": false,
265
+ "colorMode": "same",
266
+ "synchronizedTooltips": true,
267
+ "showAreaUnderLine": true
268
+ },
269
+ "exclusions": {
270
+ "active": false,
271
+ "keys": []
272
+ },
273
+ "twoColor": {
274
+ "palette": "monochrome-1",
275
+ "isPaletteReversed": false
276
+ },
277
+ "labels": false,
278
+ "dataFormat": {
279
+ "commas": false,
280
+ "prefix": "",
281
+ "suffix": "",
282
+ "abbreviated": false,
283
+ "bottomSuffix": "",
284
+ "bottomPrefix": "",
285
+ "bottomAbbreviated": false
286
+ },
287
+ "filters": [],
288
+ "confidenceKeys": {},
289
+ "visual": {
290
+ "border": true,
291
+ "accent": true,
292
+ "background": true,
293
+ "verticalHoverLine": false,
294
+ "horizontalHoverLine": false,
295
+ "lineDatapointSymbol": "none",
296
+ "maximumShapeAmount": 7
297
+ },
298
+ "useLogScale": false,
299
+ "filterBehavior": "Filter Change",
300
+ "highlightedBarValues": [],
301
+ "series": [
302
+ {
303
+ "dataKey": "Age-adjusted rate",
304
+ "type": "Bar",
305
+ "axis": "Left",
306
+ "tooltip": true
307
+ }
308
+ ],
309
+ "tooltips": {
310
+ "opacity": 90,
311
+ "singleSeries": false,
312
+ "dateDisplayFormat": ""
313
+ },
314
+ "forestPlot": {
315
+ "startAt": 0,
316
+ "colors": {
317
+ "line": "",
318
+ "shape": ""
319
+ },
320
+ "lineOfNoEffect": {
321
+ "show": true
322
+ },
323
+ "type": "",
324
+ "pooledResult": {
325
+ "diamondHeight": 5,
326
+ "column": ""
327
+ },
328
+ "estimateField": "",
329
+ "estimateRadius": "",
330
+ "shape": "square",
331
+ "rowHeight": 20,
332
+ "description": {
333
+ "show": true,
334
+ "text": "description",
335
+ "location": 0
336
+ },
337
+ "result": {
338
+ "show": true,
339
+ "text": "result",
340
+ "location": 100
341
+ },
342
+ "radius": {
343
+ "min": 2,
344
+ "max": 10,
345
+ "scalingColumn": ""
346
+ },
347
+ "regression": {
348
+ "lower": 0,
349
+ "upper": 0,
350
+ "estimateField": 0
351
+ },
352
+ "leftWidthOffset": 0,
353
+ "rightWidthOffset": 0,
354
+ "showZeroLine": false,
355
+ "leftLabel": "",
356
+ "rightLabel": ""
357
+ },
358
+ "area": {
359
+ "isStacked": false
360
+ },
361
+ "sankey": {
362
+ "title": {
363
+ "defaultColor": "black"
364
+ },
365
+ "iterations": 1,
366
+ "rxValue": 0.9,
367
+ "overallSize": {
368
+ "width": 900,
369
+ "height": 700
370
+ },
371
+ "margin": {
372
+ "margin_y": 25,
373
+ "margin_x": 0
374
+ },
375
+ "nodeSize": {
376
+ "nodeWidth": 26,
377
+ "nodeHeight": 40
378
+ },
379
+ "nodePadding": 55,
380
+ "nodeFontColor": "black",
381
+ "nodeColor": {
382
+ "default": "#ff8500",
383
+ "inactive": "#808080"
384
+ },
385
+ "linkColor": {
386
+ "default": "#ffc900",
387
+ "inactive": "#D3D3D3"
388
+ },
389
+ "opacity": {
390
+ "nodeOpacityDefault": 1,
391
+ "nodeOpacityInactive": 0.1,
392
+ "LinkOpacityDefault": 1,
393
+ "LinkOpacityInactive": 0.1
394
+ },
395
+ "storyNodeFontColor": "#006778",
396
+ "storyNodeText": [],
397
+ "nodeValueStyle": {
398
+ "textBefore": "(",
399
+ "textAfter": ")"
400
+ },
401
+ "data": []
402
+ },
403
+ "markupVariables": [],
404
+ "enableMarkupVariables": false,
405
+ "openModal": true,
406
+ "uid": "chart1764795728458",
407
+ "visualizationType": "Bar",
408
+ "dataDescription": {
409
+ "horizontal": false,
410
+ "series": false
411
+ },
412
+ "dataKey": "valid-data-chart.csv",
413
+ "dynamicMarginTop": 0
414
+ }
415
+ },
416
+ "table": {
417
+ "label": "Data Table",
418
+ "show": true,
419
+ "showDownloadUrl": false,
420
+ "showDownloadLinkBelow": true,
421
+ "showVertical": true
422
+ },
423
+ "newViz": true,
424
+ "errors": [],
425
+ "currentViewport": "lg",
426
+ "id": 15,
427
+ "category": "General",
428
+ "label": "Dashboard",
429
+ "type": "dashboard",
430
+ "subType": null,
431
+ "orientation": null,
432
+ "icon": {
433
+ "key": null,
434
+ "ref": null,
435
+ "props": {},
436
+ "_owner": null,
437
+ "_store": {}
438
+ },
439
+ "content": "Present multiple data visualizations with shared filter controls.",
440
+ "visualizationType": null,
441
+ "activeVizButtonID": 15,
442
+ "runtime": {},
443
+ "version": "4.25.11",
444
+ "migrations": {
445
+ "addColorMigration": true
446
+ },
447
+ "general": {
448
+ "palette": {
449
+ "version": "1.0",
450
+ "backups": [
451
+ {
452
+ "name": "__​undefined__",
453
+ "version": "1.0",
454
+ "isReversed": "__​undefined__"
455
+ }
456
+ ]
457
+ }
458
+ },
459
+ "uuid": 1764795714161,
460
+ "datasets": {
461
+ "valid-data-chart.csv": {
462
+ "data": [
463
+ {
464
+ "Race": "Hispanic or Latino",
465
+ "Age-adjusted rate": "644.2"
466
+ },
467
+ {
468
+ "Race": "Non-Hispanic American Indian",
469
+ "Age-adjusted rate": "636.1"
470
+ },
471
+ {
472
+ "Race": "Non-Hispanic Black",
473
+ "Age-adjusted rate": "563.7"
474
+ },
475
+ {
476
+ "Race": "Non-Hispanic Asian or Pacific Islander",
477
+ "Age-adjusted rate": "202.5"
478
+ },
479
+ {
480
+ "Race": "Non-Hispanic White",
481
+ "Age-adjusted rate": "183.6"
482
+ }
483
+ ],
484
+ "dataFileSize": 178,
485
+ "dataFileName": "valid-data-chart.csv",
486
+ "dataFileSourceType": "file",
487
+ "dataFileFormat": "CSV",
488
+ "preview": true
489
+ }
490
+ }
491
+ }
@@ -0,0 +1,132 @@
1
+ {
2
+ "dashboard": {
3
+ "theme": "theme-blue",
4
+ "sharedFilters": [
5
+ {
6
+ "key": "Category",
7
+ "type": "urlfilter",
8
+ "columnName": "category",
9
+ "apiFilter": {
10
+ "apiEndpoint": "http://localhost:8080/examples/api-test/categories.json",
11
+ "valueSelector": "category",
12
+ "textSelector": "category"
13
+ },
14
+ "queryParameter": "category",
15
+ "resetLabel": "- Select Category -",
16
+ "showDropdown": true,
17
+ "filterStyle": "dropdown",
18
+ "usedBy": ["chart1"]
19
+ },
20
+ {
21
+ "key": "Topic",
22
+ "type": "urlfilter",
23
+ "columnName": "topic",
24
+ "apiFilter": {
25
+ "apiEndpoint": "http://localhost:8080/examples/api-test/topics.json",
26
+ "valueSelector": "topic",
27
+ "textSelector": "topic"
28
+ },
29
+ "queryParameter": "topic",
30
+ "resetLabel": "- Select Topic -",
31
+ "showDropdown": true,
32
+ "parents": [
33
+ "Category"
34
+ ],
35
+ "filterStyle": "dropdown",
36
+ "usedBy": ["chart1"]
37
+ },
38
+ {
39
+ "key": "Year",
40
+ "type": "urlfilter",
41
+ "columnName": "year",
42
+ "apiFilter": {
43
+ "apiEndpoint": "http://localhost:8080/examples/api-test/years.json",
44
+ "valueSelector": "year",
45
+ "textSelector": "year"
46
+ },
47
+ "queryParameter": "year",
48
+ "resetLabel": "- Select -",
49
+ "showDropdown": true,
50
+ "parents": [
51
+ "Category",
52
+ "Topic"
53
+ ],
54
+ "filterStyle": "dropdown",
55
+ "usedBy": ["chart1"]
56
+ }
57
+ ]
58
+ },
59
+ "rows": [
60
+ [
61
+ {
62
+ "width": 12,
63
+ "widget": "filters"
64
+ }
65
+ ],
66
+ [
67
+ {
68
+ "width": 12,
69
+ "widget": "header"
70
+ }
71
+ ],
72
+ [
73
+ {
74
+ "width": 12,
75
+ "widget": "chart1"
76
+ }
77
+ ]
78
+ ],
79
+ "visualizations": {
80
+ "filters": {
81
+ "type": "dashboardFilters",
82
+ "visualizationType": "dashboardFilters",
83
+ "sharedFilterIndexes": [
84
+ 0,
85
+ 1,
86
+ 2
87
+ ],
88
+ "filterBehavior": "Apply Button",
89
+ "applyFiltersButtonText": "Apply Filters"
90
+ },
91
+ "header": {
92
+ "type": "markup-include",
93
+ "title": "Test API Filter Reset",
94
+ "contentEditor": {
95
+ "inlineHTML": "<h2>API Filter Reset Test Dashboard</h2><p>This dashboard tests the 'Clear Filters' button functionality with API filters.</p><ul><li><strong>Category</strong>: Has resetLabel = '- Select Category -'</li><li><strong>Topic</strong>: Has resetLabel = '- Select Topic -' (depends on Category)</li><li><strong>Year</strong>: Has defaultValue = '2023' (depends on Category and Topic)</li></ul><h3>Testing Instructions:</h3><ol><li>Select values for all three filters</li><li>Click 'Apply Filters'</li><li>Click 'Clear Filters'</li><li>Expected behavior:<ul><li>Category and Topic should reset to '- Select Category -' and '- Select Topic -'</li><li>Year should reset to '2023' (its defaultValue)</li></ul></li></ol>",
96
+ "useInlineHTML": true
97
+ },
98
+ "theme": "theme-blue"
99
+ },
100
+ "chart1": {
101
+ "type": "chart",
102
+ "title": "Sample Chart",
103
+ "showTitle": true,
104
+ "theme": "theme-blue",
105
+ "visualizationType": "Line",
106
+ "dataKey": "chartData",
107
+ "xAxis": {
108
+ "dataKey": "state",
109
+ "type": "categorical"
110
+ },
111
+ "series": [
112
+ {
113
+ "dataKey": "value",
114
+ "type": "Line"
115
+ }
116
+ ],
117
+ "general": {
118
+ "showDownloadButton": false
119
+ },
120
+ "table": {
121
+ "showTableButton": false
122
+ }
123
+ }
124
+ },
125
+ "datasets": {
126
+ "chartData": {
127
+ "dataUrl": "http://localhost:8080/examples/api-test/chart-data.json"
128
+ }
129
+ },
130
+ "filterBehavior": "Apply Button",
131
+ "type": "dashboard"
132
+ }