@cloudscape-design/chart-components 1.0.0
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/LICENSE +175 -0
- package/NOTICE +1 -0
- package/README.md +25 -0
- package/cartesian-chart/chart-cartesian-internal.d.ts +10 -0
- package/cartesian-chart/chart-cartesian-internal.js +99 -0
- package/cartesian-chart/chart-cartesian-internal.js.map +1 -0
- package/cartesian-chart/chart-series-cartesian.d.ts +7 -0
- package/cartesian-chart/chart-series-cartesian.js +95 -0
- package/cartesian-chart/chart-series-cartesian.js.map +1 -0
- package/cartesian-chart/index.d.ts +5 -0
- package/cartesian-chart/index.js +133 -0
- package/cartesian-chart/index.js.map +1 -0
- package/cartesian-chart/interfaces.d.ts +166 -0
- package/cartesian-chart/interfaces.js +4 -0
- package/cartesian-chart/interfaces.js.map +1 -0
- package/cartesian-chart/test-classes/styles.css.js +6 -0
- package/cartesian-chart/test-classes/styles.scoped.css +7 -0
- package/cartesian-chart/test-classes/styles.selectors.js +7 -0
- package/core/chart-api/chart-extra-axis-titles.d.ts +10 -0
- package/core/chart-api/chart-extra-axis-titles.js +42 -0
- package/core/chart-api/chart-extra-axis-titles.js.map +1 -0
- package/core/chart-api/chart-extra-context.d.ts +41 -0
- package/core/chart-api/chart-extra-context.js +93 -0
- package/core/chart-api/chart-extra-context.js.map +1 -0
- package/core/chart-api/chart-extra-highlight.d.ts +20 -0
- package/core/chart-api/chart-extra-highlight.js +205 -0
- package/core/chart-api/chart-extra-highlight.js.map +1 -0
- package/core/chart-api/chart-extra-legend.d.ts +27 -0
- package/core/chart-api/chart-extra-legend.js +118 -0
- package/core/chart-api/chart-extra-legend.js.map +1 -0
- package/core/chart-api/chart-extra-navigation.d.ts +84 -0
- package/core/chart-api/chart-extra-navigation.js +470 -0
- package/core/chart-api/chart-extra-navigation.js.map +1 -0
- package/core/chart-api/chart-extra-nodata.d.ts +15 -0
- package/core/chart-api/chart-extra-nodata.js +45 -0
- package/core/chart-api/chart-extra-nodata.js.map +1 -0
- package/core/chart-api/chart-extra-pointer.d.ts +33 -0
- package/core/chart-api/chart-extra-pointer.js +173 -0
- package/core/chart-api/chart-extra-pointer.js.map +1 -0
- package/core/chart-api/chart-extra-tooltip.d.ts +33 -0
- package/core/chart-api/chart-extra-tooltip.js +209 -0
- package/core/chart-api/chart-extra-tooltip.js.map +1 -0
- package/core/chart-api/index.d.ts +75 -0
- package/core/chart-api/index.js +383 -0
- package/core/chart-api/index.js.map +1 -0
- package/core/chart-container.d.ts +20 -0
- package/core/chart-container.js +55 -0
- package/core/chart-container.js.map +1 -0
- package/core/chart-core.d.ts +7 -0
- package/core/chart-core.js +287 -0
- package/core/chart-core.js.map +1 -0
- package/core/components/core-application.d.ts +6 -0
- package/core/components/core-application.js +16 -0
- package/core/components/core-application.js.map +1 -0
- package/core/components/core-filters.d.ts +9 -0
- package/core/components/core-filters.js +22 -0
- package/core/components/core-filters.js.map +1 -0
- package/core/components/core-legend.d.ts +13 -0
- package/core/components/core-legend.js +27 -0
- package/core/components/core-legend.js.map +1 -0
- package/core/components/core-no-data.d.ts +6 -0
- package/core/components/core-no-data.js +48 -0
- package/core/components/core-no-data.js.map +1 -0
- package/core/components/core-slots.d.ts +7 -0
- package/core/components/core-slots.js +11 -0
- package/core/components/core-slots.js.map +1 -0
- package/core/components/core-tooltip.d.ts +7 -0
- package/core/components/core-tooltip.js +183 -0
- package/core/components/core-tooltip.js.map +1 -0
- package/core/components/core-vertical-axis-title.d.ts +5 -0
- package/core/components/core-vertical-axis-title.js +15 -0
- package/core/components/core-vertical-axis-title.js.map +1 -0
- package/core/formatters.d.ts +2 -0
- package/core/formatters.js +113 -0
- package/core/formatters.js.map +1 -0
- package/core/i18n-utils.d.ts +21 -0
- package/core/i18n-utils.js +18 -0
- package/core/i18n-utils.js.map +1 -0
- package/core/interfaces.d.ts +436 -0
- package/core/interfaces.js +4 -0
- package/core/interfaces.js.map +1 -0
- package/core/styles.css.js +25 -0
- package/core/styles.scoped.css +115 -0
- package/core/styles.selectors.js +26 -0
- package/core/test-classes/styles.css.js +33 -0
- package/core/test-classes/styles.scoped.css +34 -0
- package/core/test-classes/styles.selectors.js +34 -0
- package/core/utils.d.ts +45 -0
- package/core/utils.js +262 -0
- package/core/utils.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.js +5 -0
- package/index.js.map +1 -0
- package/internal/api-docs/components/cartesian-chart.js +571 -0
- package/internal/api-docs/components/index.d.ts +3 -0
- package/internal/api-docs/components/index.js +4 -0
- package/internal/api-docs/components/interfaces.d.ts +81 -0
- package/internal/api-docs/components/pie-chart.js +430 -0
- package/internal/api-docs/test-utils-doc/dom.js +4 -0
- package/internal/api-docs/test-utils-doc/selectors.js +4 -0
- package/internal/base-component/get-data-attributes.d.ts +1 -0
- package/internal/base-component/get-data-attributes.js +12 -0
- package/internal/base-component/get-data-attributes.js.map +1 -0
- package/internal/base-component/use-base-component.d.ts +13 -0
- package/internal/base-component/use-base-component.js +18 -0
- package/internal/base-component/use-base-component.js.map +1 -0
- package/internal/base-component/use-telemetry.d.ts +2 -0
- package/internal/base-component/use-telemetry.js +8 -0
- package/internal/base-component/use-telemetry.js.map +1 -0
- package/internal/chart-styles.d.ts +88 -0
- package/internal/chart-styles.js +145 -0
- package/internal/chart-styles.js.map +1 -0
- package/internal/components/chart-legend/index.d.ts +14 -0
- package/internal/components/chart-legend/index.js +245 -0
- package/internal/components/chart-legend/index.js.map +1 -0
- package/internal/components/chart-legend/styles.css.js +22 -0
- package/internal/components/chart-legend/styles.scoped.css +233 -0
- package/internal/components/chart-legend/styles.selectors.js +23 -0
- package/internal/components/chart-legend/test-classes/styles.css.js +11 -0
- package/internal/components/chart-legend/test-classes/styles.scoped.css +12 -0
- package/internal/components/chart-legend/test-classes/styles.selectors.js +12 -0
- package/internal/components/chart-series-filter/index.d.ts +17 -0
- package/internal/components/chart-series-filter/index.js +14 -0
- package/internal/components/chart-series-filter/index.js.map +1 -0
- package/internal/components/interfaces.d.ts +17 -0
- package/internal/components/interfaces.js +4 -0
- package/internal/components/interfaces.js.map +1 -0
- package/internal/components/series-details/index.d.ts +23 -0
- package/internal/components/series-details/index.js +45 -0
- package/internal/components/series-details/index.js.map +1 -0
- package/internal/components/series-details/styles.css.js +22 -0
- package/internal/components/series-details/styles.scoped.css +150 -0
- package/internal/components/series-details/styles.selectors.js +23 -0
- package/internal/components/series-details/test-classes/styles.css.js +10 -0
- package/internal/components/series-details/test-classes/styles.scoped.css +11 -0
- package/internal/components/series-details/test-classes/styles.selectors.js +11 -0
- package/internal/components/series-marker/index.d.ts +8 -0
- package/internal/components/series-marker/index.js +45 -0
- package/internal/components/series-marker/index.js.map +1 -0
- package/internal/components/series-marker/interfaces.d.ts +1 -0
- package/internal/components/series-marker/interfaces.js +4 -0
- package/internal/components/series-marker/interfaces.js.map +1 -0
- package/internal/components/series-marker/render-marker.d.ts +3 -0
- package/internal/components/series-marker/render-marker.js +74 -0
- package/internal/components/series-marker/render-marker.js.map +1 -0
- package/internal/components/series-marker/styles.css.js +7 -0
- package/internal/components/series-marker/styles.scoped.css +55 -0
- package/internal/components/series-marker/styles.selectors.js +8 -0
- package/internal/environment.d.ts +4 -0
- package/internal/environment.js +5 -0
- package/internal/environment.json +7 -0
- package/internal/events/index.d.ts +23 -0
- package/internal/events/index.js +41 -0
- package/internal/events/index.js.map +1 -0
- package/internal/generated/styles/tokens.d.ts +756 -0
- package/internal/generated/styles/tokens.js +756 -0
- package/internal/generated/theming/index.cjs +12584 -0
- package/internal/generated/theming/index.cjs.d.ts +2399 -0
- package/internal/generated/theming/index.d.ts +2399 -0
- package/internal/generated/theming/index.js +12584 -0
- package/internal/manifest.json +3 -0
- package/internal/styles.css.js +6 -0
- package/internal/styles.scoped.css +13 -0
- package/internal/styles.selectors.js +7 -0
- package/internal/utils/apply-display-name.d.ts +1 -0
- package/internal/utils/apply-display-name.js +6 -0
- package/internal/utils/apply-display-name.js.map +1 -0
- package/internal/utils/async-store.d.ts +19 -0
- package/internal/utils/async-store.js +58 -0
- package/internal/utils/async-store.js.map +1 -0
- package/internal/utils/chart-series.d.ts +8 -0
- package/internal/utils/chart-series.js +11 -0
- package/internal/utils/chart-series.js.map +1 -0
- package/internal/utils/renderer-utils.d.ts +17 -0
- package/internal/utils/renderer-utils.js +95 -0
- package/internal/utils/renderer-utils.js.map +1 -0
- package/internal/utils/series-data.d.ts +2 -0
- package/internal/utils/series-data.js +8 -0
- package/internal/utils/series-data.js.map +1 -0
- package/internal/utils/test-i18n-provider.d.ts +8 -0
- package/internal/utils/test-i18n-provider.js +8 -0
- package/internal/utils/test-i18n-provider.js.map +1 -0
- package/internal/utils/use-previous.d.ts +4 -0
- package/internal/utils/use-previous.js +14 -0
- package/internal/utils/use-previous.js.map +1 -0
- package/internal/utils/utils.d.ts +16 -0
- package/internal/utils/utils.js +49 -0
- package/internal/utils/utils.js.map +1 -0
- package/internal-do-not-use/core-chart/index.d.ts +4 -0
- package/internal-do-not-use/core-chart/index.js +13 -0
- package/internal-do-not-use/core-chart/index.js.map +1 -0
- package/internal-do-not-use/core-legend/index.d.ts +2 -0
- package/internal-do-not-use/core-legend/index.js +11 -0
- package/internal-do-not-use/core-legend/index.js.map +1 -0
- package/package.json +106 -0
- package/pie-chart/chart-inner-area.d.ts +10 -0
- package/pie-chart/chart-inner-area.js +63 -0
- package/pie-chart/chart-inner-area.js.map +1 -0
- package/pie-chart/chart-pie-internal.d.ts +11 -0
- package/pie-chart/chart-pie-internal.js +103 -0
- package/pie-chart/chart-pie-internal.js.map +1 -0
- package/pie-chart/index.d.ts +5 -0
- package/pie-chart/index.js +48 -0
- package/pie-chart/index.js.map +1 -0
- package/pie-chart/interfaces.d.ts +101 -0
- package/pie-chart/interfaces.js +4 -0
- package/pie-chart/interfaces.js.map +1 -0
- package/pie-chart/test-classes/styles.css.js +8 -0
- package/pie-chart/test-classes/styles.scoped.css +9 -0
- package/pie-chart/test-classes/styles.selectors.js +9 -0
- package/test-utils/dom/cartesian-chart/index.d.ts +14 -0
- package/test-utils/dom/cartesian-chart/index.js +24 -0
- package/test-utils/dom/cartesian-chart/index.js.map +1 -0
- package/test-utils/dom/cartesian-chart/tooltip.d.ts +28 -0
- package/test-utils/dom/cartesian-chart/tooltip.js +48 -0
- package/test-utils/dom/cartesian-chart/tooltip.js.map +1 -0
- package/test-utils/dom/index.d.ts +46 -0
- package/test-utils/dom/index.js +35 -0
- package/test-utils/dom/index.js.map +1 -0
- package/test-utils/dom/internal/base.d.ts +93 -0
- package/test-utils/dom/internal/base.js +146 -0
- package/test-utils/dom/internal/base.js.map +1 -0
- package/test-utils/dom/internal/core.d.ts +14 -0
- package/test-utils/dom/internal/core.js +37 -0
- package/test-utils/dom/internal/core.js.map +1 -0
- package/test-utils/dom/pie-chart/index.d.ts +17 -0
- package/test-utils/dom/pie-chart/index.js +29 -0
- package/test-utils/dom/pie-chart/index.js.map +1 -0
- package/test-utils/selectors/cartesian-chart/index.d.ts +14 -0
- package/test-utils/selectors/cartesian-chart/index.js +24 -0
- package/test-utils/selectors/cartesian-chart/index.js.map +1 -0
- package/test-utils/selectors/cartesian-chart/tooltip.d.ts +28 -0
- package/test-utils/selectors/cartesian-chart/tooltip.js +48 -0
- package/test-utils/selectors/cartesian-chart/tooltip.js.map +1 -0
- package/test-utils/selectors/index.d.ts +46 -0
- package/test-utils/selectors/index.js +32 -0
- package/test-utils/selectors/index.js.map +1 -0
- package/test-utils/selectors/internal/base.d.ts +93 -0
- package/test-utils/selectors/internal/base.js +146 -0
- package/test-utils/selectors/internal/base.js.map +1 -0
- package/test-utils/selectors/internal/core.d.ts +14 -0
- package/test-utils/selectors/internal/core.js +37 -0
- package/test-utils/selectors/internal/core.js.map +1 -0
- package/test-utils/selectors/pie-chart/index.d.ts +17 -0
- package/test-utils/selectors/pie-chart/index.js +29 -0
- package/test-utils/selectors/pie-chart/index.js.map +1 -0
|
@@ -0,0 +1,571 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
"name": "CartesianChart",
|
|
3
|
+
"dashCaseName": "cartesian-chart",
|
|
4
|
+
"releaseStatus": "stable",
|
|
5
|
+
"regions": [
|
|
6
|
+
{
|
|
7
|
+
"name": "fallback",
|
|
8
|
+
"description": "Custom content that renders when `highcharts=null`. It renders a spinner if not defined.",
|
|
9
|
+
"isDefault": false
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"functions": [
|
|
13
|
+
{
|
|
14
|
+
"name": "setVisibleSeries",
|
|
15
|
+
"description": "Controls series visibility and works with both controlled and uncontrolled visibility modes.",
|
|
16
|
+
"returnType": "void",
|
|
17
|
+
"parameters": [
|
|
18
|
+
{
|
|
19
|
+
"name": "visibleSeries",
|
|
20
|
+
"type": "ReadonlyArray<string>"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "showAllSeries",
|
|
26
|
+
"description": "Functions similarly to `setVisibleSeries`, but applies to all series and doesn't require series IDs as input.\nUse this when implementing clear-filter actions in no-match states.",
|
|
27
|
+
"returnType": "void",
|
|
28
|
+
"parameters": []
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"properties": [
|
|
32
|
+
{
|
|
33
|
+
"name": "ariaDescription",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"optional": true,
|
|
36
|
+
"description": "Defines the ARIA description of the chart container.\nThis property corresponds to [accessibility.description](https://api.highcharts.com/highcharts/accessibility.description),\nand requires the [accessibility module](https://www.highcharts.com/docs/accessibility/accessibility-module)."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "ariaLabel",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"optional": true,
|
|
42
|
+
"description": "Defines the ARIA label for the chart container.\nThis property corresponds to [lang.chartContainerLabel](https://api.highcharts.com/highcharts/lang.accessibility.chartContainerLabel),\nand requires the [accessibility module](https://www.highcharts.com/docs/accessibility/accessibility-module)."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "chartHeight",
|
|
46
|
+
"type": "number",
|
|
47
|
+
"optional": true,
|
|
48
|
+
"description": "The height of the chart plot in pixels. It does not include legend and filter."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "chartMinHeight",
|
|
52
|
+
"type": "number",
|
|
53
|
+
"optional": true,
|
|
54
|
+
"description": "Defines the minimum allowed height of the chart plot. Use this when `fitHeight=true` to\nprevent the chart plot from becoming too small to display its content. When the parent\ncontainer is shorter than the minimum height, a vertical scrollbar appears automatically."
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "chartMinWidth",
|
|
58
|
+
"type": "number",
|
|
59
|
+
"optional": true,
|
|
60
|
+
"description": "Defines the minimum allowed width of the chart plot. When the parent container is narrower than the\nminimum width, the horizontal scrollbar is automatically added."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "emphasizeBaseline",
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"optional": true,
|
|
66
|
+
"description": "When set to `true`, adds a visual emphasis on the zero baseline axis.",
|
|
67
|
+
"defaultValue": "true"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "filter",
|
|
71
|
+
"type": "BaseFilterOptions",
|
|
72
|
+
"inlineType": {
|
|
73
|
+
"name": "BaseFilterOptions",
|
|
74
|
+
"type": "object",
|
|
75
|
+
"properties": [
|
|
76
|
+
{
|
|
77
|
+
"name": "additionalFilters",
|
|
78
|
+
"optional": true,
|
|
79
|
+
"type": "React.ReactNode"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "seriesFilter",
|
|
83
|
+
"optional": true,
|
|
84
|
+
"type": "boolean"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"optional": true,
|
|
89
|
+
"description": "Defines options for filtering in the chart, including:\n* `seriesFilter` (optional, boolean) - Displays default series filter at the top of the chart.\n* `additionalFilters` (optional, slot) - A slot for custom chart filters at the top of the chart."
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "fitHeight",
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"optional": true,
|
|
95
|
+
"description": "The chart automatically adjusts its height to fill the parent container when this property is set.",
|
|
96
|
+
"defaultValue": "false"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "highcharts",
|
|
100
|
+
"type": "object | null",
|
|
101
|
+
"optional": false,
|
|
102
|
+
"description": "The Highcharts instance, which can be obtained using `import Highcharts from \"highcharts\"`.\nSupported Highcharts versions: 12."
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "i18nStrings",
|
|
106
|
+
"type": "CartesianI18nStrings",
|
|
107
|
+
"inlineType": {
|
|
108
|
+
"name": "CartesianI18nStrings",
|
|
109
|
+
"type": "object",
|
|
110
|
+
"properties": [
|
|
111
|
+
{
|
|
112
|
+
"name": "chartRoleDescription",
|
|
113
|
+
"optional": true,
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "detailPopoverDismissAriaLabel",
|
|
118
|
+
"optional": true,
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "errorText",
|
|
123
|
+
"optional": true,
|
|
124
|
+
"type": "string"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "legendAriaLabel",
|
|
128
|
+
"optional": true,
|
|
129
|
+
"type": "string"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "loadingText",
|
|
133
|
+
"optional": true,
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "recoveryText",
|
|
138
|
+
"optional": true,
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "seriesFilterLabel",
|
|
143
|
+
"optional": true,
|
|
144
|
+
"type": "string"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "seriesFilterPlaceholder",
|
|
148
|
+
"optional": true,
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "seriesFilterSelectedAriaLabel",
|
|
153
|
+
"optional": true,
|
|
154
|
+
"type": "string"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "xAxisRoleDescription",
|
|
158
|
+
"optional": true,
|
|
159
|
+
"type": "string"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "yAxisRoleDescription",
|
|
163
|
+
"optional": true,
|
|
164
|
+
"type": "string"
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"optional": true,
|
|
169
|
+
"description": "An object that contains all of the localized strings required by the component.",
|
|
170
|
+
"i18nTag": true
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "inverted",
|
|
174
|
+
"type": "boolean",
|
|
175
|
+
"optional": true,
|
|
176
|
+
"description": "Inverts X and Y axes. Use it to show horizontal columns (bars).\nThis property corresponds to [chart.inverted](https://api.highcharts.com/highcharts/chart.inverted).",
|
|
177
|
+
"defaultValue": "false"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "legend",
|
|
181
|
+
"type": "BaseLegendOptions",
|
|
182
|
+
"inlineType": {
|
|
183
|
+
"name": "BaseLegendOptions",
|
|
184
|
+
"type": "object",
|
|
185
|
+
"properties": [
|
|
186
|
+
{
|
|
187
|
+
"name": "actions",
|
|
188
|
+
"optional": true,
|
|
189
|
+
"type": "React.ReactNode"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "enabled",
|
|
193
|
+
"optional": true,
|
|
194
|
+
"type": "boolean"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "title",
|
|
198
|
+
"optional": true,
|
|
199
|
+
"type": "string"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"optional": true,
|
|
204
|
+
"description": "Defines chart legend options, including:\n* `enabled` (optional, boolean) - Hides legend when set to `false`.\n* `title` (optional, string) - Visible label, shown above the legend.\n* `actions` (optional, slot) - A slot before the legend that can be used to render custom actions."
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "noData",
|
|
208
|
+
"type": "BaseNoDataOptions",
|
|
209
|
+
"inlineType": {
|
|
210
|
+
"name": "BaseNoDataOptions",
|
|
211
|
+
"type": "object",
|
|
212
|
+
"properties": [
|
|
213
|
+
{
|
|
214
|
+
"name": "empty",
|
|
215
|
+
"optional": true,
|
|
216
|
+
"type": "React.ReactNode"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "error",
|
|
220
|
+
"optional": true,
|
|
221
|
+
"type": "React.ReactNode"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "loading",
|
|
225
|
+
"optional": true,
|
|
226
|
+
"type": "React.ReactNode"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "noMatch",
|
|
230
|
+
"optional": true,
|
|
231
|
+
"type": "React.ReactNode"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "onRecoveryClick",
|
|
235
|
+
"optional": true,
|
|
236
|
+
"type": "NonCancelableEventHandler<{}>",
|
|
237
|
+
"inlineType": {
|
|
238
|
+
"name": "NonCancelableEventHandler<{}>",
|
|
239
|
+
"type": "function",
|
|
240
|
+
"returnType": "void",
|
|
241
|
+
"parameters": [
|
|
242
|
+
{
|
|
243
|
+
"name": "event",
|
|
244
|
+
"type": "NonCancelableCustomEvent<Detail>"
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "statusType",
|
|
251
|
+
"optional": true,
|
|
252
|
+
"type": "string",
|
|
253
|
+
"inlineType": {
|
|
254
|
+
"name": "\"finished\" | \"loading\" | \"error\"",
|
|
255
|
+
"type": "union",
|
|
256
|
+
"values": [
|
|
257
|
+
"finished",
|
|
258
|
+
"loading",
|
|
259
|
+
"error"
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
},
|
|
265
|
+
"optional": true,
|
|
266
|
+
"description": "Defines options to represent empty, no-match, loading, and error state of the chart, including:\n* `statusType` (optional, \"finished\" | \"loading\" | \"error\") - Specifies the current status of loading data.\n* `empty` (optional, ReactNode) - Content displayed when the chart data is empty.\n* `noMatch` (optional, ReactNode) - Content displayed when there is no data to display due to the built-in filtering.\n* `loading` (optional, ReactNode) - Content displayed when `statusType=\"loading\"`. If omitted, the default loading state\nis shown, using `i18n.loadingText` or built-in i18n.\n* `error` (optional, ReactNode) - Content displayed when `statusType=\"error\"`. If omitted, the default error state\nis shown, using `i18n.errorText` and `i18n.recoveryText` (when `onRecoveryClick` is provided), or built-in i18n.\n* `onRecoveryClick` (optional, function) - Called when the user clicks the recovery button that appears when using default error\nstate, and only if `onRecoveryClick` is provided. Use this to enable the user to retry a failed request or provide another option\nfor the user to recover from the error."
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "series",
|
|
270
|
+
"type": "ReadonlyArray<CartesianChartProps.SeriesOptions>",
|
|
271
|
+
"optional": false,
|
|
272
|
+
"description": "Defines series options of the chart.\nThis property corresponds to [series](https://api.highcharts.com/highcharts/series), and extends it\nwith two additional series types: \"x-threshold\", and \"y-threshold\".\n\nSupported types:\n* [area](https://api.highcharts.com/highcharts/series.area).\n* [areaspline](https://api.highcharts.com/highcharts/series.areaspline).\n* [column](https://api.highcharts.com/highcharts/series.column).\n* [errorbar](https://api.highcharts.com/highcharts/series.errorbar) - requires \"highcharts/highcharts-more\" module.\n* [line](https://api.highcharts.com/highcharts/series.line).\n* [scatter](https://api.highcharts.com/highcharts/series.scatter).\n* [spline](https://api.highcharts.com/highcharts/series.spline).\n* x-threshold - The line-like series to represent x-axis threshold (vertical, when `inverted=false`).\n* y-threshold - The line-like series to represent y-axis threshold (horizontal, when `inverted=false`)."
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "stacking",
|
|
276
|
+
"type": "\"normal\"",
|
|
277
|
+
"optional": true,
|
|
278
|
+
"description": "Enables series stacking behavior. Use it for column- or area- series.\nThis property corresponds to \"normal\" stacking type in Highcharts ([plotOptions.series.stacking](https://api.highcharts.com/highcharts/plotOptions.series.stacking)).",
|
|
279
|
+
"defaultValue": "undefined"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "tooltip",
|
|
283
|
+
"type": "CartesianChartProps.TooltipOptions",
|
|
284
|
+
"inlineType": {
|
|
285
|
+
"name": "CartesianChartProps.TooltipOptions",
|
|
286
|
+
"type": "object",
|
|
287
|
+
"properties": [
|
|
288
|
+
{
|
|
289
|
+
"name": "body",
|
|
290
|
+
"optional": true,
|
|
291
|
+
"type": "((props: CartesianChartProps.TooltipSlotRenderProps) => React.ReactNode)",
|
|
292
|
+
"inlineType": {
|
|
293
|
+
"name": "(props: CartesianChartProps.TooltipSlotRenderProps) => React.ReactNode",
|
|
294
|
+
"type": "function",
|
|
295
|
+
"returnType": "React.ReactNode",
|
|
296
|
+
"parameters": [
|
|
297
|
+
{
|
|
298
|
+
"name": "props",
|
|
299
|
+
"type": "CartesianChartProps.TooltipSlotRenderProps"
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "enabled",
|
|
306
|
+
"optional": true,
|
|
307
|
+
"type": "boolean"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "footer",
|
|
311
|
+
"optional": true,
|
|
312
|
+
"type": "((props: CartesianChartProps.TooltipSlotRenderProps) => React.ReactNode)",
|
|
313
|
+
"inlineType": {
|
|
314
|
+
"name": "(props: CartesianChartProps.TooltipSlotRenderProps) => React.ReactNode",
|
|
315
|
+
"type": "function",
|
|
316
|
+
"returnType": "React.ReactNode",
|
|
317
|
+
"parameters": [
|
|
318
|
+
{
|
|
319
|
+
"name": "props",
|
|
320
|
+
"type": "CartesianChartProps.TooltipSlotRenderProps"
|
|
321
|
+
}
|
|
322
|
+
]
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "header",
|
|
327
|
+
"optional": true,
|
|
328
|
+
"type": "((props: CartesianChartProps.TooltipSlotRenderProps) => React.ReactNode)",
|
|
329
|
+
"inlineType": {
|
|
330
|
+
"name": "(props: CartesianChartProps.TooltipSlotRenderProps) => React.ReactNode",
|
|
331
|
+
"type": "function",
|
|
332
|
+
"returnType": "React.ReactNode",
|
|
333
|
+
"parameters": [
|
|
334
|
+
{
|
|
335
|
+
"name": "props",
|
|
336
|
+
"type": "CartesianChartProps.TooltipSlotRenderProps"
|
|
337
|
+
}
|
|
338
|
+
]
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "placement",
|
|
343
|
+
"optional": true,
|
|
344
|
+
"type": "string",
|
|
345
|
+
"inlineType": {
|
|
346
|
+
"name": "\"middle\" | \"outside\"",
|
|
347
|
+
"type": "union",
|
|
348
|
+
"values": [
|
|
349
|
+
"middle",
|
|
350
|
+
"outside"
|
|
351
|
+
]
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"name": "point",
|
|
356
|
+
"optional": true,
|
|
357
|
+
"type": "((props: CartesianChartProps.TooltipPointRenderProps) => BaseTooltipPointFormatted)",
|
|
358
|
+
"inlineType": {
|
|
359
|
+
"name": "(props: CartesianChartProps.TooltipPointRenderProps) => BaseTooltipPointFormatted",
|
|
360
|
+
"type": "function",
|
|
361
|
+
"returnType": "BaseTooltipPointFormatted",
|
|
362
|
+
"parameters": [
|
|
363
|
+
{
|
|
364
|
+
"name": "props",
|
|
365
|
+
"type": "CartesianChartProps.TooltipPointRenderProps"
|
|
366
|
+
}
|
|
367
|
+
]
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"name": "size",
|
|
372
|
+
"optional": true,
|
|
373
|
+
"type": "string",
|
|
374
|
+
"inlineType": {
|
|
375
|
+
"name": "\"small\" | \"medium\" | \"large\"",
|
|
376
|
+
"type": "union",
|
|
377
|
+
"values": [
|
|
378
|
+
"small",
|
|
379
|
+
"medium",
|
|
380
|
+
"large"
|
|
381
|
+
]
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
]
|
|
385
|
+
},
|
|
386
|
+
"optional": true,
|
|
387
|
+
"description": "Defines tooltip options of the chart, including:\n* `enabled` - (optional, boolean) - Hides the tooltip when set to false.\n* `size` - (optional, \"small\" | \"medium\" | \"large\") - Specifies max tooltip size.\n* `placement` - (optional, \"middle\" | \"outside\") - Specifies preferred tooltip placement.\n* `point` - (optional, function) - Customizes tooltip series point rendering.\n* `header` - (optional, function) - Renders a custom tooltip header.\n* `body` - (optional, function) - Renders a custom tooltip body.\n* `footer` - (optional, function) - Renders a custom tooltip footer."
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "verticalAxisTitlePlacement",
|
|
391
|
+
"type": "string",
|
|
392
|
+
"inlineType": {
|
|
393
|
+
"name": "\"top\" | \"side\"",
|
|
394
|
+
"type": "union",
|
|
395
|
+
"values": [
|
|
396
|
+
"top",
|
|
397
|
+
"side"
|
|
398
|
+
]
|
|
399
|
+
},
|
|
400
|
+
"optional": true,
|
|
401
|
+
"description": "Controls the placement of the vertical axis title.\nWhen set to \"side\", displays the title along the axis line.",
|
|
402
|
+
"defaultValue": "\"top\""
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "visibleSeries",
|
|
406
|
+
"type": "ReadonlyArray<string>",
|
|
407
|
+
"optional": true,
|
|
408
|
+
"description": "Specifies which series to show using their IDs. By default, all series are visible and managed by the component.\nIf a series doesn't have an ID, its name is used. When using this property, manage state updates with `onVisibleSeriesChange`."
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"name": "xAxis",
|
|
412
|
+
"type": "AxisOptions",
|
|
413
|
+
"inlineType": {
|
|
414
|
+
"name": "AxisOptions",
|
|
415
|
+
"type": "object",
|
|
416
|
+
"properties": [
|
|
417
|
+
{
|
|
418
|
+
"name": "categories",
|
|
419
|
+
"optional": true,
|
|
420
|
+
"type": "Array<string>"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"name": "max",
|
|
424
|
+
"optional": true,
|
|
425
|
+
"type": "number"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "min",
|
|
429
|
+
"optional": true,
|
|
430
|
+
"type": "number"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"name": "tickInterval",
|
|
434
|
+
"optional": true,
|
|
435
|
+
"type": "number"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "title",
|
|
439
|
+
"optional": true,
|
|
440
|
+
"type": "string"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "type",
|
|
444
|
+
"optional": true,
|
|
445
|
+
"type": "string",
|
|
446
|
+
"inlineType": {
|
|
447
|
+
"name": "\"category\" | \"datetime\" | \"linear\" | \"logarithmic\"",
|
|
448
|
+
"type": "union",
|
|
449
|
+
"values": [
|
|
450
|
+
"category",
|
|
451
|
+
"datetime",
|
|
452
|
+
"linear",
|
|
453
|
+
"logarithmic"
|
|
454
|
+
]
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "valueFormatter",
|
|
459
|
+
"optional": true,
|
|
460
|
+
"type": "((value: number | null) => string)",
|
|
461
|
+
"inlineType": {
|
|
462
|
+
"name": "(value: number | null) => string",
|
|
463
|
+
"type": "function",
|
|
464
|
+
"returnType": "string",
|
|
465
|
+
"parameters": [
|
|
466
|
+
{
|
|
467
|
+
"name": "value",
|
|
468
|
+
"type": "number | null"
|
|
469
|
+
}
|
|
470
|
+
]
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
]
|
|
474
|
+
},
|
|
475
|
+
"optional": true,
|
|
476
|
+
"description": "Defines options of the chart's x axis.\nThis property corresponds to [xAxis](https://api.highcharts.com/highcharts/xAxis), and extends it\nwith a custom value formatter.\n\nSupported options:\n* `title` (optional, string) - Axis title.\n* `type` (optional, \"linear\" | \"datetime\" | \"category\" | \"logarithmic\") - Axis type.\n* * \"linear\" - Uses continuous proportional values scale.\n* * \"datetime\" - Similar to linear, but takes epoch time as values.\n* * \"category\" - Uses discrete scale, requires `categories` to be set.\n* * \"logarithmic\" - Uses continuous logarithmic values scale.\n* `min` (optional, number) - Axis min value boundary.\n* `max` (optional, number) - Axis max value boundary.\n* `tickInterval` (optional, number) - Distance between axis ticks.\n* `categories` (optional, Array<string>) - Predefined list of values, used for categorical axis type.\n* `valueFormatter` (optional, function) - Takes axis tick as input and returns a formatted string. This formatter also\napplies to the tooltip header."
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"name": "yAxis",
|
|
480
|
+
"type": "CartesianChartProps.YAxisOptions",
|
|
481
|
+
"inlineType": {
|
|
482
|
+
"name": "CartesianChartProps.YAxisOptions",
|
|
483
|
+
"type": "object",
|
|
484
|
+
"properties": [
|
|
485
|
+
{
|
|
486
|
+
"name": "categories",
|
|
487
|
+
"optional": true,
|
|
488
|
+
"type": "Array<string>"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"name": "max",
|
|
492
|
+
"optional": true,
|
|
493
|
+
"type": "number"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "min",
|
|
497
|
+
"optional": true,
|
|
498
|
+
"type": "number"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"name": "reversedStacks",
|
|
502
|
+
"optional": true,
|
|
503
|
+
"type": "boolean"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"name": "tickInterval",
|
|
507
|
+
"optional": true,
|
|
508
|
+
"type": "number"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"name": "title",
|
|
512
|
+
"optional": true,
|
|
513
|
+
"type": "string"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "type",
|
|
517
|
+
"optional": true,
|
|
518
|
+
"type": "string",
|
|
519
|
+
"inlineType": {
|
|
520
|
+
"name": "\"category\" | \"datetime\" | \"linear\" | \"logarithmic\"",
|
|
521
|
+
"type": "union",
|
|
522
|
+
"values": [
|
|
523
|
+
"category",
|
|
524
|
+
"datetime",
|
|
525
|
+
"linear",
|
|
526
|
+
"logarithmic"
|
|
527
|
+
]
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"name": "valueFormatter",
|
|
532
|
+
"optional": true,
|
|
533
|
+
"type": "((value: number | null) => string)",
|
|
534
|
+
"inlineType": {
|
|
535
|
+
"name": "(value: number | null) => string",
|
|
536
|
+
"type": "function",
|
|
537
|
+
"returnType": "string",
|
|
538
|
+
"parameters": [
|
|
539
|
+
{
|
|
540
|
+
"name": "value",
|
|
541
|
+
"type": "number | null"
|
|
542
|
+
}
|
|
543
|
+
]
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
]
|
|
547
|
+
},
|
|
548
|
+
"optional": true,
|
|
549
|
+
"description": "Defines options of the chart's y axis.\nThis property corresponds to [xAxis](https://api.highcharts.com/highcharts/yAxis), and extends it\nwith a custom value formatter.\n\nSupported options:\n* `title` (optional, string) - Axis title.\n* `type` (optional, \"linear\" | \"datetime\" | \"category\" | \"logarithmic\") - Axis type.\n* * \"linear\" - Uses continuous proportional values scale.\n* * \"datetime\" - Similar to linear, but takes epoch time as values.\n* * \"category\" - Uses discrete scale, requires `categories` to be set.\n* * \"logarithmic\" - Uses continuous logarithmic values scale.\n* `min` (optional, number) - Axis min value boundary.\n* `max` (optional, number) - Axis max value boundary.\n* `tickInterval` (optional, number) - Distance between axis ticks.\n* `categories` (optional, Array<string>) - Predefined list of values, used for categorical axis type.\n* `reversedStacks` (optional, boolean) - Reverts series order in stacked series.\n* `valueFormatter` (optional, function) - Takes axis tick as input and returns a formatted string. This formatter also\napplies to the tooltip points values."
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
"events": [
|
|
553
|
+
{
|
|
554
|
+
"name": "onVisibleSeriesChange",
|
|
555
|
+
"description": "A callback function, triggered when series visibility changes as a result of user interaction with the legend or filter.",
|
|
556
|
+
"cancelable": false,
|
|
557
|
+
"detailType": "{ visibleSeries: Array<string>; }",
|
|
558
|
+
"detailInlineType": {
|
|
559
|
+
"name": "{ visibleSeries: Array<string>; }",
|
|
560
|
+
"type": "object",
|
|
561
|
+
"properties": [
|
|
562
|
+
{
|
|
563
|
+
"name": "visibleSeries",
|
|
564
|
+
"optional": false,
|
|
565
|
+
"type": "Array<string>"
|
|
566
|
+
}
|
|
567
|
+
]
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
]
|
|
571
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export interface ComponentDefinition {
|
|
2
|
+
name: string;
|
|
3
|
+
dashCaseName: string;
|
|
4
|
+
/** @deprecated */
|
|
5
|
+
releaseStatus: string;
|
|
6
|
+
/** @deprecated */
|
|
7
|
+
version?: string;
|
|
8
|
+
/** @deprecated */
|
|
9
|
+
description?: string;
|
|
10
|
+
systemTags?: Array<string>;
|
|
11
|
+
properties: ComponentProperty[];
|
|
12
|
+
regions: ComponentRegion[];
|
|
13
|
+
functions: ComponentFunction[];
|
|
14
|
+
events: EventHandler[];
|
|
15
|
+
}
|
|
16
|
+
interface Taggable {
|
|
17
|
+
deprecatedTag?: string;
|
|
18
|
+
visualRefreshTag?: string;
|
|
19
|
+
i18nTag?: true | undefined;
|
|
20
|
+
systemTags?: Array<string>;
|
|
21
|
+
}
|
|
22
|
+
export interface ValueDescription {
|
|
23
|
+
systemTags: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
export interface ComponentProperty extends Taggable {
|
|
26
|
+
name: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
optional: boolean;
|
|
29
|
+
type: string;
|
|
30
|
+
inlineType?: TypeDefinition;
|
|
31
|
+
defaultValue?: string;
|
|
32
|
+
analyticsTag?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ComponentRegion extends Taggable {
|
|
35
|
+
name: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
displayName?: string;
|
|
38
|
+
isDefault: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface ComponentFunction {
|
|
41
|
+
name: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
parameters: FunctionParameter[];
|
|
44
|
+
returnType: string;
|
|
45
|
+
}
|
|
46
|
+
export type TypeDefinition = ObjectDefinition | FunctionDefinition | UnionTypeDefinition;
|
|
47
|
+
export interface ObjectDefinition {
|
|
48
|
+
name: string;
|
|
49
|
+
type: 'object';
|
|
50
|
+
properties: ObjectDefinitionProperty[];
|
|
51
|
+
}
|
|
52
|
+
export interface ObjectDefinitionProperty {
|
|
53
|
+
name: string;
|
|
54
|
+
optional: boolean;
|
|
55
|
+
type: string;
|
|
56
|
+
inlineType?: TypeDefinition;
|
|
57
|
+
}
|
|
58
|
+
export interface FunctionDefinition {
|
|
59
|
+
name: string;
|
|
60
|
+
type: 'function';
|
|
61
|
+
returnType: string;
|
|
62
|
+
parameters: FunctionParameter[];
|
|
63
|
+
}
|
|
64
|
+
export interface FunctionParameter {
|
|
65
|
+
name: string;
|
|
66
|
+
type: string;
|
|
67
|
+
}
|
|
68
|
+
export interface UnionTypeDefinition {
|
|
69
|
+
name: string;
|
|
70
|
+
type: 'union';
|
|
71
|
+
valueDescriptions?: Record<string, ValueDescription>;
|
|
72
|
+
values: string[];
|
|
73
|
+
}
|
|
74
|
+
export interface EventHandler extends Taggable {
|
|
75
|
+
name: string;
|
|
76
|
+
description?: string;
|
|
77
|
+
detailType?: string;
|
|
78
|
+
detailInlineType?: TypeDefinition;
|
|
79
|
+
cancelable: boolean;
|
|
80
|
+
}
|
|
81
|
+
export {};
|