@cdc/chart 4.26.1 → 4.26.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.
- package/CLAUDE.local.md +79 -0
- package/LICENSE +201 -0
- package/dist/{cdcchart-dgT_1dIT.es.js → cdcchart-DQ00cQCm.es.js} +1 -20
- package/dist/cdcchart.js +54742 -49796
- package/examples/data/data-with-metadata.json +10 -0
- package/examples/default.json +378 -0
- package/examples/feature/__data__/horizon-chart-data.json +373 -0
- package/examples/feature/annotations/index.json +3 -6
- package/examples/feature/horizon/horizon-chart.json +395 -0
- package/examples/feature/pie/planet-pie-example-config.json +2 -1
- package/examples/line-chart-states.json +1085 -0
- package/examples/metadata-variables.json +58 -0
- package/examples/private/123.json +694 -0
- package/examples/private/anchor-issue.json +4094 -0
- package/examples/private/backwards-slider.json +10430 -0
- package/examples/private/georgia.csv +160 -0
- package/examples/private/timeline-data.json +1 -0
- package/examples/private/timeline.json +389 -0
- package/examples/radar-chart-simple.json +133 -0
- package/examples/radar-chart.json +148 -0
- package/index.html +1 -31
- package/package.json +57 -59
- package/src/CdcChart.tsx +8 -4
- package/src/CdcChartComponent.tsx +398 -284
- package/src/_stories/Chart.Anchors.stories.tsx +10 -0
- package/src/_stories/Chart.BoxPlot.stories.tsx +7 -0
- package/src/_stories/Chart.CI.stories.tsx +13 -0
- package/src/_stories/Chart.Combo.stories.tsx +17 -0
- package/src/_stories/Chart.CustomColors.stories.tsx +78 -0
- package/src/_stories/Chart.Defaults.stories.tsx +95 -0
- package/src/_stories/Chart.DynamicSeries.stories.tsx +19 -0
- package/src/_stories/Chart.Filters.stories.tsx +4 -0
- package/src/_stories/Chart.Forecast.stories.tsx +4 -0
- package/src/_stories/Chart.HTMLInDataTable.stories.tsx +22 -0
- package/src/_stories/Chart.Legend.Gradient.stories.tsx +28 -0
- package/src/_stories/Chart.Patterns.stories.tsx +4 -0
- package/src/_stories/Chart.PreserveDecimals.stories.tsx +25 -0
- package/src/_stories/Chart.Regions.Categorical.stories.tsx +13 -0
- package/src/_stories/Chart.Regions.DateScale.stories.tsx +19 -0
- package/src/_stories/Chart.Regions.DateTimeScale.stories.tsx +25 -10
- package/src/_stories/Chart.ScatterPlot.stories.tsx +4 -0
- package/src/_stories/Chart.SmallMultiples.stories.tsx +16 -0
- package/src/_stories/Chart.SmallestLeftAxisMax.stories.tsx +64 -0
- package/src/_stories/Chart.stories.tsx +72 -1
- package/src/_stories/Chart.tooltip.stories.tsx +7 -0
- package/src/_stories/ChartAnnotation.stories.tsx +10 -0
- package/src/_stories/ChartAxisLabels.stories.tsx +4 -0
- package/src/_stories/ChartAxisTitles.stories.tsx +10 -0
- package/src/_stories/ChartBar.Editor.stories.tsx +97 -38
- package/src/_stories/ChartBrush.Editor.stories.tsx +11 -25
- package/src/_stories/ChartBrush.Matrix.Continuous.stories.tsx +41 -0
- package/src/_stories/ChartBrush.Matrix.Date.stories.tsx +114 -0
- package/src/_stories/ChartBrush.Matrix.DateTime.stories.tsx +78 -0
- package/src/_stories/ChartBrush.stories.tsx +7 -0
- package/src/_stories/ChartEditor.Editor.stories.tsx +1 -1
- package/src/_stories/ChartEditor.stories.tsx +7 -0
- package/src/_stories/ChartLine.QuadrantAngles.stories.tsx +89 -0
- package/src/_stories/ChartLine.Suppression.stories.tsx +7 -0
- package/src/_stories/ChartLine.Symbols.stories.tsx +4 -0
- package/src/_stories/ChartPrefixSuffix.stories.tsx +46 -1
- package/src/_stories/TechAdoptionWithLinks.stories.tsx +7 -0
- package/src/_stories/_mock/brush_continuous.json +86 -0
- package/src/_stories/_mock/brush_date_large.json +176 -0
- package/src/_stories/_mock/line_chart_angle_near_zero_fall.json +195 -0
- package/src/_stories/_mock/line_chart_angle_near_zero_rise.json +195 -0
- package/src/_stories/_mock/line_chart_angle_q1_steep_upward.json +195 -0
- package/src/_stories/_mock/line_chart_angle_q2_gentle_downward.json +195 -0
- package/src/_stories/_mock/line_chart_angle_q3_steep_downward.json +195 -0
- package/src/_stories/_mock/line_chart_angle_q4_gentle_upward.json +195 -0
- package/src/_stories/_mock/line_chart_quadrant_angles.json +264 -0
- package/src/_stories/_mock/paired-bar-abbr.json +421 -0
- package/src/_stories/_mock/pie_custom_colors.json +268 -0
- package/src/_stories/_mock/smallest_left_axis_max.json +104 -0
- package/src/components/Annotations/components/AnnotationDraggable.styles.css +14 -20
- package/src/components/Annotations/components/AnnotationDraggable.tsx +240 -116
- package/src/components/Annotations/components/AnnotationDropdown.styles.css +1 -2
- package/src/components/Annotations/components/AnnotationDropdown.tsx +8 -12
- package/src/components/Annotations/components/AnnotationList.styles.css +12 -18
- package/src/components/Annotations/components/AnnotationList.tsx +5 -4
- package/src/components/Annotations/components/findNearestDatum.ts +75 -85
- package/src/components/Annotations/helpers/getVisibleAnnotations.ts +38 -0
- package/src/components/Axis/BottomAxis.tsx +277 -0
- package/src/components/Axis/LeftAxis.tsx +404 -0
- package/src/components/Axis/LeftAxisGridlines.tsx +77 -0
- package/src/components/Axis/PairedBarAxis.tsx +192 -0
- package/src/components/Axis/README.md +94 -0
- package/src/components/Axis/RightAxis.tsx +108 -0
- package/src/components/Axis/axis.constants.ts +21 -0
- package/src/components/Axis/index.ts +7 -0
- package/src/components/BarChart/components/BarChart.Horizontal.tsx +12 -28
- package/src/components/BarChart/components/BarChart.StackedHorizontal.tsx +12 -30
- package/src/components/BarChart/components/BarChart.StackedVertical.tsx +12 -31
- package/src/components/BarChart/components/BarChart.Vertical.tsx +12 -28
- package/src/components/BarChart/components/BarChart.tsx +7 -1
- package/src/components/BarChart/helpers/getPatternUrl.ts +94 -0
- package/src/components/BarChart/helpers/tests/getPatternUrl.test.ts +134 -0
- package/src/components/BarChart/helpers/useBarChart.ts +3 -0
- package/src/components/Brush/BrushSelector.tsx +155 -22
- package/src/components/Brush/MiniChartPreview.tsx +133 -21
- package/src/components/EditorPanel/EditorPanel.tsx +81 -54
- package/src/components/EditorPanel/components/Panels/Panel.Annotate.tsx +67 -29
- package/src/components/EditorPanel/components/Panels/Panel.ForestPlotSettings.tsx +0 -78
- package/src/components/EditorPanel/components/Panels/Panel.General.tsx +120 -2
- package/src/components/EditorPanel/components/Panels/Panel.PatternSettings.tsx +25 -43
- package/src/components/EditorPanel/components/Panels/Panel.Radar.tsx +353 -0
- package/src/components/EditorPanel/components/Panels/Panel.Series.tsx +83 -3
- package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +66 -43
- package/src/components/EditorPanel/components/Panels/index.tsx +2 -0
- package/src/components/EditorPanel/editor-panel.scss +1 -1
- package/src/components/EditorPanel/useEditorPermissions.ts +55 -26
- package/src/components/ForestPlot/ForestPlot.tsx +26 -22
- package/src/components/HorizonChart/HorizonChart.tsx +131 -0
- package/src/components/HorizonChart/components/HorizonBand.tsx +160 -0
- package/src/components/HorizonChart/helpers/calculateHorizonBands.ts +27 -0
- package/src/components/HorizonChart/helpers/getHorizonLayerColors.ts +40 -0
- package/src/components/HorizonChart/index.tsx +3 -0
- package/src/components/Legend/Legend.Component.tsx +52 -4
- package/src/components/Legend/Legend.tsx +1 -1
- package/src/components/Legend/LegendGroup/LegendGroup.styles.css +4 -4
- package/src/components/Legend/LegendValueRange.tsx +77 -0
- package/src/components/Legend/helpers/createFormatLabels.tsx +16 -2
- package/src/components/Legend/helpers/generateValueRanges.ts +92 -0
- package/src/components/LineChart/helpers/README.md +292 -0
- package/src/components/LineChart/helpers/labelPositioning.test.ts +245 -0
- package/src/components/LineChart/helpers/labelPositioning.ts +304 -0
- package/src/components/LineChart/index.tsx +44 -8
- package/src/components/LinearChart/README.md +109 -0
- package/src/components/LinearChart/VisualizationRenderer.tsx +267 -0
- package/src/components/LinearChart/linearChart.constants.ts +84 -0
- package/src/components/LinearChart/tests/LinearChart.test.tsx +278 -0
- package/src/components/LinearChart/tests/mockConfigContext.ts +131 -0
- package/src/components/LinearChart/utils/tickFormatting.ts +146 -0
- package/src/components/LinearChart.tsx +268 -1057
- package/src/components/PieChart/PieChart.tsx +20 -5
- package/src/components/RadarChart/RadarAxis.tsx +78 -0
- package/src/components/RadarChart/RadarChart.tsx +298 -0
- package/src/components/RadarChart/RadarGrid.tsx +64 -0
- package/src/components/RadarChart/RadarPolygon.tsx +91 -0
- package/src/components/RadarChart/helpers.ts +83 -0
- package/src/components/RadarChart/index.tsx +3 -0
- package/src/components/Regions/components/Regions.tsx +6 -6
- package/src/components/Sankey/components/Sankey.tsx +3 -3
- package/src/components/Sankey/sankey.scss +1 -1
- package/src/components/SmallMultiples/SmallMultiples.css +5 -5
- package/src/components/Sparkline/index.scss +4 -2
- package/src/components/WarmingStripes/WarmingStripes.tsx +95 -25
- package/src/components/WarmingStripes/WarmingStripesGradientLegend.css +8 -8
- package/src/data/initial-state.js +37 -15
- package/src/data/legacy-defaults.ts +18 -0
- package/src/helpers/abbreviateNumber.ts +24 -17
- package/src/helpers/getChartPatternId.ts +17 -0
- package/src/helpers/getExcludedData.ts +4 -0
- package/src/helpers/getMinMax.ts +16 -2
- package/src/helpers/handleChartAriaLabels.ts +19 -19
- package/src/helpers/handleLineType.ts +22 -18
- package/src/helpers/seriesColumnSettings.ts +114 -0
- package/src/helpers/tests/countNumOfTicks.test.ts +77 -0
- package/src/helpers/tests/seriesColumnSettings.test.ts +84 -0
- package/src/hooks/useProgrammaticTooltip.ts +23 -2
- package/src/hooks/useRightAxis.ts +14 -0
- package/src/hooks/useScales.ts +99 -56
- package/src/hooks/useTooltip.tsx +23 -3
- package/src/scss/main.scss +157 -79
- package/src/selectors/README.md +68 -0
- package/src/store/chart.reducer.ts +2 -0
- package/src/test/CdcChart.test.jsx +2 -2
- package/src/types/ChartConfig.ts +22 -0
- package/src/types/ChartContext.ts +1 -0
- package/src/types/Horizon.ts +64 -0
- package/tests/fixtures/chart-config-with-metadata.json +29 -0
- package/tests/fixtures/data-with-metadata.json +10 -0
- package/preview.html +0 -1616
- package/src/components/Annotations/components/helpers/index.tsx +0 -46
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Near Zero Fall Angle",
|
|
4
|
+
"theme": "theme-blue",
|
|
5
|
+
"animate": false,
|
|
6
|
+
"fontSize": "medium",
|
|
7
|
+
"lineDatapointStyle": "always show",
|
|
8
|
+
"visualizationSubType": "regular",
|
|
9
|
+
"padding": {
|
|
10
|
+
"left": 5,
|
|
11
|
+
"right": 5
|
|
12
|
+
},
|
|
13
|
+
"yAxis": {
|
|
14
|
+
"hideAxis": false,
|
|
15
|
+
"displayNumbersOnBar": false,
|
|
16
|
+
"hideLabel": false,
|
|
17
|
+
"hideTicks": false,
|
|
18
|
+
"size": "68",
|
|
19
|
+
"gridLines": true,
|
|
20
|
+
"enablePadding": false,
|
|
21
|
+
"min": "0",
|
|
22
|
+
"max": "120",
|
|
23
|
+
"labelColor": "#333",
|
|
24
|
+
"tickLabelColor": "#333",
|
|
25
|
+
"tickColor": "#333",
|
|
26
|
+
"numTicks": "",
|
|
27
|
+
"axisPadding": 0,
|
|
28
|
+
"scalePadding": 10,
|
|
29
|
+
"tickRotation": 0,
|
|
30
|
+
"label": "Value"
|
|
31
|
+
},
|
|
32
|
+
"topAxis": {
|
|
33
|
+
"hasLine": false
|
|
34
|
+
},
|
|
35
|
+
"height": "450",
|
|
36
|
+
"xAxis": {
|
|
37
|
+
"sortDates": false,
|
|
38
|
+
"type": "categorical",
|
|
39
|
+
"hideAxis": false,
|
|
40
|
+
"hideLabel": false,
|
|
41
|
+
"hideTicks": false,
|
|
42
|
+
"size": "78",
|
|
43
|
+
"tickRotation": "0",
|
|
44
|
+
"min": "",
|
|
45
|
+
"max": "",
|
|
46
|
+
"labelColor": "#333",
|
|
47
|
+
"tickLabelColor": "#333",
|
|
48
|
+
"tickColor": "#333",
|
|
49
|
+
"numTicks": "",
|
|
50
|
+
"labelOffset": 0,
|
|
51
|
+
"axisPadding": 0,
|
|
52
|
+
"padding": 5,
|
|
53
|
+
"dataKey": "Category",
|
|
54
|
+
"label": "Data Points"
|
|
55
|
+
},
|
|
56
|
+
"table": {
|
|
57
|
+
"label": "Data Table",
|
|
58
|
+
"expanded": false,
|
|
59
|
+
"limitHeight": false,
|
|
60
|
+
"height": "",
|
|
61
|
+
"caption": "Testing near-zero fall angles (close to 180°)",
|
|
62
|
+
"showDownloadUrl": false,
|
|
63
|
+
"showDataTableLink": true,
|
|
64
|
+
"showDownloadLinkBelow": true,
|
|
65
|
+
"download": true,
|
|
66
|
+
"showVertical": true,
|
|
67
|
+
"show": true
|
|
68
|
+
},
|
|
69
|
+
"orientation": "vertical",
|
|
70
|
+
"legend": {
|
|
71
|
+
"hide": false,
|
|
72
|
+
"behavior": "highlight",
|
|
73
|
+
"axisAlign": true,
|
|
74
|
+
"singleRow": false,
|
|
75
|
+
"colorCode": "",
|
|
76
|
+
"reverseLabelOrder": false,
|
|
77
|
+
"description": "Near-zero fall angle line",
|
|
78
|
+
"label": "Series",
|
|
79
|
+
"lineMode": false,
|
|
80
|
+
"verticalSorted": false,
|
|
81
|
+
"highlightOnHover": false,
|
|
82
|
+
"style": "lines",
|
|
83
|
+
"subStyle": "linear blocks",
|
|
84
|
+
"shape": "circle",
|
|
85
|
+
"hideBorder": {
|
|
86
|
+
"side": false,
|
|
87
|
+
"topBottom": true
|
|
88
|
+
},
|
|
89
|
+
"position": "right",
|
|
90
|
+
"hasShape": true
|
|
91
|
+
},
|
|
92
|
+
"exclusions": {
|
|
93
|
+
"active": false,
|
|
94
|
+
"keys": []
|
|
95
|
+
},
|
|
96
|
+
"palette": "qualitative4",
|
|
97
|
+
"isPaletteReversed": false,
|
|
98
|
+
"labels": true,
|
|
99
|
+
"dataFormat": {
|
|
100
|
+
"commas": false,
|
|
101
|
+
"prefix": "",
|
|
102
|
+
"suffix": "",
|
|
103
|
+
"abbreviated": false
|
|
104
|
+
},
|
|
105
|
+
"confidenceKeys": {},
|
|
106
|
+
"visual": {
|
|
107
|
+
"border": true,
|
|
108
|
+
"accent": true,
|
|
109
|
+
"background": true,
|
|
110
|
+
"verticalHoverLine": false,
|
|
111
|
+
"horizontalHoverLine": false,
|
|
112
|
+
"lineDatapointSymbol": "standard"
|
|
113
|
+
},
|
|
114
|
+
"data": [
|
|
115
|
+
{
|
|
116
|
+
"Category": "A",
|
|
117
|
+
"Near Zero Fall": "5"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"Category": "B",
|
|
121
|
+
"Near Zero Fall": "0"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"Category": "C",
|
|
125
|
+
"Near Zero Fall": "80"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"Category": "D",
|
|
129
|
+
"Near Zero Fall": "90"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"Category": "E",
|
|
133
|
+
"Near Zero Fall": "100"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"Category": "F",
|
|
137
|
+
"Near Zero Fall": "10"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"Category": "G",
|
|
141
|
+
"Near Zero Fall": "5"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"Category": "H",
|
|
145
|
+
"Near Zero Fall": "0"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"visualizationType": "Line",
|
|
149
|
+
"series": [
|
|
150
|
+
{
|
|
151
|
+
"dataKey": "Near Zero Fall",
|
|
152
|
+
"type": "Line",
|
|
153
|
+
"axis": "Left",
|
|
154
|
+
"tooltip": true
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"description": "Testing edge case near-zero fall angles (close to 180°) where the line is nearly horizontal with slight downward movement.",
|
|
158
|
+
"annotations": [],
|
|
159
|
+
"debugSvg": false,
|
|
160
|
+
"chartMessage": {
|
|
161
|
+
"noData": "No Data Available"
|
|
162
|
+
},
|
|
163
|
+
"showTitle": true,
|
|
164
|
+
"showDownloadMediaButton": false,
|
|
165
|
+
"lineDatapointColor": "Same as Line",
|
|
166
|
+
"isResponsiveTicks": false,
|
|
167
|
+
"general": {
|
|
168
|
+
"annotationDropdownText": "Annotations",
|
|
169
|
+
"showDownloadButton": false,
|
|
170
|
+
"showMissingDataLabel": true,
|
|
171
|
+
"showSuppressedSymbol": true,
|
|
172
|
+
"showZeroValueData": true,
|
|
173
|
+
"hideNullValue": true,
|
|
174
|
+
"useIntelligentLineChartLabels": true
|
|
175
|
+
},
|
|
176
|
+
"isLegendValue": false,
|
|
177
|
+
"barSpace": 15,
|
|
178
|
+
"heights": {
|
|
179
|
+
"vertical": 450,
|
|
180
|
+
"horizontal": 750
|
|
181
|
+
},
|
|
182
|
+
"columns": {},
|
|
183
|
+
"brush": {
|
|
184
|
+
"height": 45,
|
|
185
|
+
"active": false
|
|
186
|
+
},
|
|
187
|
+
"useLogScale": false,
|
|
188
|
+
"filterBehavior": "Filter Change",
|
|
189
|
+
"tooltips": {
|
|
190
|
+
"opacity": 90,
|
|
191
|
+
"singleSeries": false,
|
|
192
|
+
"dateDisplayFormat": ""
|
|
193
|
+
},
|
|
194
|
+
"version": "4.25.1"
|
|
195
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Near Zero Rise Angle",
|
|
4
|
+
"theme": "theme-blue",
|
|
5
|
+
"animate": false,
|
|
6
|
+
"fontSize": "medium",
|
|
7
|
+
"lineDatapointStyle": "always show",
|
|
8
|
+
"visualizationSubType": "regular",
|
|
9
|
+
"padding": {
|
|
10
|
+
"left": 5,
|
|
11
|
+
"right": 5
|
|
12
|
+
},
|
|
13
|
+
"yAxis": {
|
|
14
|
+
"hideAxis": false,
|
|
15
|
+
"displayNumbersOnBar": false,
|
|
16
|
+
"hideLabel": false,
|
|
17
|
+
"hideTicks": false,
|
|
18
|
+
"size": "68",
|
|
19
|
+
"gridLines": true,
|
|
20
|
+
"enablePadding": false,
|
|
21
|
+
"min": "0",
|
|
22
|
+
"max": "120",
|
|
23
|
+
"labelColor": "#333",
|
|
24
|
+
"tickLabelColor": "#333",
|
|
25
|
+
"tickColor": "#333",
|
|
26
|
+
"numTicks": "",
|
|
27
|
+
"axisPadding": 0,
|
|
28
|
+
"scalePadding": 10,
|
|
29
|
+
"tickRotation": 0,
|
|
30
|
+
"label": "Value"
|
|
31
|
+
},
|
|
32
|
+
"topAxis": {
|
|
33
|
+
"hasLine": false
|
|
34
|
+
},
|
|
35
|
+
"height": "450",
|
|
36
|
+
"xAxis": {
|
|
37
|
+
"sortDates": false,
|
|
38
|
+
"type": "categorical",
|
|
39
|
+
"hideAxis": false,
|
|
40
|
+
"hideLabel": false,
|
|
41
|
+
"hideTicks": false,
|
|
42
|
+
"size": "78",
|
|
43
|
+
"tickRotation": "0",
|
|
44
|
+
"min": "",
|
|
45
|
+
"max": "",
|
|
46
|
+
"labelColor": "#333",
|
|
47
|
+
"tickLabelColor": "#333",
|
|
48
|
+
"tickColor": "#333",
|
|
49
|
+
"numTicks": "",
|
|
50
|
+
"labelOffset": 0,
|
|
51
|
+
"axisPadding": 0,
|
|
52
|
+
"padding": 5,
|
|
53
|
+
"dataKey": "Category",
|
|
54
|
+
"label": "Data Points"
|
|
55
|
+
},
|
|
56
|
+
"table": {
|
|
57
|
+
"label": "Data Table",
|
|
58
|
+
"expanded": false,
|
|
59
|
+
"limitHeight": false,
|
|
60
|
+
"height": "",
|
|
61
|
+
"caption": "Testing near-zero rise angles (close to 0°)",
|
|
62
|
+
"showDownloadUrl": false,
|
|
63
|
+
"showDataTableLink": true,
|
|
64
|
+
"showDownloadLinkBelow": true,
|
|
65
|
+
"download": true,
|
|
66
|
+
"showVertical": true,
|
|
67
|
+
"show": true
|
|
68
|
+
},
|
|
69
|
+
"orientation": "vertical",
|
|
70
|
+
"legend": {
|
|
71
|
+
"hide": false,
|
|
72
|
+
"behavior": "highlight",
|
|
73
|
+
"axisAlign": true,
|
|
74
|
+
"singleRow": false,
|
|
75
|
+
"colorCode": "",
|
|
76
|
+
"reverseLabelOrder": false,
|
|
77
|
+
"description": "Near-zero rise angle line",
|
|
78
|
+
"label": "Series",
|
|
79
|
+
"lineMode": false,
|
|
80
|
+
"verticalSorted": false,
|
|
81
|
+
"highlightOnHover": false,
|
|
82
|
+
"style": "lines",
|
|
83
|
+
"subStyle": "linear blocks",
|
|
84
|
+
"shape": "circle",
|
|
85
|
+
"hideBorder": {
|
|
86
|
+
"side": false,
|
|
87
|
+
"topBottom": true
|
|
88
|
+
},
|
|
89
|
+
"position": "right",
|
|
90
|
+
"hasShape": true
|
|
91
|
+
},
|
|
92
|
+
"exclusions": {
|
|
93
|
+
"active": false,
|
|
94
|
+
"keys": []
|
|
95
|
+
},
|
|
96
|
+
"palette": "qualitative4",
|
|
97
|
+
"isPaletteReversed": false,
|
|
98
|
+
"labels": true,
|
|
99
|
+
"dataFormat": {
|
|
100
|
+
"commas": false,
|
|
101
|
+
"prefix": "",
|
|
102
|
+
"suffix": "",
|
|
103
|
+
"abbreviated": false
|
|
104
|
+
},
|
|
105
|
+
"confidenceKeys": {},
|
|
106
|
+
"visual": {
|
|
107
|
+
"border": true,
|
|
108
|
+
"accent": true,
|
|
109
|
+
"background": true,
|
|
110
|
+
"verticalHoverLine": false,
|
|
111
|
+
"horizontalHoverLine": false,
|
|
112
|
+
"lineDatapointSymbol": "standard"
|
|
113
|
+
},
|
|
114
|
+
"data": [
|
|
115
|
+
{
|
|
116
|
+
"Category": "A",
|
|
117
|
+
"Near Zero Rise": "5"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"Category": "B",
|
|
121
|
+
"Near Zero Rise": "10"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"Category": "C",
|
|
125
|
+
"Near Zero Rise": "80"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"Category": "D",
|
|
129
|
+
"Near Zero Rise": "90"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"Category": "E",
|
|
133
|
+
"Near Zero Rise": "0"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"Category": "F",
|
|
137
|
+
"Near Zero Rise": "5"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"Category": "G",
|
|
141
|
+
"Near Zero Rise": "100"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"Category": "H",
|
|
145
|
+
"Near Zero Rise": "10"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"visualizationType": "Line",
|
|
149
|
+
"series": [
|
|
150
|
+
{
|
|
151
|
+
"dataKey": "Near Zero Rise",
|
|
152
|
+
"type": "Line",
|
|
153
|
+
"axis": "Left",
|
|
154
|
+
"tooltip": true
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"description": "Testing edge case near-zero rise angles (close to 0°/360°) where the line is nearly horizontal with slight upward movement.",
|
|
158
|
+
"annotations": [],
|
|
159
|
+
"debugSvg": false,
|
|
160
|
+
"chartMessage": {
|
|
161
|
+
"noData": "No Data Available"
|
|
162
|
+
},
|
|
163
|
+
"showTitle": true,
|
|
164
|
+
"showDownloadMediaButton": false,
|
|
165
|
+
"lineDatapointColor": "Same as Line",
|
|
166
|
+
"isResponsiveTicks": false,
|
|
167
|
+
"general": {
|
|
168
|
+
"annotationDropdownText": "Annotations",
|
|
169
|
+
"showDownloadButton": false,
|
|
170
|
+
"showMissingDataLabel": true,
|
|
171
|
+
"showSuppressedSymbol": true,
|
|
172
|
+
"showZeroValueData": true,
|
|
173
|
+
"hideNullValue": true,
|
|
174
|
+
"useIntelligentLineChartLabels": true
|
|
175
|
+
},
|
|
176
|
+
"isLegendValue": false,
|
|
177
|
+
"barSpace": 15,
|
|
178
|
+
"heights": {
|
|
179
|
+
"vertical": 450,
|
|
180
|
+
"horizontal": 750
|
|
181
|
+
},
|
|
182
|
+
"columns": {},
|
|
183
|
+
"brush": {
|
|
184
|
+
"height": 45,
|
|
185
|
+
"active": false
|
|
186
|
+
},
|
|
187
|
+
"useLogScale": false,
|
|
188
|
+
"filterBehavior": "Filter Change",
|
|
189
|
+
"tooltips": {
|
|
190
|
+
"opacity": 90,
|
|
191
|
+
"singleSeries": false,
|
|
192
|
+
"dateDisplayFormat": ""
|
|
193
|
+
},
|
|
194
|
+
"version": "4.25.1"
|
|
195
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Quadrant 1: Steep Upward (1°-89°)",
|
|
4
|
+
"theme": "theme-blue",
|
|
5
|
+
"animate": false,
|
|
6
|
+
"fontSize": "medium",
|
|
7
|
+
"lineDatapointStyle": "always show",
|
|
8
|
+
"visualizationSubType": "regular",
|
|
9
|
+
"padding": {
|
|
10
|
+
"left": 5,
|
|
11
|
+
"right": 5
|
|
12
|
+
},
|
|
13
|
+
"yAxis": {
|
|
14
|
+
"hideAxis": false,
|
|
15
|
+
"displayNumbersOnBar": false,
|
|
16
|
+
"hideLabel": false,
|
|
17
|
+
"hideTicks": false,
|
|
18
|
+
"size": "68",
|
|
19
|
+
"gridLines": true,
|
|
20
|
+
"enablePadding": false,
|
|
21
|
+
"min": "0",
|
|
22
|
+
"max": "120",
|
|
23
|
+
"labelColor": "#333",
|
|
24
|
+
"tickLabelColor": "#333",
|
|
25
|
+
"tickColor": "#333",
|
|
26
|
+
"numTicks": "",
|
|
27
|
+
"axisPadding": 0,
|
|
28
|
+
"scalePadding": 10,
|
|
29
|
+
"tickRotation": 0,
|
|
30
|
+
"label": "Value"
|
|
31
|
+
},
|
|
32
|
+
"topAxis": {
|
|
33
|
+
"hasLine": false
|
|
34
|
+
},
|
|
35
|
+
"height": "450",
|
|
36
|
+
"xAxis": {
|
|
37
|
+
"sortDates": false,
|
|
38
|
+
"type": "categorical",
|
|
39
|
+
"hideAxis": false,
|
|
40
|
+
"hideLabel": false,
|
|
41
|
+
"hideTicks": false,
|
|
42
|
+
"size": "78",
|
|
43
|
+
"tickRotation": "0",
|
|
44
|
+
"min": "",
|
|
45
|
+
"max": "",
|
|
46
|
+
"labelColor": "#333",
|
|
47
|
+
"tickLabelColor": "#333",
|
|
48
|
+
"tickColor": "#333",
|
|
49
|
+
"numTicks": "",
|
|
50
|
+
"labelOffset": 0,
|
|
51
|
+
"axisPadding": 0,
|
|
52
|
+
"padding": 5,
|
|
53
|
+
"dataKey": "Category",
|
|
54
|
+
"label": "Data Points"
|
|
55
|
+
},
|
|
56
|
+
"table": {
|
|
57
|
+
"label": "Data Table",
|
|
58
|
+
"expanded": false,
|
|
59
|
+
"limitHeight": false,
|
|
60
|
+
"height": "",
|
|
61
|
+
"caption": "Testing steep upward angles (Q1: 1°-89°)",
|
|
62
|
+
"showDownloadUrl": false,
|
|
63
|
+
"showDataTableLink": true,
|
|
64
|
+
"showDownloadLinkBelow": true,
|
|
65
|
+
"download": true,
|
|
66
|
+
"showVertical": true,
|
|
67
|
+
"show": true
|
|
68
|
+
},
|
|
69
|
+
"orientation": "vertical",
|
|
70
|
+
"legend": {
|
|
71
|
+
"hide": false,
|
|
72
|
+
"behavior": "highlight",
|
|
73
|
+
"axisAlign": true,
|
|
74
|
+
"singleRow": false,
|
|
75
|
+
"colorCode": "",
|
|
76
|
+
"reverseLabelOrder": false,
|
|
77
|
+
"description": "Steep upward angle line",
|
|
78
|
+
"label": "Series",
|
|
79
|
+
"lineMode": false,
|
|
80
|
+
"verticalSorted": false,
|
|
81
|
+
"highlightOnHover": false,
|
|
82
|
+
"style": "lines",
|
|
83
|
+
"subStyle": "linear blocks",
|
|
84
|
+
"shape": "circle",
|
|
85
|
+
"hideBorder": {
|
|
86
|
+
"side": false,
|
|
87
|
+
"topBottom": true
|
|
88
|
+
},
|
|
89
|
+
"position": "right",
|
|
90
|
+
"hasShape": true
|
|
91
|
+
},
|
|
92
|
+
"exclusions": {
|
|
93
|
+
"active": false,
|
|
94
|
+
"keys": []
|
|
95
|
+
},
|
|
96
|
+
"palette": "qualitative4",
|
|
97
|
+
"isPaletteReversed": false,
|
|
98
|
+
"labels": true,
|
|
99
|
+
"dataFormat": {
|
|
100
|
+
"commas": false,
|
|
101
|
+
"prefix": "",
|
|
102
|
+
"suffix": "",
|
|
103
|
+
"abbreviated": false
|
|
104
|
+
},
|
|
105
|
+
"confidenceKeys": {},
|
|
106
|
+
"visual": {
|
|
107
|
+
"border": true,
|
|
108
|
+
"accent": true,
|
|
109
|
+
"background": true,
|
|
110
|
+
"verticalHoverLine": false,
|
|
111
|
+
"horizontalHoverLine": false,
|
|
112
|
+
"lineDatapointSymbol": "standard"
|
|
113
|
+
},
|
|
114
|
+
"data": [
|
|
115
|
+
{
|
|
116
|
+
"Category": "A",
|
|
117
|
+
"Steep Upward (Q1)": "10"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"Category": "B",
|
|
121
|
+
"Steep Upward (Q1)": "90"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"Category": "C",
|
|
125
|
+
"Steep Upward (Q1)": "100"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"Category": "D",
|
|
129
|
+
"Steep Upward (Q1)": "80"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"Category": "E",
|
|
133
|
+
"Steep Upward (Q1)": "20"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"Category": "F",
|
|
137
|
+
"Steep Upward (Q1)": "100"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"Category": "G",
|
|
141
|
+
"Steep Upward (Q1)": "90"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"Category": "H",
|
|
145
|
+
"Steep Upward (Q1)": "10"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"visualizationType": "Line",
|
|
149
|
+
"series": [
|
|
150
|
+
{
|
|
151
|
+
"dataKey": "Steep Upward (Q1)",
|
|
152
|
+
"type": "Line",
|
|
153
|
+
"axis": "Left",
|
|
154
|
+
"tooltip": true
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"description": "Testing Quadrant 1 angles (1°-89°) - steep upward slopes where labels should be positioned to avoid line overlap.",
|
|
158
|
+
"annotations": [],
|
|
159
|
+
"debugSvg": false,
|
|
160
|
+
"chartMessage": {
|
|
161
|
+
"noData": "No Data Available"
|
|
162
|
+
},
|
|
163
|
+
"showTitle": true,
|
|
164
|
+
"showDownloadMediaButton": false,
|
|
165
|
+
"lineDatapointColor": "Same as Line",
|
|
166
|
+
"isResponsiveTicks": false,
|
|
167
|
+
"general": {
|
|
168
|
+
"annotationDropdownText": "Annotations",
|
|
169
|
+
"showDownloadButton": false,
|
|
170
|
+
"showMissingDataLabel": true,
|
|
171
|
+
"showSuppressedSymbol": true,
|
|
172
|
+
"showZeroValueData": true,
|
|
173
|
+
"hideNullValue": true,
|
|
174
|
+
"useIntelligentLineChartLabels": true
|
|
175
|
+
},
|
|
176
|
+
"isLegendValue": false,
|
|
177
|
+
"barSpace": 15,
|
|
178
|
+
"heights": {
|
|
179
|
+
"vertical": 450,
|
|
180
|
+
"horizontal": 750
|
|
181
|
+
},
|
|
182
|
+
"columns": {},
|
|
183
|
+
"brush": {
|
|
184
|
+
"height": 45,
|
|
185
|
+
"active": false
|
|
186
|
+
},
|
|
187
|
+
"useLogScale": false,
|
|
188
|
+
"filterBehavior": "Filter Change",
|
|
189
|
+
"tooltips": {
|
|
190
|
+
"opacity": 90,
|
|
191
|
+
"singleSeries": false,
|
|
192
|
+
"dateDisplayFormat": ""
|
|
193
|
+
},
|
|
194
|
+
"version": "4.25.1"
|
|
195
|
+
}
|