@vaadin/charts 24.6.5 → 24.7.0-alpha10
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/package.json +11 -9
- package/src/helpers.js +20 -0
- package/src/vaadin-chart-mixin.d.ts +439 -0
- package/src/vaadin-chart-mixin.js +1698 -0
- package/src/vaadin-chart-series-mixin.d.ts +136 -0
- package/src/vaadin-chart-series-mixin.js +412 -0
- package/src/vaadin-chart-series.d.ts +4 -121
- package/src/vaadin-chart-series.js +4 -384
- package/src/vaadin-chart.d.ts +7 -402
- package/src/vaadin-chart.js +8 -1644
- package/src/vaadin-lit-chart-series.d.ts +11 -0
- package/src/vaadin-lit-chart-series.js +33 -0
- package/src/vaadin-lit-chart.d.ts +11 -0
- package/src/vaadin-lit-chart.js +61 -0
- package/theme/lumo/vaadin-lit-chart.d.ts +2 -0
- package/theme/lumo/vaadin-lit-chart.js +2 -0
- package/theme/material/vaadin-lit-chart.d.ts +2 -0
- package/theme/material/vaadin-lit-chart.js +2 -0
- package/theme/vaadin-chart-base-theme.js +7 -1
- package/vaadin-lit-chart-series.d.ts +1 -0
- package/vaadin-lit-chart-series.js +1 -0
- package/vaadin-lit-chart.d.ts +1 -0
- package/vaadin-lit-chart.js +2 -0
- package/web-types.json +242 -230
- package/web-types.lit.json +107 -86
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/charts",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.7.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,16 +35,18 @@
|
|
|
35
35
|
"polymer"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
+
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
39
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/component-base": "
|
|
40
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
41
|
-
"@vaadin/vaadin-material-styles": "
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
43
|
-
"highcharts": "9.2.2"
|
|
40
|
+
"@vaadin/component-base": "24.7.0-alpha10",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "24.7.0-alpha10",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "24.7.0-alpha10",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "24.7.0-alpha10",
|
|
44
|
+
"highcharts": "9.2.2",
|
|
45
|
+
"lit": "^3.0.0"
|
|
44
46
|
},
|
|
45
47
|
"devDependencies": {
|
|
46
|
-
"@vaadin/chai-plugins": "
|
|
47
|
-
"@vaadin/test-runner-commands": "
|
|
48
|
+
"@vaadin/chai-plugins": "24.7.0-alpha10",
|
|
49
|
+
"@vaadin/test-runner-commands": "24.7.0-alpha10",
|
|
48
50
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
49
51
|
"sinon": "^18.0.0"
|
|
50
52
|
},
|
|
@@ -53,5 +55,5 @@
|
|
|
53
55
|
"web-types.json",
|
|
54
56
|
"web-types.lit.json"
|
|
55
57
|
],
|
|
56
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "c0f8933df2a6a40648d3fb9cfbae6bbf86a8aa90"
|
|
57
59
|
}
|
package/src/helpers.js
CHANGED
|
@@ -26,3 +26,23 @@ export function inflateFunctions(config) {
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
+
|
|
30
|
+
export function deepMerge(target, source) {
|
|
31
|
+
const isObject = (item) => item && typeof item === 'object' && !Array.isArray(item);
|
|
32
|
+
|
|
33
|
+
if (isObject(source) && isObject(target)) {
|
|
34
|
+
Object.keys(source).forEach((key) => {
|
|
35
|
+
if (isObject(source[key])) {
|
|
36
|
+
if (!target[key]) {
|
|
37
|
+
Object.assign(target, { [key]: {} });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
deepMerge(target[key], source[key]);
|
|
41
|
+
} else {
|
|
42
|
+
Object.assign(target, { [key]: source[key] });
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return target;
|
|
48
|
+
}
|
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
+
*
|
|
5
|
+
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
+
* license.
|
|
10
|
+
*/
|
|
11
|
+
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
12
|
+
import type { Axis, Chart as HighchartsChart, ExtremesObject, Options, Point, Series } from 'highcharts';
|
|
13
|
+
import type { ResizeMixinClass } from '@vaadin/component-base/src/resize-mixin.js';
|
|
14
|
+
|
|
15
|
+
export type ChartCategories = string[] | { [key: number]: string };
|
|
16
|
+
|
|
17
|
+
export type ChartCategoryPosition = 'bottom' | 'left' | 'right' | 'top';
|
|
18
|
+
|
|
19
|
+
export type ChartStacking = 'normal' | 'percent' | null;
|
|
20
|
+
|
|
21
|
+
export type ChartEvent = { target: HighchartsChart; type: string };
|
|
22
|
+
|
|
23
|
+
export type ChartSeriesEvent = { target: Series; type: string };
|
|
24
|
+
|
|
25
|
+
export type ChartPointEvent = { target: Point; type: string };
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Fired when a new series is added.
|
|
29
|
+
*/
|
|
30
|
+
export type ChartAddSeriesEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Fired after a chart is exported.
|
|
34
|
+
*/
|
|
35
|
+
export type ChartAfterExportEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Fired after a chart is printed.
|
|
39
|
+
*/
|
|
40
|
+
export type ChartAfterPrintEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Fired before a chart is exported.
|
|
44
|
+
*/
|
|
45
|
+
export type ChartBeforeExportEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Fired before a chart is printed.
|
|
49
|
+
*/
|
|
50
|
+
export type ChartBeforePrintEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Fired when clicking on the plot background.
|
|
54
|
+
*/
|
|
55
|
+
export type ChartClickEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Fired when the chart has finished loading.
|
|
59
|
+
*/
|
|
60
|
+
export type ChartLoadEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Fired when drilldown point is clicked.
|
|
64
|
+
*/
|
|
65
|
+
export type ChartDrilldownEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Fired when drilling up from a drilldown series.
|
|
69
|
+
*/
|
|
70
|
+
export type ChartDrillupEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Fired after all the series has been drilled up if chart has multiple drilldown series.
|
|
74
|
+
*/
|
|
75
|
+
export type ChartDrillupallEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Fired when the chart is redraw. Can be called after a `Chart.configuration.redraw()`
|
|
79
|
+
* or after an axis, series or point is modified with the `redraw` option set to `true`.
|
|
80
|
+
*/
|
|
81
|
+
export type ChartRedrawEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Fired when an area of the chart has been selected.
|
|
85
|
+
*/
|
|
86
|
+
export type ChartSelectionEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Fired when the series has finished its initial animation.
|
|
90
|
+
*/
|
|
91
|
+
export type ChartSeriesAfterAnimateEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Fired when the checkbox next to the series' name in the legend is clicked.
|
|
95
|
+
*/
|
|
96
|
+
export type ChartSeriesCheckboxClickEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Fired when the series is clicked.
|
|
100
|
+
*/
|
|
101
|
+
export type ChartSeriesClickEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Fired when the series is hidden after chart generation time.
|
|
105
|
+
*/
|
|
106
|
+
export type ChartSeriesHideEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Fired when the legend item belonging to the series is clicked.
|
|
110
|
+
*/
|
|
111
|
+
export type ChartSeriesLegendItemClickEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Fired when the mouse leaves the graph.
|
|
115
|
+
*/
|
|
116
|
+
export type ChartSeriesMouseOutEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Fired when the mouse enters the graph.
|
|
120
|
+
*/
|
|
121
|
+
export type ChartSeriesMouseOverEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Fired when the series is shown after chart generation time.
|
|
125
|
+
*/
|
|
126
|
+
export type ChartSeriesShowEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Fired when the point is clicked.
|
|
130
|
+
*/
|
|
131
|
+
export type ChartPointClickEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Fired when the legend item belonging to the point is clicked.
|
|
135
|
+
*/
|
|
136
|
+
export type ChartPointLegendItemClickEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Fired when the mouse leaves the area close to the point.
|
|
140
|
+
*/
|
|
141
|
+
export type ChartPointMouseOutEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Fired when the mouse enters the area close to the point.
|
|
145
|
+
*/
|
|
146
|
+
export type ChartPointMouseOverEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Fired when the point is removed from the series.
|
|
150
|
+
*/
|
|
151
|
+
export type ChartPointRemoveEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Fired when the point is selected either programmatically or by clicking on the point.
|
|
155
|
+
*/
|
|
156
|
+
export type ChartPointSelectEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Fired when the point is unselected either programmatically or by clicking on the point.
|
|
160
|
+
*/
|
|
161
|
+
export type ChartPointUnselectEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Fired when the point is updated programmatically through `.updateConfiguration()` method.
|
|
165
|
+
*/
|
|
166
|
+
export type ChartPointUpdateEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Fired when starting to drag a point.
|
|
170
|
+
*/
|
|
171
|
+
export type ChartPointDragStartEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Fired when the point is dropped.
|
|
175
|
+
*/
|
|
176
|
+
export type ChartPointDropEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Fired while dragging a point.
|
|
180
|
+
*/
|
|
181
|
+
export type ChartPointDragEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Fired when when the minimum and maximum is set for the X axis.
|
|
185
|
+
*/
|
|
186
|
+
export type ChartXaxesExtremesSetEvent = CustomEvent<{
|
|
187
|
+
axis: Axis;
|
|
188
|
+
originalEvent: ExtremesObject & {
|
|
189
|
+
target: Axis;
|
|
190
|
+
type: string;
|
|
191
|
+
};
|
|
192
|
+
}>;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Fired when when the minimum and maximum is set for the Y axis.
|
|
196
|
+
*/
|
|
197
|
+
export type ChartYaxesExtremesSetEvent = CustomEvent<{
|
|
198
|
+
axis: Axis;
|
|
199
|
+
originalEvent: ExtremesObject & {
|
|
200
|
+
target: Axis;
|
|
201
|
+
type: string;
|
|
202
|
+
};
|
|
203
|
+
}>;
|
|
204
|
+
|
|
205
|
+
export interface ChartCustomEventMap {
|
|
206
|
+
'chart-add-series': ChartAddSeriesEvent;
|
|
207
|
+
|
|
208
|
+
'chart-after-export': ChartAfterExportEvent;
|
|
209
|
+
|
|
210
|
+
'chart-after-print': ChartAfterPrintEvent;
|
|
211
|
+
|
|
212
|
+
'chart-before-export': ChartBeforeExportEvent;
|
|
213
|
+
|
|
214
|
+
'chart-before-print': ChartBeforePrintEvent;
|
|
215
|
+
|
|
216
|
+
'chart-click': ChartClickEvent;
|
|
217
|
+
|
|
218
|
+
'chart-drilldown': ChartDrilldownEvent;
|
|
219
|
+
|
|
220
|
+
'chart-drillup': ChartDrillupEvent;
|
|
221
|
+
|
|
222
|
+
'chart-drillupall': ChartDrillupallEvent;
|
|
223
|
+
|
|
224
|
+
'chart-load': ChartLoadEvent;
|
|
225
|
+
|
|
226
|
+
'chart-redraw': ChartRedrawEvent;
|
|
227
|
+
|
|
228
|
+
'chart-selection': ChartSelectionEvent;
|
|
229
|
+
|
|
230
|
+
'series-after-animate': ChartSeriesAfterAnimateEvent;
|
|
231
|
+
|
|
232
|
+
'series-checkbox-click': ChartSeriesCheckboxClickEvent;
|
|
233
|
+
|
|
234
|
+
'series-click': ChartSeriesClickEvent;
|
|
235
|
+
|
|
236
|
+
'series-hide': ChartSeriesHideEvent;
|
|
237
|
+
|
|
238
|
+
'series-legend-item-click': ChartSeriesLegendItemClickEvent;
|
|
239
|
+
|
|
240
|
+
'series-mouse-out': ChartSeriesMouseOutEvent;
|
|
241
|
+
|
|
242
|
+
'series-mouse-over': ChartSeriesMouseOverEvent;
|
|
243
|
+
|
|
244
|
+
'series-show': ChartSeriesShowEvent;
|
|
245
|
+
|
|
246
|
+
'point-click': ChartPointClickEvent;
|
|
247
|
+
|
|
248
|
+
'point-legend-item-click': ChartPointLegendItemClickEvent;
|
|
249
|
+
|
|
250
|
+
'point-mouse-out': ChartPointMouseOutEvent;
|
|
251
|
+
|
|
252
|
+
'point-mouse-over': ChartPointMouseOverEvent;
|
|
253
|
+
|
|
254
|
+
'point-remove': ChartPointRemoveEvent;
|
|
255
|
+
|
|
256
|
+
'point-select': ChartPointSelectEvent;
|
|
257
|
+
|
|
258
|
+
'point-unselect': ChartPointUnselectEvent;
|
|
259
|
+
|
|
260
|
+
'point-update': ChartPointUpdateEvent;
|
|
261
|
+
|
|
262
|
+
'point-drag-start': ChartPointDragStartEvent;
|
|
263
|
+
|
|
264
|
+
'point-drop': ChartPointDropEvent;
|
|
265
|
+
|
|
266
|
+
'point-drag': ChartPointDragEvent;
|
|
267
|
+
|
|
268
|
+
'xaxes-extremes-set': ChartXaxesExtremesSetEvent;
|
|
269
|
+
|
|
270
|
+
'yaxes-extremes-set': ChartYaxesExtremesSetEvent;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export type ChartEventMap = ChartCustomEventMap & HTMLElementEventMap;
|
|
274
|
+
|
|
275
|
+
export declare function ChartMixin<T extends Constructor<HTMLElement>>(
|
|
276
|
+
base: T,
|
|
277
|
+
): Constructor<ChartMixinClass> & Constructor<ResizeMixinClass> & T;
|
|
278
|
+
|
|
279
|
+
export declare class ChartMixinClass {
|
|
280
|
+
readonly options: Options;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Configuration object that exposes the JS Api to configure the chart.
|
|
284
|
+
*
|
|
285
|
+
* Most important methods are:
|
|
286
|
+
* - `addSeries (Object options, [Boolean redraw], [Mixed animation])`
|
|
287
|
+
* - `addAxis (Object options, [Boolean isX], [Boolean redraw], [Mixed animation])`
|
|
288
|
+
* - `setTitle (Object title, object subtitle, Boolean redraw)`
|
|
289
|
+
*
|
|
290
|
+
* Most important properties are:
|
|
291
|
+
* - `configuration.series`: An array of the chart's series. Detailed API for Series object is
|
|
292
|
+
* available in [API Site](http://api.highcharts.com/class-reference/Highcharts.Series)
|
|
293
|
+
* - `configuration.xAxis`: An array of the chart's x axes. Detailed API for Axis object is
|
|
294
|
+
* available in [API Site](http://api.highcharts.com/class-reference/Highcharts.Axis)
|
|
295
|
+
* - `configuration.yAxis`: An array of the chart's y axes. Detailed API for Axis object is
|
|
296
|
+
* available in [API Site](http://api.highcharts.com/class-reference/Highcharts.Axis)
|
|
297
|
+
* - `configuration.title`: The chart title.
|
|
298
|
+
*
|
|
299
|
+
* For detailed documentation of available API check the [API site](http://api.highcharts.com/class-reference/classes.list)
|
|
300
|
+
*/
|
|
301
|
+
configuration: HighchartsChart | undefined;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* If categories are present names are used instead of numbers for the category axis.
|
|
305
|
+
* The format of categories can be an `Array` with a list of categories, such as `['2010', '2011', '2012']`
|
|
306
|
+
* or a mapping `Object`, like `{0:'1',9:'Target (10)', 15: 'Max'}`.
|
|
307
|
+
*/
|
|
308
|
+
categories: ChartCategories | null | undefined;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Category-axis maximum value. Defaults to `undefined`.
|
|
312
|
+
* @attr {number} category-max
|
|
313
|
+
*/
|
|
314
|
+
categoryMax: number | null | undefined;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Category-axis minimum value. Defaults to `undefined`.
|
|
318
|
+
* @attr {number} category-min
|
|
319
|
+
*/
|
|
320
|
+
categoryMin: number | null | undefined;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* The position of the category axis. Acceptable values are `left`, `right`, `top` and `bottom`
|
|
324
|
+
* except for bar charts which only accept `left` and `right`.
|
|
325
|
+
* With the default value, charts appear as though they have `category-position="bottom"`
|
|
326
|
+
* except for bar charts that appear as though they have `category-position="left"`.
|
|
327
|
+
*
|
|
328
|
+
* Defaults to `undefined`
|
|
329
|
+
* @attr {left|right|top|bottom} category-position
|
|
330
|
+
*/
|
|
331
|
+
categoryPosition: ChartCategoryPosition | null | undefined;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Specifies whether to hide legend or show.
|
|
335
|
+
* Legend configuration can be set up via additionalOptions property
|
|
336
|
+
* @attr {boolean} no-legend
|
|
337
|
+
*/
|
|
338
|
+
noLegend: boolean | null | undefined;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Specifies how series are stacked on top of each other.
|
|
342
|
+
* Possible values are null, "normal" or "percent".
|
|
343
|
+
* If "stack" property is not defined on the vaadin-chart-series elements, then series will be put into
|
|
344
|
+
* the default stack.
|
|
345
|
+
* @attr {normal|percent} stacking
|
|
346
|
+
*/
|
|
347
|
+
stacking: ChartStacking | null | undefined;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Specifies whether the chart is a normal chart or a timeline chart.
|
|
351
|
+
* Value of this property is ignored for Gantt charts (type="gantt").
|
|
352
|
+
*/
|
|
353
|
+
timeline: boolean | null | undefined;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Represents the title of the chart.
|
|
357
|
+
*/
|
|
358
|
+
title: string;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Whether or not to show tooltip when hovering data points.
|
|
362
|
+
*/
|
|
363
|
+
tooltip: boolean | null | undefined;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Sets the default series type of the chart.
|
|
367
|
+
* Note that `'bar'`, `'gauge'` and `'solidgauge'` should be set as default series type.
|
|
368
|
+
*/
|
|
369
|
+
type: string | null | undefined;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Represents the subtitle of the chart.
|
|
373
|
+
*/
|
|
374
|
+
subtitle: string | undefined;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Specifies whether to show chart in 3 or in 2 dimensions.
|
|
378
|
+
* Some display angles are added by default to the "chart.options3d" (`{alpha: 15, beta: 15, depth: 50}`).
|
|
379
|
+
* 3D display options can be modified via `additionalOptions`.
|
|
380
|
+
* The thickness of a Pie chart can be set on `additionalOptions` through `plotOptions.pie.depth`.
|
|
381
|
+
* 3D is supported by Bar, Column, Pie and Scatter3D charts.
|
|
382
|
+
* More info available at [Highcharts](https://www.highcharts.com/docs/chart-concepts/3d-charts).
|
|
383
|
+
*/
|
|
384
|
+
chart3d: boolean | null | undefined;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Specifies the message displayed on a chart without displayable data.
|
|
388
|
+
* @attr {string} empty-text
|
|
389
|
+
*/
|
|
390
|
+
emptyText: string;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Represents additional JSON configuration.
|
|
394
|
+
*/
|
|
395
|
+
additionalOptions: Options | null | undefined;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* When present, cartesian charts like line, spline, area and column are transformed
|
|
399
|
+
* into the polar coordinate system.
|
|
400
|
+
*/
|
|
401
|
+
polar: boolean | null | undefined;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Update the chart configuration.
|
|
405
|
+
* This JSON API provides a simple single-argument alternative to the configuration property.
|
|
406
|
+
*
|
|
407
|
+
* Styling properties specified in this configuration will be ignored. To learn about chart styling
|
|
408
|
+
* please see the CSS Styling section above.
|
|
409
|
+
*
|
|
410
|
+
* @param {!Options} jsonConfiguration Object chart configuration. Most important properties are:
|
|
411
|
+
*
|
|
412
|
+
* - annotations `Object[]` custom labels or shapes that can be tied to points, axis coordinates or chart pixel coordinates.
|
|
413
|
+
* Detailed API for annotations object is available in [API Site](http://api.highcharts.com/highcharts/annotations)
|
|
414
|
+
* - chart `Object` with options regarding the chart area and plot area as well as general chart options.
|
|
415
|
+
* Detailed API for chart object is available in [API Site](http://api.highcharts.com/highcharts/chart)
|
|
416
|
+
* - credits `Object` with options regarding the chart area and plot area as well as general chart options.
|
|
417
|
+
* Detailed API for credits object is available in [API Site](http://api.highcharts.com/highcharts/credits)
|
|
418
|
+
* - plotOptions `Object` wrapper for config objects for each series type.
|
|
419
|
+
* Detailed API for plotOptions object is available in [API Site](http://api.highcharts.com/highcharts/plotOptions)
|
|
420
|
+
* - series `Object[]` the actual series to append to the chart.
|
|
421
|
+
* Detailed API for series object is available in [API Site](http://api.highcharts.com/highcharts/series)
|
|
422
|
+
* - subtitle `Object` the chart's subtitle.
|
|
423
|
+
* Detailed API for subtitle object is available in [API Site](http://api.highcharts.com/highcharts/subtitle)
|
|
424
|
+
* - title `Object` the chart's main title.
|
|
425
|
+
* Detailed API for title object is available in [API Site](http://api.highcharts.com/highcharts/title)
|
|
426
|
+
* - tooltip `Object` Options for the tooltip that appears when the user hovers over a series or point.
|
|
427
|
+
* Detailed API for tooltip object is available in [API Site](http://api.highcharts.com/highcharts/tooltip)
|
|
428
|
+
* - xAxis `Object[]` The X axis or category axis. Normally this is the horizontal axis.
|
|
429
|
+
* Detailed API for xAxis object is available in [API Site](http://api.highcharts.com/highcharts/xAxis)
|
|
430
|
+
* - yAxis `Object[]` The Y axis or value axis. Normally this is the vertical axis.
|
|
431
|
+
* Detailed API for yAxis object is available in [API Site](http://api.highcharts.com/highcharts/yAxis)
|
|
432
|
+
* - zAxis `Object[]` The Z axis or depth axis for 3D plots.
|
|
433
|
+
* Detailed API for zAxis object is available in [API Site](http://api.highcharts.com/highcharts/zAxis)
|
|
434
|
+
*
|
|
435
|
+
* @param {boolean=} resetConfiguration Optional boolean that should be set to true if no other chart configuration was set before or
|
|
436
|
+
* if existing configuration should be discarded.
|
|
437
|
+
*/
|
|
438
|
+
updateConfiguration(jsonConfiguration: Options, resetConfiguration?: boolean): void;
|
|
439
|
+
}
|