@gravity-ui/chartkit 5.21.0 → 5.22.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 (47) hide show
  1. package/build/index.d.ts +0 -1
  2. package/build/index.js +0 -1
  3. package/build/plugins/d3/renderer/D3Widget.d.ts +1 -1
  4. package/build/plugins/d3/types.d.ts +1 -0
  5. package/build/plugins/highcharts/renderer/helpers/config/utils/index.d.ts +2 -2
  6. package/build/types/index.d.ts +0 -1
  7. package/build/types/index.js +1 -2
  8. package/build/types/widget.d.ts +2 -2
  9. package/package.json +2 -2
  10. package/build/types/widget-data/area.d.ts +0 -75
  11. package/build/types/widget-data/area.js +0 -1
  12. package/build/types/widget-data/axis.d.ts +0 -85
  13. package/build/types/widget-data/axis.js +0 -1
  14. package/build/types/widget-data/bar-x.d.ts +0 -66
  15. package/build/types/widget-data/bar-x.js +0 -1
  16. package/build/types/widget-data/bar-y.d.ts +0 -59
  17. package/build/types/widget-data/bar-y.js +0 -1
  18. package/build/types/widget-data/base.d.ts +0 -47
  19. package/build/types/widget-data/base.js +0 -1
  20. package/build/types/widget-data/chart.d.ts +0 -15
  21. package/build/types/widget-data/chart.js +0 -1
  22. package/build/types/widget-data/halo.d.ts +0 -9
  23. package/build/types/widget-data/halo.js +0 -1
  24. package/build/types/widget-data/index.d.ts +0 -39
  25. package/build/types/widget-data/index.js +0 -17
  26. package/build/types/widget-data/legend.d.ts +0 -92
  27. package/build/types/widget-data/legend.js +0 -1
  28. package/build/types/widget-data/line.d.ts +0 -56
  29. package/build/types/widget-data/line.js +0 -1
  30. package/build/types/widget-data/marker.d.ts +0 -12
  31. package/build/types/widget-data/marker.js +0 -1
  32. package/build/types/widget-data/pie.d.ts +0 -87
  33. package/build/types/widget-data/pie.js +0 -1
  34. package/build/types/widget-data/scatter.d.ts +0 -45
  35. package/build/types/widget-data/scatter.js +0 -1
  36. package/build/types/widget-data/series.d.ts +0 -225
  37. package/build/types/widget-data/series.js +0 -1
  38. package/build/types/widget-data/split.d.ts +0 -13
  39. package/build/types/widget-data/split.js +0 -1
  40. package/build/types/widget-data/title.d.ts +0 -5
  41. package/build/types/widget-data/title.js +0 -1
  42. package/build/types/widget-data/tooltip.d.ts +0 -67
  43. package/build/types/widget-data/tooltip.js +0 -1
  44. package/build/types/widget-data/treemap.d.ts +0 -45
  45. package/build/types/widget-data/treemap.js +0 -1
  46. package/build/types/widget-data/waterfall.d.ts +0 -39
  47. package/build/types/widget-data/waterfall.js +0 -1
@@ -1,56 +0,0 @@
1
- import { DashStyle, LineCap, SeriesType } from '../../constants';
2
- import type { BaseSeries, BaseSeriesData } from './base';
3
- import type { ChartKitWidgetLegend, RectLegendSymbolOptions } from './legend';
4
- import type { PointMarkerOptions } from './marker';
5
- export type LineSeriesData<T = any> = BaseSeriesData<T> & {
6
- /**
7
- * The `x` value of the point. Depending on the context , it may represents:
8
- * - numeric value (for `linear` x axis)
9
- * - timestamp value (for `datetime` x axis)
10
- * - x axis category value (for `category` x axis). If the type is a string, then it is a category value itself. If the type is a number, then it is the index of an element in the array of categories described in `xAxis.categories`
11
- */
12
- x?: string | number;
13
- /**
14
- * The `y` value of the point. Depending on the context , it may represents:
15
- * - numeric value (for `linear` y axis)
16
- * - timestamp value (for `datetime` y axis)
17
- * - y axis category value (for `category` y axis). If the type is a string, then it is a category value itself. If the type is a number, then it is the index of an element in the array of categories described in `yAxis[0].categories`
18
- */
19
- y?: string | number;
20
- /** Data label value of the point. If not specified, the y value is used. */
21
- label?: string | number;
22
- marker?: {
23
- states?: {
24
- normal?: {
25
- enabled: boolean;
26
- };
27
- };
28
- };
29
- };
30
- export type LineSeries<T = any> = BaseSeries & {
31
- type: typeof SeriesType.Line;
32
- data: LineSeriesData<T>[];
33
- /** The name of the series (used in legend, tooltip etc) */
34
- name: string;
35
- /** The main color of the series (hex, rgba) */
36
- color?: string;
37
- /** Pixel width of the graph line.
38
- *
39
- * @default 1
40
- * */
41
- lineWidth?: number;
42
- /** Individual series legend options. Has higher priority than legend options in widget data */
43
- legend?: ChartKitWidgetLegend & {
44
- symbol?: RectLegendSymbolOptions;
45
- };
46
- /** Options for the point markers of line series */
47
- marker?: PointMarkerOptions;
48
- /** Option for line stroke style */
49
- dashStyle?: `${DashStyle}`;
50
- /** Option for line cap style */
51
- linecap?: `${LineCap}`;
52
- /** Individual opacity for the line. */
53
- opacity?: number;
54
- /** Y-axis index (when using two axes) */
55
- yAxis?: number;
56
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- import { SymbolType } from '../../constants';
2
- export type PointMarkerOptions = {
3
- /** Enable or disable the point marker */
4
- enabled?: boolean;
5
- /** The radius of the point marker */
6
- radius?: number;
7
- /** The color of the point marker's border */
8
- borderColor?: string;
9
- /** The width of the point marker's border */
10
- borderWidth?: number;
11
- symbol?: `${SymbolType}`;
12
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,87 +0,0 @@
1
- import type { BaseType } from 'd3';
2
- import { SeriesType } from '../../constants';
3
- import type { BaseSeries, BaseSeriesData } from './base';
4
- import { ChartKitWidgetLegend, RectLegendSymbolOptions } from './legend';
5
- export type PieSeriesData<T = any> = BaseSeriesData<T> & {
6
- /** The value of the pie segment. */
7
- value: number;
8
- /** The name of the pie segment (used in legend, tooltip etc). */
9
- name: string;
10
- /** Initial visibility of the pie segment. */
11
- visible?: boolean;
12
- /** Initial data label of the pie segment. If not specified, the value is used. */
13
- label?: string;
14
- /** Individual opacity for the pie segment. */
15
- opacity?: number;
16
- };
17
- export type ConnectorShape = 'straight-line' | 'polyline';
18
- export type ConnectorCurve = 'linear' | 'basic';
19
- export type PieSeries<T = any> = BaseSeries & {
20
- type: typeof SeriesType.Pie;
21
- data: PieSeriesData<T>[];
22
- /**
23
- * The color of the border surrounding each segment.
24
- * @default `--g-color-base-background` from @gravity-ui/uikit.
25
- */
26
- borderColor?: string;
27
- /**
28
- * The width of the border surrounding each segment.
29
- * @default '1px'
30
- */
31
- borderWidth?: number;
32
- /**
33
- * The corner radius of the border surrounding each segment.
34
- * @default 0
35
- */
36
- borderRadius?: number;
37
- /** The center of the pie chart relative to the chart area. */
38
- center?: [string | number | null, string | number | null];
39
- /**
40
- * The inner radius of the pie.
41
- * @default 0
42
- */
43
- innerRadius?: string | number;
44
- /** The radius of the pie relative to the chart area. The default behaviour is to scale to the chart area. */
45
- radius?: string | number;
46
- /** Individual series legend options. Has higher priority than legend options in widget data */
47
- legend?: ChartKitWidgetLegend & {
48
- symbol?: RectLegendSymbolOptions;
49
- };
50
- dataLabels?: BaseSeries['dataLabels'] & {
51
- /**
52
- * The distance of the data label from the pie's edge.
53
- *
54
- * @default 30
55
- * */
56
- distance?: number;
57
- /**
58
- * The distance from the data label to the connector.
59
- *
60
- * @default 5
61
- * */
62
- connectorPadding?: number;
63
- /**
64
- * The method that is used to generate the connector path.
65
- *
66
- * @default 'polyline'
67
- * */
68
- connectorShape?: ConnectorShape;
69
- /**
70
- * How to interpolate between two-dimensional [x, y] points for a connector.
71
- * Works only if connectorShape equals to 'polyline'
72
- *
73
- * @default 'basic'
74
- * */
75
- connectorCurve?: ConnectorCurve;
76
- };
77
- /**
78
- * Function for adding custom svg nodes for a series
79
- *
80
- * @return BaseType
81
- * */
82
- renderCustomShape?: (args: {
83
- series: {
84
- innerRadius: number;
85
- };
86
- }) => BaseType;
87
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,45 +0,0 @@
1
- import { SeriesType, SymbolType } from '../../constants';
2
- import type { BaseSeries, BaseSeriesData } from './base';
3
- import type { ChartKitWidgetLegend, RectLegendSymbolOptions } from './legend';
4
- export type ScatterSeriesData<T = any> = BaseSeriesData<T> & {
5
- /**
6
- * The `x` value of the point. Depending on the context , it may represents:
7
- * - numeric value (for `linear` x axis)
8
- * - timestamp value (for `datetime` x axis)
9
- * - x axis category value (for `category` x axis). If the type is a string, then it is a category value itself. If the type is a number, then it is the index of an element in the array of categories described in `xAxis.categories`
10
- */
11
- x?: string | number;
12
- /**
13
- * The `y` value of the point. Depending on the context , it may represents:
14
- * - numeric value (for `linear` y axis)
15
- * - timestamp value (for `datetime` y axis)
16
- * - y axis category value (for `category` y axis). If the type is a string, then it is a category value itself. If the type is a number, then it is the index of an element in the array of categories described in `yAxis[0].categories`
17
- */
18
- y?: string | number;
19
- /**
20
- * Corresponding value of axis category.
21
- *
22
- * @deprecated use `x` or `y` instead
23
- */
24
- category?: string;
25
- /** Individual radius for the point. */
26
- radius?: number;
27
- /** Individual opacity for the point. */
28
- opacity?: number;
29
- };
30
- export type ScatterSeries<T = any> = BaseSeries & {
31
- type: typeof SeriesType.Scatter;
32
- data: ScatterSeriesData<T>[];
33
- /** The name of the series (used in legend, tooltip etc) */
34
- name: string;
35
- /** The main color of the series (hex, rgba) */
36
- color?: string;
37
- /** A predefined shape or symbol for the dot */
38
- symbolType?: `${SymbolType}`;
39
- /** Individual series legend options. Has higher priority than legend options in widget data */
40
- legend?: ChartKitWidgetLegend & {
41
- symbol?: RectLegendSymbolOptions;
42
- };
43
- /** Y-axis index (when using two axes) */
44
- yAxis?: number;
45
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,225 +0,0 @@
1
- import React from 'react';
2
- import { DashStyle, LineCap } from '../../constants';
3
- import type { AreaSeries, AreaSeriesData } from './area';
4
- import type { BarXSeries, BarXSeriesData } from './bar-x';
5
- import type { BarYSeries, BarYSeriesData } from './bar-y';
6
- import type { Halo } from './halo';
7
- import type { LineSeries, LineSeriesData } from './line';
8
- import type { PointMarkerOptions } from './marker';
9
- import type { PieSeries, PieSeriesData } from './pie';
10
- import type { ScatterSeries, ScatterSeriesData } from './scatter';
11
- import type { TreemapSeries, TreemapSeriesData } from './treemap';
12
- import type { WaterfallSeries, WaterfallSeriesData } from './waterfall';
13
- export type ChartKitWidgetSeries<T = any> = ScatterSeries<T> | PieSeries<T> | BarXSeries<T> | BarYSeries<T> | LineSeries<T> | AreaSeries<T> | TreemapSeries<T> | WaterfallSeries<T>;
14
- export type ChartKitWidgetSeriesData<T = any> = ScatterSeriesData<T> | PieSeriesData<T> | BarXSeriesData<T> | BarYSeriesData<T> | LineSeriesData<T> | AreaSeriesData<T> | TreemapSeriesData<T> | WaterfallSeriesData<T>;
15
- export type DataLabelRendererData<T = any> = {
16
- data: ChartKitWidgetSeriesData<T>;
17
- };
18
- type BasicHoverState = {
19
- /**
20
- * Enable separate styles for the hovered series.
21
- *
22
- * @default true
23
- * */
24
- enabled?: boolean;
25
- /**
26
- * How much to brighten/darken the point on hover. Use positive to brighten, negative to darken.
27
- * The behavior of this property is dependent on the implementing color space ([more details](https://d3js.org/d3-color#color_brighter)).
28
- * For example in case of using rgb color you can use floating point number from `-5.0` to `5.0`.
29
- * Rgb color space is used by default.
30
- *
31
- * @default 0.3
32
- */
33
- brightness?: number;
34
- };
35
- export type BasicInactiveState = {
36
- /**
37
- * Enable separate styles for the inactive series.
38
- *
39
- * @default true
40
- * */
41
- enabled?: boolean;
42
- /**
43
- * Opacity of series elements (bars, data labels)
44
- *
45
- * @default 0.5
46
- * */
47
- opacity?: number;
48
- };
49
- export type ChartKitWidgetSeriesOptions = {
50
- /** Individual data label for each point. */
51
- dataLabels?: {
52
- /** Enable or disable the data labels */
53
- enabled?: boolean;
54
- /** Callback function to render the data label */
55
- renderer?: (args: DataLabelRendererData) => React.SVGTextElementAttributes<SVGTextElement>;
56
- };
57
- 'bar-x'?: {
58
- /** The maximum allowed pixel width for a column.
59
- * This prevents the columns from becoming too wide when there is a small number of points in the chart.
60
- *
61
- * @default 50
62
- */
63
- barMaxWidth?: number;
64
- /** Padding between each column or bar, in x axis units.
65
- *
66
- * @default 0.1
67
- * */
68
- barPadding?: number;
69
- /** Padding between each value groups, in x axis units
70
- *
71
- * @default 0.2
72
- */
73
- groupPadding?: number;
74
- dataSorting?: {
75
- /** Determines what data value should be used to sort by.
76
- * Possible values are undefined to disable, "name" to sort by series name or "y"
77
- *
78
- * @default undefined
79
- * */
80
- key?: 'name' | 'y' | undefined;
81
- /** Sorting direction.
82
- *
83
- * @default 'asc'
84
- * */
85
- direction?: 'asc' | 'desc';
86
- };
87
- /** Options for the series states that provide additional styling information to the series. */
88
- states?: {
89
- hover?: BasicHoverState;
90
- inactive?: BasicInactiveState;
91
- };
92
- };
93
- 'bar-y'?: {
94
- /** The maximum allowed pixel width for a column.
95
- * This prevents the columns from becoming too wide when there is a small number of points in the chart.
96
- *
97
- * @default 50
98
- */
99
- barMaxWidth?: number;
100
- /** Padding between each column or bar, in x axis units.
101
- *
102
- * @default 0.1
103
- * */
104
- barPadding?: number;
105
- /** Padding between each value groups, in x axis units
106
- *
107
- * @default 0.2
108
- */
109
- groupPadding?: number;
110
- dataSorting?: {
111
- /** Determines what data value should be used to sort by.
112
- * Possible values are undefined to disable, "name" to sort by series name or "x"
113
- *
114
- * @default undefined
115
- * */
116
- key?: 'name' | 'x' | undefined;
117
- /** Sorting direction.
118
- *
119
- * @default 'asc'
120
- * */
121
- direction?: 'asc' | 'desc';
122
- };
123
- /** Options for the series states that provide additional styling information to the series. */
124
- states?: {
125
- hover?: BasicHoverState;
126
- inactive?: BasicInactiveState;
127
- };
128
- };
129
- pie?: {
130
- /** Options for the series states that provide additional styling information to the series. */
131
- states?: {
132
- hover?: BasicHoverState & {
133
- /** Options for the halo appearing outside the hovered slice */
134
- halo?: Halo;
135
- };
136
- inactive?: BasicInactiveState;
137
- };
138
- };
139
- scatter?: {
140
- /** Options for the series states that provide additional styling information to the series. */
141
- states?: {
142
- hover?: BasicHoverState & {
143
- marker?: PointMarkerOptions & {
144
- /** Options for the halo appearing around the hovered point */
145
- halo?: Halo;
146
- };
147
- };
148
- inactive?: BasicInactiveState;
149
- };
150
- };
151
- line?: {
152
- /** Pixel width of the graph line.
153
- *
154
- * @default 1
155
- * */
156
- lineWidth?: number;
157
- /** Options for the series states that provide additional styling information to the series. */
158
- states?: {
159
- hover?: BasicHoverState & {
160
- marker?: PointMarkerOptions & {
161
- /** Options for the halo appearing around the hovered point */
162
- halo?: Halo;
163
- };
164
- };
165
- inactive?: BasicInactiveState;
166
- };
167
- /** Options for the point markers of line series */
168
- marker?: PointMarkerOptions;
169
- /** Options for line style
170
- *
171
- * @default 'Solid'
172
- * */
173
- dashStyle?: `${DashStyle}`;
174
- /** Options for line cap style
175
- *
176
- * @default 'round' when dashStyle is not 'solid', 'none' when dashStyle is not 'solid'
177
- * */
178
- linecap?: `${LineCap}`;
179
- };
180
- area?: {
181
- /** Pixel width of the graph line.
182
- *
183
- * @default 1
184
- * */
185
- lineWidth?: number;
186
- /** Options for the series states that provide additional styling information to the series. */
187
- states?: {
188
- hover?: BasicHoverState & {
189
- marker?: PointMarkerOptions & {
190
- /** Options for the halo appearing around the hovered point */
191
- halo?: Halo;
192
- };
193
- };
194
- inactive?: BasicInactiveState;
195
- };
196
- /** Options for the point markers of line series */
197
- marker?: PointMarkerOptions;
198
- };
199
- treemap?: {
200
- /** Options for the series states that provide additional styling information to the series. */
201
- states?: {
202
- hover?: BasicHoverState;
203
- inactive?: BasicInactiveState;
204
- };
205
- };
206
- waterfall?: {
207
- /** The maximum allowed pixel width for a column.
208
- * This prevents the columns from becoming too wide when there is a small number of points in the chart.
209
- *
210
- * @default 50
211
- */
212
- barMaxWidth?: number;
213
- /** Padding between each column or bar, in x axis units.
214
- *
215
- * @default 0.1
216
- * */
217
- barPadding?: number;
218
- /** Options for the series states that provide additional styling information to the series. */
219
- states?: {
220
- hover?: BasicHoverState;
221
- inactive?: BasicInactiveState;
222
- };
223
- };
224
- };
225
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- import type { BaseTextStyle } from './base';
2
- export type SplitPlotOptions = {
3
- title?: {
4
- text: string;
5
- style?: Partial<BaseTextStyle>;
6
- };
7
- };
8
- export type ChartKitWidgetSplit = {
9
- enable: boolean;
10
- layout?: 'vertical';
11
- gap?: string | number;
12
- plots?: SplitPlotOptions[];
13
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- import type { BaseTextStyle } from './base';
2
- export type ChartKitWidgetTitle = {
3
- text: string;
4
- style?: Partial<BaseTextStyle>;
5
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,67 +0,0 @@
1
- /// <reference types="react" />
2
- import type { AreaSeries, AreaSeriesData } from './area';
3
- import type { BarXSeries, BarXSeriesData } from './bar-x';
4
- import type { BarYSeries, BarYSeriesData } from './bar-y';
5
- import type { LineSeries, LineSeriesData } from './line';
6
- import type { PieSeries, PieSeriesData } from './pie';
7
- import type { ScatterSeries, ScatterSeriesData } from './scatter';
8
- import type { TreemapSeries, TreemapSeriesData } from './treemap';
9
- import type { WaterfallSeries, WaterfallSeriesData } from './waterfall';
10
- export type TooltipDataChunkBarX<T = any> = {
11
- data: BarXSeriesData<T>;
12
- series: BarXSeries<T>;
13
- };
14
- export type TooltipDataChunkBarY<T = any> = {
15
- data: BarYSeriesData<T>;
16
- series: BarYSeries<T>;
17
- };
18
- export type TooltipDataChunkPie<T = any> = {
19
- data: PieSeriesData<T>;
20
- series: {
21
- type: PieSeries['type'];
22
- id: string;
23
- name: string;
24
- };
25
- };
26
- export type TooltipDataChunkScatter<T = any> = {
27
- data: ScatterSeriesData<T>;
28
- series: {
29
- type: ScatterSeries['type'];
30
- id: string;
31
- name: string;
32
- };
33
- };
34
- export type TooltipDataChunkLine<T = any> = {
35
- data: LineSeriesData<T>;
36
- series: {
37
- type: LineSeries['type'];
38
- id: string;
39
- name: string;
40
- };
41
- };
42
- export type TooltipDataChunkArea<T = any> = {
43
- data: AreaSeriesData<T>;
44
- series: {
45
- type: AreaSeries['type'];
46
- id: string;
47
- name: string;
48
- };
49
- };
50
- export type TooltipDataChunkTreemap<T = any> = {
51
- data: TreemapSeriesData<T>;
52
- series: TreemapSeries<T>;
53
- };
54
- export type TooltipDataChunkWaterfall<T = any> = {
55
- data: WaterfallSeriesData<T>;
56
- series: WaterfallSeries<T>;
57
- };
58
- export type TooltipDataChunk<T = any> = (TooltipDataChunkBarX<T> | TooltipDataChunkBarY<T> | TooltipDataChunkPie<T> | TooltipDataChunkScatter<T> | TooltipDataChunkLine<T> | TooltipDataChunkArea<T> | TooltipDataChunkTreemap<T> | TooltipDataChunkWaterfall<T>) & {
59
- closest?: boolean;
60
- };
61
- export type ChartKitWidgetTooltip<T = any> = {
62
- enabled?: boolean;
63
- /** Specifies the renderer for the tooltip. If returned null default tooltip renderer will be used. */
64
- renderer?: (args: {
65
- hovered: TooltipDataChunk<T>[];
66
- }) => React.ReactElement | null;
67
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,45 +0,0 @@
1
- import { LayoutAlgorithm, SeriesType } from '../../constants';
2
- import type { BaseSeries, BaseSeriesData } from './base';
3
- import { ChartKitWidgetLegend, RectLegendSymbolOptions } from './legend';
4
- export type TreemapSeriesData<T = any> = BaseSeriesData<T> & {
5
- /** The name of the node (used in legend, tooltip etc). */
6
- name: string | string[];
7
- /** The value of the node. All nodes should have this property except nodes that have children. */
8
- value?: number;
9
- /** An id for the node. Used to group children. */
10
- id?: string;
11
- /**
12
- * Parent id. Used to build a tree structure. The value should be the id of the node which is the parent.
13
- * If no nodes has a matching id, or this option is undefined, then the parent will be set to the root.
14
- */
15
- parentId?: string;
16
- };
17
- export type TreemapSeries<T = any> = BaseSeries & {
18
- type: typeof SeriesType.Treemap;
19
- data: TreemapSeriesData<T>[];
20
- /** The name of the series (used in legend, tooltip etc). */
21
- name: string;
22
- /** The main color of the series (hex, rgba). */
23
- color?: string;
24
- /** Individual series legend options. Has higher priority than legend options in widget data. */
25
- legend?: ChartKitWidgetLegend & {
26
- symbol?: RectLegendSymbolOptions;
27
- };
28
- /** Set options on specific levels. Takes precedence over series options, but not point options. */
29
- levels?: {
30
- /** Decides which level takes effect from the options set in the levels object. */
31
- index: number;
32
- /** Can set the padding between all points which lies on the same level. */
33
- padding?: number;
34
- /** Can set a color on all points which lies on the same level. */
35
- color?: string;
36
- }[];
37
- layoutAlgorithm?: `${LayoutAlgorithm}`;
38
- /**
39
- * Options for the series data labels, appearing next to each data point.
40
- * */
41
- dataLabels?: BaseSeries['dataLabels'] & {
42
- /** Horizontal alignment of the data label inside the tile. */
43
- align?: 'left' | 'center' | 'right';
44
- };
45
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,39 +0,0 @@
1
- import { SeriesType } from '../../constants';
2
- import type { BaseSeries, BaseSeriesData } from './base';
3
- import { ChartKitWidgetLegend, RectLegendSymbolOptions } from './legend';
4
- export type WaterfallSeriesData<T = any> = BaseSeriesData<T> & {
5
- /**
6
- * The `x` value. Depending on the context , it may represents:
7
- * - numeric value (for `linear` x axis)
8
- * - timestamp value (for `datetime` x axis)
9
- * - x axis category value (for `category` x axis). If the type is a string, then it is a category value itself. If the type is a number, then it is the index of an element in the array of categories described in `xAxis.categories`
10
- */
11
- x?: string | number;
12
- /**
13
- * The `y` value. Depending on the context , it may represents:
14
- * - numeric value (for `linear` y axis)
15
- */
16
- y?: number;
17
- /** Data label value of the point. If not specified, the y value is used. */
18
- label?: string | number;
19
- /** Individual opacity for the point. */
20
- opacity?: number;
21
- /** When this property is true, the point display the total sum across the entire series. */
22
- total?: boolean;
23
- };
24
- export type WaterfallSeries<T = any> = BaseSeries & {
25
- type: typeof SeriesType.Waterfall;
26
- data: WaterfallSeriesData<T>[];
27
- /** The name of the series (used in legend, tooltip etc). */
28
- name: string;
29
- /** The main color of the series (hex, rgba). */
30
- color?: string;
31
- /** The color used for positive values. If it is not specified, the general color of the series is used. */
32
- positiveColor?: string;
33
- /** The color used for negative values. If it is not specified, the general color of the series is used. */
34
- negativeColor?: string;
35
- /** Individual series legend options. Has higher priority than legend options in widget data. */
36
- legend?: ChartKitWidgetLegend & {
37
- symbol?: RectLegendSymbolOptions;
38
- };
39
- };
@@ -1 +0,0 @@
1
- export {};