@vaadin/charts 24.7.0-alpha7 → 24.7.0-alpha8
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 -8
- 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 +3 -120
- package/src/vaadin-chart-series.js +3 -383
- package/src/vaadin-chart.d.ts +3 -423
- package/src/vaadin-chart.js +4 -1679
- 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/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 +228 -228
- package/web-types.lit.json +85 -85
package/src/vaadin-chart.d.ts
CHANGED
|
@@ -8,270 +8,10 @@
|
|
|
8
8
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
9
|
* license.
|
|
10
10
|
*/
|
|
11
|
-
import type { Axis, Chart as HighchartsChart, ExtremesObject, Options, Point, Series } from 'highcharts';
|
|
12
11
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
13
|
-
import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
|
|
14
12
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
15
|
-
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
export type ChartCategoryPosition = 'bottom' | 'left' | 'right' | 'top';
|
|
19
|
-
|
|
20
|
-
export type ChartStacking = 'normal' | 'percent' | null;
|
|
21
|
-
|
|
22
|
-
export type ChartEvent = { target: HighchartsChart; type: string };
|
|
23
|
-
|
|
24
|
-
export type ChartSeriesEvent = { target: Series; type: string };
|
|
25
|
-
|
|
26
|
-
export type ChartPointEvent = { target: Point; type: string };
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Fired when a new series is added.
|
|
30
|
-
*/
|
|
31
|
-
export type ChartAddSeriesEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Fired after a chart is exported.
|
|
35
|
-
*/
|
|
36
|
-
export type ChartAfterExportEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Fired after a chart is printed.
|
|
40
|
-
*/
|
|
41
|
-
export type ChartAfterPrintEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Fired before a chart is exported.
|
|
45
|
-
*/
|
|
46
|
-
export type ChartBeforeExportEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Fired before a chart is printed.
|
|
50
|
-
*/
|
|
51
|
-
export type ChartBeforePrintEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Fired when clicking on the plot background.
|
|
55
|
-
*/
|
|
56
|
-
export type ChartClickEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Fired when the chart has finished loading.
|
|
60
|
-
*/
|
|
61
|
-
export type ChartLoadEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Fired when drilldown point is clicked.
|
|
65
|
-
*/
|
|
66
|
-
export type ChartDrilldownEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Fired when drilling up from a drilldown series.
|
|
70
|
-
*/
|
|
71
|
-
export type ChartDrillupEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Fired after all the series has been drilled up if chart has multiple drilldown series.
|
|
75
|
-
*/
|
|
76
|
-
export type ChartDrillupallEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Fired when the chart is redraw. Can be called after a `Chart.configuration.redraw()`
|
|
80
|
-
* or after an axis, series or point is modified with the `redraw` option set to `true`.
|
|
81
|
-
*/
|
|
82
|
-
export type ChartRedrawEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Fired when an area of the chart has been selected.
|
|
86
|
-
*/
|
|
87
|
-
export type ChartSelectionEvent = CustomEvent<{ chart: HighchartsChart; originalEvent: ChartEvent }>;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Fired when the series has finished its initial animation.
|
|
91
|
-
*/
|
|
92
|
-
export type ChartSeriesAfterAnimateEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Fired when the checkbox next to the series' name in the legend is clicked.
|
|
96
|
-
*/
|
|
97
|
-
export type ChartSeriesCheckboxClickEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Fired when the series is clicked.
|
|
101
|
-
*/
|
|
102
|
-
export type ChartSeriesClickEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Fired when the series is hidden after chart generation time.
|
|
106
|
-
*/
|
|
107
|
-
export type ChartSeriesHideEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Fired when the legend item belonging to the series is clicked.
|
|
111
|
-
*/
|
|
112
|
-
export type ChartSeriesLegendItemClickEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Fired when the mouse leaves the graph.
|
|
116
|
-
*/
|
|
117
|
-
export type ChartSeriesMouseOutEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Fired when the mouse enters the graph.
|
|
121
|
-
*/
|
|
122
|
-
export type ChartSeriesMouseOverEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Fired when the series is shown after chart generation time.
|
|
126
|
-
*/
|
|
127
|
-
export type ChartSeriesShowEvent = CustomEvent<{ series: Series; originalEvent: ChartSeriesEvent }>;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Fired when the point is clicked.
|
|
131
|
-
*/
|
|
132
|
-
export type ChartPointClickEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Fired when the legend item belonging to the point is clicked.
|
|
136
|
-
*/
|
|
137
|
-
export type ChartPointLegendItemClickEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Fired when the mouse leaves the area close to the point.
|
|
141
|
-
*/
|
|
142
|
-
export type ChartPointMouseOutEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Fired when the mouse enters the area close to the point.
|
|
146
|
-
*/
|
|
147
|
-
export type ChartPointMouseOverEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Fired when the point is removed from the series.
|
|
151
|
-
*/
|
|
152
|
-
export type ChartPointRemoveEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Fired when the point is selected either programmatically or by clicking on the point.
|
|
156
|
-
*/
|
|
157
|
-
export type ChartPointSelectEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Fired when the point is unselected either programmatically or by clicking on the point.
|
|
161
|
-
*/
|
|
162
|
-
export type ChartPointUnselectEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Fired when the point is updated programmatically through `.updateConfiguration()` method.
|
|
166
|
-
*/
|
|
167
|
-
export type ChartPointUpdateEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Fired when starting to drag a point.
|
|
171
|
-
*/
|
|
172
|
-
export type ChartPointDragStartEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Fired when the point is dropped.
|
|
176
|
-
*/
|
|
177
|
-
export type ChartPointDropEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Fired while dragging a point.
|
|
181
|
-
*/
|
|
182
|
-
export type ChartPointDragEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Fired when when the minimum and maximum is set for the X axis.
|
|
186
|
-
*/
|
|
187
|
-
export type ChartXaxesExtremesSetEvent = CustomEvent<{
|
|
188
|
-
axis: Axis;
|
|
189
|
-
originalEvent: ExtremesObject & {
|
|
190
|
-
target: Axis;
|
|
191
|
-
type: string;
|
|
192
|
-
};
|
|
193
|
-
}>;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Fired when when the minimum and maximum is set for the Y axis.
|
|
197
|
-
*/
|
|
198
|
-
export type ChartYaxesExtremesSetEvent = CustomEvent<{
|
|
199
|
-
axis: Axis;
|
|
200
|
-
originalEvent: ExtremesObject & {
|
|
201
|
-
target: Axis;
|
|
202
|
-
type: string;
|
|
203
|
-
};
|
|
204
|
-
}>;
|
|
205
|
-
|
|
206
|
-
export interface ChartCustomEventMap {
|
|
207
|
-
'chart-add-series': ChartAddSeriesEvent;
|
|
208
|
-
|
|
209
|
-
'chart-after-export': ChartAfterExportEvent;
|
|
210
|
-
|
|
211
|
-
'chart-after-print': ChartAfterPrintEvent;
|
|
212
|
-
|
|
213
|
-
'chart-before-export': ChartBeforeExportEvent;
|
|
214
|
-
|
|
215
|
-
'chart-before-print': ChartBeforePrintEvent;
|
|
216
|
-
|
|
217
|
-
'chart-click': ChartClickEvent;
|
|
218
|
-
|
|
219
|
-
'chart-drilldown': ChartDrilldownEvent;
|
|
220
|
-
|
|
221
|
-
'chart-drillup': ChartDrillupEvent;
|
|
222
|
-
|
|
223
|
-
'chart-drillupall': ChartDrillupallEvent;
|
|
224
|
-
|
|
225
|
-
'chart-load': ChartLoadEvent;
|
|
226
|
-
|
|
227
|
-
'chart-redraw': ChartRedrawEvent;
|
|
228
|
-
|
|
229
|
-
'chart-selection': ChartSelectionEvent;
|
|
230
|
-
|
|
231
|
-
'series-after-animate': ChartSeriesAfterAnimateEvent;
|
|
232
|
-
|
|
233
|
-
'series-checkbox-click': ChartSeriesCheckboxClickEvent;
|
|
234
|
-
|
|
235
|
-
'series-click': ChartSeriesClickEvent;
|
|
236
|
-
|
|
237
|
-
'series-hide': ChartSeriesHideEvent;
|
|
238
|
-
|
|
239
|
-
'series-legend-item-click': ChartSeriesLegendItemClickEvent;
|
|
240
|
-
|
|
241
|
-
'series-mouse-out': ChartSeriesMouseOutEvent;
|
|
242
|
-
|
|
243
|
-
'series-mouse-over': ChartSeriesMouseOverEvent;
|
|
244
|
-
|
|
245
|
-
'series-show': ChartSeriesShowEvent;
|
|
246
|
-
|
|
247
|
-
'point-click': ChartPointClickEvent;
|
|
248
|
-
|
|
249
|
-
'point-legend-item-click': ChartPointLegendItemClickEvent;
|
|
250
|
-
|
|
251
|
-
'point-mouse-out': ChartPointMouseOutEvent;
|
|
252
|
-
|
|
253
|
-
'point-mouse-over': ChartPointMouseOverEvent;
|
|
254
|
-
|
|
255
|
-
'point-remove': ChartPointRemoveEvent;
|
|
256
|
-
|
|
257
|
-
'point-select': ChartPointSelectEvent;
|
|
258
|
-
|
|
259
|
-
'point-unselect': ChartPointUnselectEvent;
|
|
260
|
-
|
|
261
|
-
'point-update': ChartPointUpdateEvent;
|
|
262
|
-
|
|
263
|
-
'point-drag-start': ChartPointDragStartEvent;
|
|
264
|
-
|
|
265
|
-
'point-drop': ChartPointDropEvent;
|
|
266
|
-
|
|
267
|
-
'point-drag': ChartPointDragEvent;
|
|
268
|
-
|
|
269
|
-
'xaxes-extremes-set': ChartXaxesExtremesSetEvent;
|
|
270
|
-
|
|
271
|
-
'yaxes-extremes-set': ChartYaxesExtremesSetEvent;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export type ChartEventMap = ChartCustomEventMap & HTMLElementEventMap;
|
|
13
|
+
import { type ChartEventMap, ChartMixin } from './vaadin-chart-mixin.js';
|
|
14
|
+
export * from './vaadin-chart-mixin.js';
|
|
275
15
|
|
|
276
16
|
/**
|
|
277
17
|
* `<vaadin-chart>` is a Web Component for creating high quality charts.
|
|
@@ -431,167 +171,7 @@ export type ChartEventMap = ChartCustomEventMap & HTMLElementEventMap;
|
|
|
431
171
|
* @fires {CustomEvent} xaxes-extremes-set - Fired when when the minimum and maximum is set for the X axis.
|
|
432
172
|
* @fires {CustomEvent} yaxes-extremes-set - Fired when when the minimum and maximum is set for the Y axis.
|
|
433
173
|
*/
|
|
434
|
-
declare class Chart extends
|
|
435
|
-
readonly options: Options;
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Configuration object that exposes the JS Api to configure the chart.
|
|
439
|
-
*
|
|
440
|
-
* Most important methods are:
|
|
441
|
-
* - `addSeries (Object options, [Boolean redraw], [Mixed animation])`
|
|
442
|
-
* - `addAxis (Object options, [Boolean isX], [Boolean redraw], [Mixed animation])`
|
|
443
|
-
* - `setTitle (Object title, object subtitle, Boolean redraw)`
|
|
444
|
-
*
|
|
445
|
-
* Most important properties are:
|
|
446
|
-
* - `configuration.series`: An array of the chart's series. Detailed API for Series object is
|
|
447
|
-
* available in [API Site](http://api.highcharts.com/class-reference/Highcharts.Series)
|
|
448
|
-
* - `configuration.xAxis`: An array of the chart's x axes. Detailed API for Axis object is
|
|
449
|
-
* available in [API Site](http://api.highcharts.com/class-reference/Highcharts.Axis)
|
|
450
|
-
* - `configuration.yAxis`: An array of the chart's y axes. Detailed API for Axis object is
|
|
451
|
-
* available in [API Site](http://api.highcharts.com/class-reference/Highcharts.Axis)
|
|
452
|
-
* - `configuration.title`: The chart title.
|
|
453
|
-
*
|
|
454
|
-
* For detailed documentation of available API check the [API site](http://api.highcharts.com/class-reference/classes.list)
|
|
455
|
-
*/
|
|
456
|
-
configuration: HighchartsChart | undefined;
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* If categories are present names are used instead of numbers for the category axis.
|
|
460
|
-
* The format of categories can be an `Array` with a list of categories, such as `['2010', '2011', '2012']`
|
|
461
|
-
* or a mapping `Object`, like `{0:'1',9:'Target (10)', 15: 'Max'}`.
|
|
462
|
-
*/
|
|
463
|
-
categories: ChartCategories | null | undefined;
|
|
464
|
-
|
|
465
|
-
/**
|
|
466
|
-
* Category-axis maximum value. Defaults to `undefined`.
|
|
467
|
-
* @attr {number} category-max
|
|
468
|
-
*/
|
|
469
|
-
categoryMax: number | null | undefined;
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* Category-axis minimum value. Defaults to `undefined`.
|
|
473
|
-
* @attr {number} category-min
|
|
474
|
-
*/
|
|
475
|
-
categoryMin: number | null | undefined;
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* The position of the category axis. Acceptable values are `left`, `right`, `top` and `bottom`
|
|
479
|
-
* except for bar charts which only accept `left` and `right`.
|
|
480
|
-
* With the default value, charts appear as though they have `category-position="bottom"`
|
|
481
|
-
* except for bar charts that appear as though they have `category-position="left"`.
|
|
482
|
-
*
|
|
483
|
-
* Defaults to `undefined`
|
|
484
|
-
* @attr {left|right|top|bottom} category-position
|
|
485
|
-
*/
|
|
486
|
-
categoryPosition: ChartCategoryPosition | null | undefined;
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* Specifies whether to hide legend or show.
|
|
490
|
-
* Legend configuration can be set up via additionalOptions property
|
|
491
|
-
* @attr {boolean} no-legend
|
|
492
|
-
*/
|
|
493
|
-
noLegend: boolean | null | undefined;
|
|
494
|
-
|
|
495
|
-
/**
|
|
496
|
-
* Specifies how series are stacked on top of each other.
|
|
497
|
-
* Possible values are null, "normal" or "percent".
|
|
498
|
-
* If "stack" property is not defined on the vaadin-chart-series elements, then series will be put into
|
|
499
|
-
* the default stack.
|
|
500
|
-
* @attr {normal|percent} stacking
|
|
501
|
-
*/
|
|
502
|
-
stacking: ChartStacking | null | undefined;
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
* Specifies whether the chart is a normal chart or a timeline chart.
|
|
506
|
-
* Value of this property is ignored for Gantt charts (type="gantt").
|
|
507
|
-
*/
|
|
508
|
-
timeline: boolean | null | undefined;
|
|
509
|
-
|
|
510
|
-
/**
|
|
511
|
-
* Represents the title of the chart.
|
|
512
|
-
*/
|
|
513
|
-
title: string;
|
|
514
|
-
|
|
515
|
-
/**
|
|
516
|
-
* Whether or not to show tooltip when hovering data points.
|
|
517
|
-
*/
|
|
518
|
-
tooltip: boolean | null | undefined;
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* Sets the default series type of the chart.
|
|
522
|
-
* Note that `'bar'`, `'gauge'` and `'solidgauge'` should be set as default series type.
|
|
523
|
-
*/
|
|
524
|
-
type: string | null | undefined;
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* Represents the subtitle of the chart.
|
|
528
|
-
*/
|
|
529
|
-
subtitle: string | undefined;
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* Specifies whether to show chart in 3 or in 2 dimensions.
|
|
533
|
-
* Some display angles are added by default to the "chart.options3d" (`{alpha: 15, beta: 15, depth: 50}`).
|
|
534
|
-
* 3D display options can be modified via `additionalOptions`.
|
|
535
|
-
* The thickness of a Pie chart can be set on `additionalOptions` through `plotOptions.pie.depth`.
|
|
536
|
-
* 3D is supported by Bar, Column, Pie and Scatter3D charts.
|
|
537
|
-
* More info available at [Highcharts](https://www.highcharts.com/docs/chart-concepts/3d-charts).
|
|
538
|
-
*/
|
|
539
|
-
chart3d: boolean | null | undefined;
|
|
540
|
-
|
|
541
|
-
/**
|
|
542
|
-
* Specifies the message displayed on a chart without displayable data.
|
|
543
|
-
* @attr {string} empty-text
|
|
544
|
-
*/
|
|
545
|
-
emptyText: string;
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* Represents additional JSON configuration.
|
|
549
|
-
*/
|
|
550
|
-
additionalOptions: Options | null | undefined;
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* When present, cartesian charts like line, spline, area and column are transformed
|
|
554
|
-
* into the polar coordinate system.
|
|
555
|
-
*/
|
|
556
|
-
polar: boolean | null | undefined;
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* Update the chart configuration.
|
|
560
|
-
* This JSON API provides a simple single-argument alternative to the configuration property.
|
|
561
|
-
*
|
|
562
|
-
* Styling properties specified in this configuration will be ignored. To learn about chart styling
|
|
563
|
-
* please see the CSS Styling section above.
|
|
564
|
-
*
|
|
565
|
-
* @param {!Options} jsonConfiguration Object chart configuration. Most important properties are:
|
|
566
|
-
*
|
|
567
|
-
* - annotations `Object[]` custom labels or shapes that can be tied to points, axis coordinates or chart pixel coordinates.
|
|
568
|
-
* Detailed API for annotations object is available in [API Site](http://api.highcharts.com/highcharts/annotations)
|
|
569
|
-
* - chart `Object` with options regarding the chart area and plot area as well as general chart options.
|
|
570
|
-
* Detailed API for chart object is available in [API Site](http://api.highcharts.com/highcharts/chart)
|
|
571
|
-
* - credits `Object` with options regarding the chart area and plot area as well as general chart options.
|
|
572
|
-
* Detailed API for credits object is available in [API Site](http://api.highcharts.com/highcharts/credits)
|
|
573
|
-
* - plotOptions `Object` wrapper for config objects for each series type.
|
|
574
|
-
* Detailed API for plotOptions object is available in [API Site](http://api.highcharts.com/highcharts/plotOptions)
|
|
575
|
-
* - series `Object[]` the actual series to append to the chart.
|
|
576
|
-
* Detailed API for series object is available in [API Site](http://api.highcharts.com/highcharts/series)
|
|
577
|
-
* - subtitle `Object` the chart's subtitle.
|
|
578
|
-
* Detailed API for subtitle object is available in [API Site](http://api.highcharts.com/highcharts/subtitle)
|
|
579
|
-
* - title `Object` the chart's main title.
|
|
580
|
-
* Detailed API for title object is available in [API Site](http://api.highcharts.com/highcharts/title)
|
|
581
|
-
* - tooltip `Object` Options for the tooltip that appears when the user hovers over a series or point.
|
|
582
|
-
* Detailed API for tooltip object is available in [API Site](http://api.highcharts.com/highcharts/tooltip)
|
|
583
|
-
* - xAxis `Object[]` The X axis or category axis. Normally this is the horizontal axis.
|
|
584
|
-
* Detailed API for xAxis object is available in [API Site](http://api.highcharts.com/highcharts/xAxis)
|
|
585
|
-
* - yAxis `Object[]` The Y axis or value axis. Normally this is the vertical axis.
|
|
586
|
-
* Detailed API for yAxis object is available in [API Site](http://api.highcharts.com/highcharts/yAxis)
|
|
587
|
-
* - zAxis `Object[]` The Z axis or depth axis for 3D plots.
|
|
588
|
-
* Detailed API for zAxis object is available in [API Site](http://api.highcharts.com/highcharts/zAxis)
|
|
589
|
-
*
|
|
590
|
-
* @param {boolean=} resetConfiguration Optional boolean that should be set to true if no other chart configuration was set before or
|
|
591
|
-
* if existing configuration should be discarded.
|
|
592
|
-
*/
|
|
593
|
-
updateConfiguration(jsonConfiguration: Options, resetConfiguration?: boolean): void;
|
|
594
|
-
|
|
174
|
+
declare class Chart extends ChartMixin(ThemableMixin(ElementMixin(HTMLElement))) {
|
|
595
175
|
addEventListener<K extends keyof ChartEventMap>(
|
|
596
176
|
type: K,
|
|
597
177
|
listener: (this: Chart, ev: ChartEventMap[K]) => void,
|