@vaadin/charts 22.0.2 → 23.0.0-alpha4

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.
@@ -0,0 +1,1028 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
+ * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
+ */
6
+
7
+ /**
8
+ * @license Highcharts
9
+ *
10
+ * (c) 2009-2016 Torstein Honsi
11
+ *
12
+ * License: www.highcharts.com/license
13
+ */
14
+ import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
15
+
16
+ /* When updating this file do not override vaadin-charts custom properties section */
17
+
18
+ const chartBaseTheme = css`
19
+ :host {
20
+ font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif,
21
+ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
22
+ font-size: 12px;
23
+ line-height: normal;
24
+ }
25
+
26
+ .highcharts-container {
27
+ position: relative;
28
+ overflow: hidden;
29
+ width: 100%;
30
+ height: 100%;
31
+ text-align: left;
32
+ z-index: 0;
33
+ /* #1072 */
34
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
35
+ }
36
+
37
+ :where([styled-mode]) .highcharts-root {
38
+ display: block;
39
+ }
40
+
41
+ :where([styled-mode]) .highcharts-root text {
42
+ stroke-width: 0;
43
+ }
44
+
45
+ :where([styled-mode]) .highcharts-strong {
46
+ font-weight: 600;
47
+ }
48
+
49
+ :where([styled-mode]) .highcharts-emphasized {
50
+ font-style: italic;
51
+ }
52
+
53
+ :where([styled-mode]) .highcharts-anchor {
54
+ cursor: pointer;
55
+ }
56
+
57
+ :where([styled-mode]) .highcharts-background {
58
+ fill: var(--vaadin-charts-background, #fff);
59
+ }
60
+
61
+ :where([styled-mode]) .highcharts-plot-border,
62
+ :where([styled-mode]) .highcharts-plot-background {
63
+ fill: none;
64
+ }
65
+
66
+ :where([styled-mode]) .highcharts-label-box {
67
+ fill: none;
68
+ }
69
+
70
+ :where([styled-mode]) .highcharts-button-box {
71
+ fill: inherit;
72
+ }
73
+
74
+ :where([styled-mode]) .highcharts-tracker-line {
75
+ stroke-linejoin: round;
76
+ stroke: rgba(192, 192, 192, 0.0001);
77
+ stroke-width: 22;
78
+ fill: none;
79
+ }
80
+
81
+ :where([styled-mode]) .highcharts-tracker-area {
82
+ fill: rgba(192, 192, 192, 0.0001);
83
+ stroke-width: 0;
84
+ }
85
+
86
+ /* Titles */
87
+ :where([styled-mode]) .highcharts-title {
88
+ fill: var(--vaadin-charts-title-label, hsl(214, 35%, 15%));
89
+ font-size: 1.5em;
90
+ font-weight: 600;
91
+ }
92
+
93
+ :where([styled-mode]) .highcharts-subtitle {
94
+ fill: var(--vaadin-charts-secondary-label, hsla(214, 42%, 18%, 0.72));
95
+ }
96
+
97
+ /* Axes */
98
+ :where([styled-mode]) .highcharts-axis-line {
99
+ fill: none;
100
+ stroke: var(--vaadin-charts-axis-line, hsla(214, 61%, 25%, 0.05));
101
+ }
102
+
103
+ :where([styled-mode]) .highcharts-yaxis .highcharts-axis-line {
104
+ stroke-width: 0;
105
+ }
106
+
107
+ :where([styled-mode]) .highcharts-axis-title {
108
+ fill: var(--vaadin-charts-axis-title, hsla(214, 42%, 18%, 0.72));
109
+ }
110
+
111
+ :where([styled-mode]) .highcharts-axis-labels {
112
+ fill: var(--vaadin-charts-axis-label, hsla(214, 42%, 18%, 0.72));
113
+ cursor: default;
114
+ font-size: 0.9em;
115
+ }
116
+
117
+ :where([styled-mode]) .highcharts-grid-line {
118
+ fill: none;
119
+ stroke: var(--vaadin-charts-grid-line, hsla(214, 53%, 23%, 0.16));
120
+ }
121
+
122
+ :where([styled-mode]) .highcharts-xaxis-grid .highcharts-grid-line {
123
+ stroke-width: var(--vaadin-charts-xaxis-line-width, 0px);
124
+ }
125
+
126
+ :where([styled-mode]) .highcharts-tick {
127
+ stroke: var(--vaadin-charts-grid-line, hsla(214, 53%, 23%, 0.16));
128
+ }
129
+
130
+ :where([styled-mode]) .highcharts-yaxis .highcharts-tick {
131
+ stroke-width: 0;
132
+ }
133
+
134
+ :where([styled-mode]) .highcharts-minor-grid-line {
135
+ stroke: var(--vaadin-charts-contrast-5pct, hsla(214, 61%, 25%, 0.05));
136
+ }
137
+
138
+ :where([styled-mode]) .highcharts-crosshair-thin {
139
+ stroke-width: 1px;
140
+ stroke: var(--vaadin-charts-grid-line, hsla(214, 53%, 23%, 0.16));
141
+ }
142
+
143
+ :where([styled-mode]) .highcharts-crosshair-category {
144
+ stroke: var(--vaadin-charts-color-0, #5ac2f7);
145
+ stroke-opacity: 0.25;
146
+ }
147
+
148
+ /* Credits */
149
+ :where([styled-mode]) .highcharts-credits {
150
+ cursor: pointer;
151
+ fill: var(--vaadin-charts-disabled-label, hsla(214, 50%, 22%, 0.26));
152
+ font-size: 0.7em;
153
+ transition: fill 250ms, font-size 250ms;
154
+ }
155
+
156
+ :where([styled-mode]) .highcharts-credits:hover {
157
+ fill: black;
158
+ font-size: 1em;
159
+ }
160
+
161
+ /* Tooltip */
162
+ :where([styled-mode]) .highcharts-tooltip {
163
+ cursor: default;
164
+ pointer-events: none;
165
+ white-space: nowrap;
166
+ transition: stroke 150ms;
167
+ }
168
+
169
+ :where([styled-mode]) .highcharts-tooltip {
170
+ filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05)) !important;
171
+ }
172
+
173
+ :where([styled-mode]) .highcharts-tooltip text {
174
+ fill: var(--vaadin-charts-data-label, hsla(214, 40%, 16%, 0.94));
175
+ }
176
+
177
+ :where([styled-mode]) .highcharts-tooltip .highcharts-header {
178
+ font-size: 0.85em;
179
+ color: var(--vaadin-charts-secondary-label, hsla(214, 42%, 18%, 0.72));
180
+ }
181
+
182
+ :where([styled-mode]) .highcharts-tooltip-box {
183
+ stroke-width: 1px;
184
+ stroke: var(--vaadin-charts-tooltip-border, inherit);
185
+ fill: var(--vaadin-charts-tooltip-background, #fff);
186
+ fill-opacity: var(--vaadin-charts-tooltip-background-opacity, 1);
187
+ }
188
+
189
+ :where([styled-mode]) .highcharts-tooltip-box .highcharts-label-box {
190
+ fill: var(--vaadin-charts-tooltip-background, #fff);
191
+ fill-opacity: var(--vaadin-charts-tooltip-background-opacity, 1);
192
+ }
193
+
194
+ :where([styled-mode]) .highcharts-tooltip-header {
195
+ stroke-width: 1px;
196
+ stroke: var(--vaadin-charts-contrast-20pct, hsla(214, 53%, 23%, 0.16));
197
+ }
198
+
199
+ :where([styled-mode]) div.highcharts-tooltip {
200
+ filter: none;
201
+ }
202
+
203
+ :where([styled-mode]) .highcharts-selection-marker {
204
+ fill: var(--vaadin-charts-color-0, #5ac2f7);
205
+ fill-opacity: 0.25;
206
+ }
207
+
208
+ :where([styled-mode]) .highcharts-graph {
209
+ fill: none;
210
+ stroke-width: 2px;
211
+ stroke-linecap: round;
212
+ stroke-linejoin: round;
213
+ }
214
+
215
+ :where([styled-mode]) .highcharts-state-hover .highcharts-graph {
216
+ stroke-width: 3;
217
+ }
218
+
219
+ :where([styled-mode]) .highcharts-point-inactive {
220
+ opacity: 0.2;
221
+ transition: opacity 50ms;
222
+ /* quick in */
223
+ }
224
+
225
+ :where([styled-mode]) .highcharts-series-inactive {
226
+ opacity: 0.2;
227
+ transition: opacity 50ms;
228
+ /* quick in */
229
+ }
230
+
231
+ :where([styled-mode]) .highcharts-state-hover path {
232
+ transition: stroke-width 50ms;
233
+ /* quick in */
234
+ }
235
+
236
+ :where([styled-mode]) .highcharts-state-normal path {
237
+ transition: stroke-width 250ms;
238
+ /* slow out */
239
+ }
240
+
241
+ /* Legend hover affects points and series */
242
+ :where([styled-mode]) g.highcharts-series,
243
+ :where([styled-mode]) .highcharts-point,
244
+ :where([styled-mode]) .highcharts-markers,
245
+ :where([styled-mode]) .highcharts-data-labels {
246
+ transition: opacity 250ms;
247
+ }
248
+
249
+ :where([styled-mode]) .highcharts-legend-series-active g.highcharts-series:not(.highcharts-series-hover),
250
+ :where([styled-mode]) .highcharts-legend-point-active .highcharts-point:not(.highcharts-point-hover),
251
+ :where([styled-mode]) .highcharts-legend-series-active .highcharts-markers:not(.highcharts-series-hover),
252
+ :where([styled-mode]) .highcharts-legend-series-active .highcharts-data-labels:not(.highcharts-series-hover) {
253
+ opacity: 0.2;
254
+ }
255
+
256
+ /* Series options */
257
+ /* Default colors */
258
+ /* vaadin-charts custom properties */
259
+ /* Use of :where() function to avoid setting classes with high specificity */
260
+ :where([styled-mode]) .highcharts-color-0 {
261
+ fill: var(--vaadin-charts-color-0, #5ac2f7);
262
+ stroke: var(--vaadin-charts-color-0, #5ac2f7);
263
+ }
264
+
265
+ :where([styled-mode]) .highcharts-color-1 {
266
+ fill: var(--vaadin-charts-color-1, #1676f3);
267
+ stroke: var(--vaadin-charts-color-1, #1676f3);
268
+ }
269
+
270
+ :where([styled-mode]) .highcharts-color-2 {
271
+ fill: var(--vaadin-charts-color-2, #ff7d94);
272
+ stroke: var(--vaadin-charts-color-2, #ff7d94);
273
+ }
274
+
275
+ :where([styled-mode]) .highcharts-color-3 {
276
+ fill: var(--vaadin-charts-color-3, #c5164e);
277
+ stroke: var(--vaadin-charts-color-3, #c5164e);
278
+ }
279
+
280
+ :where([styled-mode]) .highcharts-color-4 {
281
+ fill: var(--vaadin-charts-color-4, #15c15d);
282
+ stroke: var(--vaadin-charts-color-4, #15c15d);
283
+ }
284
+
285
+ :where([styled-mode]) .highcharts-color-5 {
286
+ fill: var(--vaadin-charts-color-5, #0e8151);
287
+ stroke: var(--vaadin-charts-color-5, #0e8151);
288
+ }
289
+
290
+ :where([styled-mode]) .highcharts-color-6 {
291
+ fill: var(--vaadin-charts-color-6, #c18ed2);
292
+ stroke: var(--vaadin-charts-color-6, #c18ed2);
293
+ }
294
+
295
+ :where([styled-mode]) .highcharts-color-7 {
296
+ fill: var(--vaadin-charts-color-7, #9233b3);
297
+ stroke: var(--vaadin-charts-color-7, #9233b3);
298
+ }
299
+
300
+ :where([styled-mode]) .highcharts-color-8 {
301
+ fill: var(--vaadin-charts-color-8, #fda253);
302
+ stroke: var(--vaadin-charts-color-8, #fda253);
303
+ }
304
+
305
+ :where([styled-mode]) .highcharts-color-9 {
306
+ fill: var(--vaadin-charts-color-9, #e24932);
307
+ stroke: var(--vaadin-charts-color-9, #e24932);
308
+ }
309
+
310
+ /* end of vaadin-charts custom properties */
311
+
312
+ :where([styled-mode]) .highcharts-area {
313
+ fill-opacity: 0.5;
314
+ stroke-width: 0;
315
+ }
316
+
317
+ :where([styled-mode]) .highcharts-markers {
318
+ stroke-width: 1px;
319
+ stroke: var(--vaadin-charts-background, #fff);
320
+ }
321
+
322
+ :where([styled-mode])
323
+ .highcharts-a11y-markers-hidden
324
+ .highcharts-point:not(.highcharts-point-hover):not(.highcharts-a11y-marker-visible),
325
+ :where([styled-mode]) .highcharts-a11y-marker-hidden {
326
+ opacity: 0;
327
+ }
328
+
329
+ :where([styled-mode]) .highcharts-point {
330
+ stroke-width: 1px;
331
+ }
332
+
333
+ :where([styled-mode]) .highcharts-dense-data .highcharts-point {
334
+ stroke-width: 0;
335
+ }
336
+
337
+ :where([styled-mode]) .highcharts-data-label {
338
+ font-size: 0.9em;
339
+ font-weight: normal;
340
+ }
341
+
342
+ :where([styled-mode]) .highcharts-data-label-box {
343
+ fill: none;
344
+ stroke-width: 0;
345
+ }
346
+
347
+ :where([styled-mode]) .highcharts-data-label text,
348
+ :where([styled-mode]) text.highcharts-data-label {
349
+ fill: var(--vaadin-charts-data-label, hsla(214, 40%, 16%, 0.94));
350
+ }
351
+
352
+ :where([styled-mode]) .highcharts-data-label-connector {
353
+ fill: none;
354
+ }
355
+
356
+ :where([styled-mode]) .highcharts-data-label-hidden {
357
+ pointer-events: none;
358
+ }
359
+
360
+ :where([styled-mode]) .highcharts-halo {
361
+ fill-opacity: 0.25;
362
+ stroke-width: 0;
363
+ }
364
+
365
+ :where([styled-mode]) .highcharts-series:not(.highcharts-pie-series) .highcharts-point-select,
366
+ :where([styled-mode]) .highcharts-markers .highcharts-point-select {
367
+ fill: var(--vaadin-charts-grid-line, hsla(214, 53%, 23%, 0.16));
368
+ stroke: var(--vaadin-charts-contrast, hsl(214, 35%, 15%));
369
+ }
370
+
371
+ :where([styled-mode]) .highcharts-column-series rect.highcharts-point {
372
+ stroke: var(--vaadin-charts-background, #fff);
373
+ }
374
+
375
+ :where([styled-mode]) .highcharts-column-series .highcharts-point {
376
+ transition: fill-opacity 250ms;
377
+ }
378
+
379
+ :where([styled-mode]) .highcharts-column-series .highcharts-point-hover {
380
+ fill-opacity: 0.75;
381
+ transition: fill-opacity 50ms;
382
+ }
383
+
384
+ :where([styled-mode]) .highcharts-pie-series .highcharts-point {
385
+ stroke-linejoin: round;
386
+ stroke: var(--vaadin-charts-background, #fff);
387
+ }
388
+
389
+ :where([styled-mode]) .highcharts-pie-series .highcharts-point-hover {
390
+ fill-opacity: 0.75;
391
+ transition: fill-opacity 50ms;
392
+ }
393
+
394
+ :where([styled-mode]) .highcharts-funnel-series .highcharts-point {
395
+ stroke-linejoin: round;
396
+ stroke: var(--vaadin-charts-background, #fff);
397
+ stroke-width: 2px;
398
+ }
399
+
400
+ :where([styled-mode]) .highcharts-funnel-series .highcharts-point-hover {
401
+ fill-opacity: 0.75;
402
+ transition: fill-opacity 50ms;
403
+ }
404
+
405
+ :where([styled-mode]) .highcharts-funnel-series .highcharts-point-select {
406
+ fill: inherit;
407
+ stroke: inherit;
408
+ }
409
+
410
+ :where([styled-mode]) .highcharts-pyramid-series .highcharts-point {
411
+ stroke-linejoin: round;
412
+ stroke: var(--vaadin-charts-background, #fff);
413
+ stroke-width: 2px;
414
+ }
415
+
416
+ :where([styled-mode]) .highcharts-pyramid-series .highcharts-point-hover {
417
+ fill-opacity: 0.75;
418
+ transition: fill-opacity 50ms;
419
+ }
420
+
421
+ :where([styled-mode]) .highcharts-pyramid-series .highcharts-point-select {
422
+ fill: inherit;
423
+ stroke: inherit;
424
+ }
425
+
426
+ :where([styled-mode]) .highcharts-solidgauge-series .highcharts-point {
427
+ stroke-width: 0;
428
+ }
429
+
430
+ :where([styled-mode]) .highcharts-treemap-series .highcharts-point {
431
+ stroke-width: 2px;
432
+ stroke: var(--vaadin-charts-background, #fff);
433
+ transition: stroke 250ms, fill 250ms, fill-opacity 250ms;
434
+ }
435
+
436
+ :where([styled-mode]) .highcharts-treemap-series .highcharts-point-hover {
437
+ stroke-width: 0px;
438
+ stroke: var(--vaadin-charts-background, #fff);
439
+ fill-opacity: 0.75;
440
+ transition: stroke 25ms, fill 25ms, fill-opacity 25ms;
441
+ }
442
+
443
+ :where([styled-mode]) .highcharts-treemap-series .highcharts-above-level {
444
+ display: none;
445
+ }
446
+
447
+ :where([styled-mode]) .highcharts-treemap-series .highcharts-internal-node {
448
+ fill: none;
449
+ }
450
+
451
+ :where([styled-mode]) .highcharts-treemap-series .highcharts-internal-node-interactive {
452
+ fill-opacity: 0.15;
453
+ cursor: pointer;
454
+ }
455
+
456
+ :where([styled-mode]) .highcharts-treemap-series .highcharts-internal-node-interactive:hover {
457
+ fill-opacity: 0.75;
458
+ }
459
+
460
+ :where([styled-mode]) .highcharts-vector-series .highcharts-point {
461
+ fill: none;
462
+ stroke-width: 2px;
463
+ }
464
+
465
+ :where([styled-mode]) .highcharts-windbarb-series .highcharts-point {
466
+ fill: none;
467
+ stroke-width: 2px;
468
+ }
469
+
470
+ :where([styled-mode]) .highcharts-lollipop-stem {
471
+ stroke: var(--vaadin-charts-contrast, hsl(214, 35%, 15%));
472
+ }
473
+
474
+ :where([styled-mode]) .highcharts-focus-border {
475
+ fill: none;
476
+ stroke-width: 2px;
477
+ }
478
+
479
+ :where([styled-mode]) .highcharts-legend-item-hidden .highcharts-focus-border {
480
+ fill: none !important;
481
+ }
482
+
483
+ /* Legend */
484
+ :where([styled-mode]) .highcharts-legend-box {
485
+ fill: none;
486
+ stroke-width: 0;
487
+ }
488
+
489
+ :where([styled-mode]) .highcharts-legend-item > text {
490
+ fill: var(--vaadin-charts-data-label, hsla(214, 40%, 16%, 0.94));
491
+ font-weight: normal;
492
+ font-size: 1em;
493
+ cursor: pointer;
494
+ stroke-width: 0;
495
+ }
496
+
497
+ :where([styled-mode]) .highcharts-legend-item > .highcharts-point {
498
+ stroke-width: 0px;
499
+ }
500
+
501
+ :where([styled-mode]) .highcharts-legend-item:hover text {
502
+ fill: var(--vaadin-charts-title-label, hsl(214, 35%, 15%));
503
+ }
504
+
505
+ :where([styled-mode]) .highcharts-legend-item-hidden * {
506
+ fill: var(--vaadin-charts-disabled-label, hsla(214, 50%, 22%, 0.26)) !important;
507
+ stroke: var(--vaadin-charts-disabled-label, hsla(214, 50%, 22%, 0.26)) !important;
508
+ transition: fill 250ms;
509
+ }
510
+
511
+ :where([styled-mode]) .highcharts-legend-nav-active {
512
+ fill: var(--vaadin-charts-button-label, hsl(214, 90%, 52%));
513
+ cursor: pointer;
514
+ }
515
+
516
+ :where([styled-mode]) .highcharts-legend-nav-inactive {
517
+ fill: var(--vaadin-charts-disabled-label, hsla(214, 50%, 22%, 0.26));
518
+ }
519
+
520
+ :where([styled-mode]) circle.highcharts-legend-nav-active,
521
+ :where([styled-mode]) circle.highcharts-legend-nav-inactive {
522
+ /* tracker */
523
+ fill: rgba(192, 192, 192, 0.0001);
524
+ }
525
+
526
+ :where([styled-mode]) .highcharts-legend-title-box {
527
+ fill: none;
528
+ stroke-width: 0;
529
+ }
530
+
531
+ /* Bubble legend */
532
+ :where([styled-mode]) .highcharts-bubble-legend-symbol {
533
+ stroke-width: 2;
534
+ fill-opacity: 0.5;
535
+ }
536
+
537
+ :where([styled-mode]) .highcharts-bubble-legend-connectors {
538
+ stroke-width: 1;
539
+ }
540
+
541
+ :where([styled-mode]) .highcharts-bubble-legend-labels {
542
+ fill: var(--vaadin-charts-data-label, hsla(214, 40%, 16%, 0.94));
543
+ }
544
+
545
+ /* Loading */
546
+ :where([styled-mode]) .highcharts-loading {
547
+ position: absolute;
548
+ background-color: var(--vaadin-charts-background, #fff);
549
+ opacity: 0.5;
550
+ text-align: center;
551
+ z-index: 10;
552
+ transition: opacity 250ms;
553
+ }
554
+
555
+ :where([styled-mode]) .highcharts-loading-hidden {
556
+ height: 0 !important;
557
+ opacity: 0;
558
+ overflow: hidden;
559
+ transition: opacity 250ms, height 250ms step-end;
560
+ }
561
+
562
+ :where([styled-mode]) .highcharts-loading-inner {
563
+ font-weight: normal;
564
+ position: relative;
565
+ top: 45%;
566
+ }
567
+
568
+ /* Plot bands and polar pane backgrounds */
569
+ :where([styled-mode]) .highcharts-plot-band,
570
+ :where([styled-mode]) .highcharts-pane {
571
+ fill: var(--vaadin-charts-contrast, hsl(214, 35%, 15%));
572
+ fill-opacity: 0.05;
573
+ }
574
+
575
+ :where([styled-mode]) .highcharts-plot-line {
576
+ fill: none;
577
+ stroke: var(--vaadin-charts-contrast-60pct, hsla(214, 43%, 19%, 0.61));
578
+ stroke-width: 1px;
579
+ }
580
+
581
+ :where([styled-mode]) .highcharts-plot-line-label {
582
+ fill: var(--vaadin-charts-data-label, hsla(214, 40%, 16%, 0.94));
583
+ }
584
+
585
+ /* Highcharts More and modules */
586
+ :where([styled-mode]) .highcharts-boxplot-box {
587
+ fill: var(--vaadin-charts-background, #fff);
588
+ }
589
+
590
+ :where([styled-mode]) .highcharts-boxplot-median {
591
+ stroke-width: 2px;
592
+ }
593
+
594
+ :where([styled-mode]) .highcharts-bubble-series .highcharts-point {
595
+ fill-opacity: 0.5;
596
+ }
597
+
598
+ :where([styled-mode]) .highcharts-errorbar-series .highcharts-point {
599
+ stroke: var(--vaadin-charts-contrast, hsl(214, 35%, 15%));
600
+ }
601
+
602
+ :where([styled-mode]) .highcharts-gauge-series .highcharts-data-label-box {
603
+ stroke: var(--vaadin-charts-grid-line, hsla(214, 53%, 23%, 0.16));
604
+ stroke-width: 1px;
605
+ }
606
+
607
+ :where([styled-mode]) .highcharts-gauge-series .highcharts-dial {
608
+ fill: var(--vaadin-charts-contrast, hsl(214, 35%, 15%));
609
+ stroke-width: 0;
610
+ }
611
+
612
+ :where([styled-mode]) .highcharts-polygon-series .highcharts-graph {
613
+ fill: inherit;
614
+ stroke-width: 0;
615
+ }
616
+
617
+ :where([styled-mode]) .highcharts-waterfall-series .highcharts-graph {
618
+ stroke: var(--vaadin-charts-contrast-60pct, hsla(214, 43%, 19%, 0.61));
619
+ stroke-dasharray: 1, 3;
620
+ }
621
+
622
+ :where([styled-mode]) .highcharts-sankey-series .highcharts-point {
623
+ stroke-width: 0;
624
+ }
625
+
626
+ :where([styled-mode]) .highcharts-sankey-series .highcharts-link {
627
+ transition: fill 250ms, fill-opacity 250ms;
628
+ fill-opacity: 0.5;
629
+ }
630
+
631
+ :where([styled-mode]) .highcharts-sankey-series .highcharts-point-hover.highcharts-link {
632
+ transition: fill 50ms, fill-opacity 50ms;
633
+ fill-opacity: 1;
634
+ }
635
+
636
+ :where([styled-mode]) .highcharts-venn-series .highcharts-point {
637
+ fill-opacity: 0.75;
638
+ stroke: var(--vaadin-charts-background, #fff);
639
+ transition: stroke 250ms, fill-opacity 250ms;
640
+ }
641
+
642
+ :where([styled-mode]) .highcharts-venn-series .highcharts-point-hover {
643
+ fill-opacity: 1;
644
+ stroke: var(--vaadin-charts-background, #fff);
645
+ }
646
+
647
+ /* Highstock */
648
+ :where([styled-mode]) .highcharts-navigator-mask-outside {
649
+ fill-opacity: 0;
650
+ }
651
+
652
+ :where([styled-mode]) .highcharts-navigator-mask-inside {
653
+ fill: var(--vaadin-charts-color-0, #5ac2f7);
654
+ /* navigator.maskFill option */
655
+ fill-opacity: 0.2;
656
+ cursor: ew-resize;
657
+ }
658
+
659
+ :where([styled-mode]) .highcharts-navigator-outline {
660
+ stroke: var(--vaadin-charts-grid-line, hsla(214, 53%, 23%, 0.16));
661
+ fill: none;
662
+ }
663
+
664
+ :where([styled-mode]) .highcharts-navigator-handle {
665
+ stroke: var(--vaadin-charts-contrast-20pct, hsla(214, 53%, 23%, 0.16));
666
+ fill: var(--vaadin-charts-background, #fff);
667
+ cursor: ew-resize;
668
+ }
669
+
670
+ :where([styled-mode]) .highcharts-navigator-series {
671
+ fill: var(--vaadin-charts-color-1, #1676f3);
672
+ stroke: var(--vaadin-charts-color-1, #1676f3);
673
+ }
674
+
675
+ :where([styled-mode]) .highcharts-navigator-series .highcharts-graph {
676
+ stroke-width: 1px;
677
+ }
678
+
679
+ :where([styled-mode]) .highcharts-navigator-series .highcharts-area {
680
+ fill-opacity: 0.05;
681
+ }
682
+
683
+ :where([styled-mode]) .highcharts-navigator-xaxis .highcharts-axis-line {
684
+ stroke-width: 0;
685
+ }
686
+
687
+ :where([styled-mode]) .highcharts-navigator-xaxis .highcharts-grid-line {
688
+ stroke-width: 1px;
689
+ stroke: var(--vaadin-charts-grid-line, hsla(214, 53%, 23%, 0.16));
690
+ }
691
+
692
+ :where([styled-mode]) .highcharts-navigator-xaxis.highcharts-axis-labels {
693
+ fill: var(--vaadin-charts-secondary-label, hsla(214, 42%, 18%, 0.72));
694
+ }
695
+
696
+ :where([styled-mode]) .highcharts-navigator-yaxis .highcharts-grid-line {
697
+ stroke-width: 0;
698
+ }
699
+
700
+ :where([styled-mode]) .highcharts-scrollbar-thumb {
701
+ fill: var(--vaadin-charts-contrast-20pct, hsla(214, 53%, 23%, 0.16));
702
+ }
703
+
704
+ :where([styled-mode]) .highcharts-scrollbar-button {
705
+ fill: var(--vaadin-charts-background, #fff);
706
+ }
707
+
708
+ :where([styled-mode]) .highcharts-scrollbar-arrow {
709
+ fill: var(--vaadin-charts-data-label, hsla(214, 40%, 16%, 0.94));
710
+ }
711
+
712
+ :where([styled-mode]) .highcharts-scrollbar-rifles {
713
+ stroke: var(--vaadin-charts-data-label, hsla(214, 40%, 16%, 0.94));
714
+ stroke-width: 1px;
715
+ }
716
+
717
+ :where([styled-mode]) .highcharts-scrollbar-track {
718
+ fill: var(--vaadin-charts-contrast-5pct, hsla(214, 61%, 25%, 0.05));
719
+ }
720
+
721
+ :where([styled-mode]) .highcharts-button {
722
+ fill: var(--vaadin-charts-button-background, hsla(214, 61%, 25%, 0.05));
723
+ cursor: default;
724
+ transition: fill 250ms;
725
+ }
726
+
727
+ :where([styled-mode]) .highcharts-button text {
728
+ fill: var(--vaadin-charts-button-label, hsl(214, 90%, 52%));
729
+ font-weight: 600;
730
+ }
731
+
732
+ :where([styled-mode]) .highcharts-button-hover {
733
+ transition: fill 0ms;
734
+ fill: var(--vaadin-charts-button-hover-background, hsla(214, 90%, 52%, 0.1));
735
+ stroke-width: 0px;
736
+ }
737
+
738
+ :where([styled-mode]) .highcharts-button-hover text {
739
+ fill: var(--vaadin-charts-button-label, hsl(214, 90%, 52%));
740
+ }
741
+
742
+ :where([styled-mode]) .highcharts-button-pressed {
743
+ fill: var(--vaadin-charts-button-active-background, hsl(214, 90%, 52%));
744
+ }
745
+
746
+ :where([styled-mode]) .highcharts-button-pressed text {
747
+ fill: var(--vaadin-charts-button-active-label, #fff);
748
+ }
749
+
750
+ :where([styled-mode]) .highcharts-button-disabled text {
751
+ fill: var(--vaadin-charts-button-label, hsl(214, 90%, 52%));
752
+ }
753
+
754
+ :where([styled-mode]) .highcharts-range-selector-buttons > text {
755
+ fill: var(--vaadin-charts-secondary-label, hsla(214, 42%, 18%, 0.72));
756
+ }
757
+
758
+ :where([styled-mode]) .highcharts-range-selector-buttons .highcharts-button {
759
+ stroke-width: 0;
760
+ }
761
+
762
+ :where([styled-mode]) .highcharts-range-label rect {
763
+ fill: none;
764
+ }
765
+
766
+ :where([styled-mode]) .highcharts-range-label text {
767
+ fill: var(--vaadin-charts-secondary-label, hsla(214, 42%, 18%, 0.72));
768
+ }
769
+
770
+ :where([styled-mode]) .highcharts-range-input rect {
771
+ fill: var(--vaadin-charts-contrast-10pct, hsla(214, 57%, 24%, 0.1));
772
+ rx: 2;
773
+ ry: 2;
774
+ }
775
+
776
+ :where([styled-mode]) .highcharts-range-input:hover rect {
777
+ fill: var(--vaadin-charts-contrast-20pct, hsla(214, 53%, 23%, 0.16));
778
+ transition: fill 250ms;
779
+ }
780
+
781
+ :where([styled-mode]) .highcharts-range-input text {
782
+ fill: var(--vaadin-charts-data-label, hsla(214, 40%, 16%, 0.94));
783
+ }
784
+
785
+ :where([styled-mode]) input.highcharts-range-selector {
786
+ position: absolute;
787
+ border: 0;
788
+ width: 1px;
789
+ /* Chrome needs a pixel to see it */
790
+ height: 1px;
791
+ padding: 0;
792
+ text-align: center;
793
+ left: -9em;
794
+ /* #4798 */
795
+ }
796
+
797
+ :where([styled-mode]) .highcharts-crosshair-label text {
798
+ fill: var(--vaadin-charts-background, #fff);
799
+ font-size: 1.1em;
800
+ }
801
+
802
+ :where([styled-mode]) .highcharts-crosshair-label .highcharts-label-box {
803
+ fill: inherit;
804
+ }
805
+
806
+ :where([styled-mode]) .highcharts-candlestick-series .highcharts-point {
807
+ stroke: var(--vaadin-charts-contrast-60pct, hsla(214, 43%, 19%, 0.61));
808
+ stroke-width: 1px;
809
+ }
810
+
811
+ :where([styled-mode]) .highcharts-candlestick-series .highcharts-point-up {
812
+ fill: var(--vaadin-charts-color-positive, #15c15d);
813
+ }
814
+
815
+ :where([styled-mode]) .highcharts-candlestick-series .highcharts-point-down {
816
+ fill: var(--vaadin-charts-color-negative, #e24932);
817
+ }
818
+
819
+ :where([styled-mode]) .highcharts-ohlc-series .highcharts-point-hover {
820
+ stroke-width: 3px;
821
+ }
822
+
823
+ :where([styled-mode]) .highcharts-flags-series .highcharts-point .highcharts-label-box {
824
+ stroke: var(--vaadin-charts-grid-line, hsla(214, 53%, 23%, 0.16));
825
+ fill: var(--vaadin-charts-background, #fff);
826
+ transition: fill 250ms;
827
+ }
828
+
829
+ :where([styled-mode]) .highcharts-flags-series .highcharts-point-hover .highcharts-label-box {
830
+ stroke: var(--vaadin-charts-contrast-60pct, hsla(214, 43%, 19%, 0.61));
831
+ fill: var(--vaadin-charts-background, #fff);
832
+ }
833
+
834
+ :where([styled-mode]) .highcharts-flags-series .highcharts-point text {
835
+ fill: var(--vaadin-charts-data-label, hsla(214, 40%, 16%, 0.94));
836
+ font-size: 0.9em;
837
+ font-weight: normal;
838
+ }
839
+
840
+ :where([styled-mode]) .highcharts-flags-series .highcharts-point-hover text {
841
+ fill: var(--vaadin-charts-title-label, hsl(214, 35%, 15%));
842
+ }
843
+
844
+ /* Highmaps */
845
+ :where([styled-mode]) .highcharts-map-series .highcharts-point {
846
+ transition: fill 500ms, fill-opacity 500ms, stroke-width 250ms;
847
+ stroke: var(--vaadin-charts-contrast-20pct, hsla(214, 53%, 23%, 0.16));
848
+ }
849
+
850
+ :where([styled-mode]) .highcharts-map-series .highcharts-point-hover {
851
+ transition: fill 0ms, fill-opacity 0ms;
852
+ fill-opacity: 0.5;
853
+ stroke-width: 2px;
854
+ }
855
+
856
+ :where([styled-mode]) .highcharts-mapline-series .highcharts-point {
857
+ fill: none;
858
+ }
859
+
860
+ :where([styled-mode]) .highcharts-heatmap-series .highcharts-point {
861
+ stroke-width: 0;
862
+ }
863
+
864
+ :where([styled-mode]) .highcharts-map-navigation {
865
+ font-size: 1.3em;
866
+ font-weight: normal;
867
+ text-align: center;
868
+ }
869
+
870
+ :where([styled-mode]) .highcharts-coloraxis {
871
+ stroke-width: 0;
872
+ }
873
+
874
+ :where([styled-mode]) .highcharts-coloraxis-grid .highcharts-grid-line {
875
+ stroke: var(--vaadin-charts-background, #fff);
876
+ }
877
+
878
+ :where([styled-mode]) .highcharts-coloraxis-marker {
879
+ fill: var(--vaadin-charts-axis-label, hsla(214, 42%, 18%, 0.72));
880
+ stroke-width: 0px;
881
+ }
882
+
883
+ :where([styled-mode]) .highcharts-null-point {
884
+ fill: var(--vaadin-charts-contrast-5pct, hsla(214, 61%, 25%, 0.05));
885
+ stroke: var(--vaadin-charts-contrast-60pct, hsla(214, 43%, 19%, 0.61));
886
+ }
887
+
888
+ /* 3d charts */
889
+ :where([styled-mode]) .highcharts-3d-frame {
890
+ fill: transparent;
891
+ }
892
+
893
+ /* Exporting module */
894
+ :where([styled-mode]) .highcharts-contextbutton {
895
+ fill: #fff;
896
+ /* needed to capture hover */
897
+ stroke: none;
898
+ stroke-linecap: round;
899
+ }
900
+
901
+ :where([styled-mode]) .highcharts-contextbutton:hover {
902
+ fill: #e6e6e6;
903
+ stroke: #e6e6e6;
904
+ }
905
+
906
+ :where([styled-mode]) .highcharts-button-symbol {
907
+ stroke: var(--vaadin-charts-secondary-label, hsla(214, 42%, 18%, 0.72));
908
+ stroke-width: 3px;
909
+ }
910
+
911
+ :where([styled-mode]) .highcharts-menu {
912
+ border: 1px solid #999;
913
+ background: #fff;
914
+ padding: 5px 0;
915
+ box-shadow: 3px 3px 10px #888;
916
+ }
917
+
918
+ :where([styled-mode]) .highcharts-menu-item {
919
+ padding: 0.5em 1em;
920
+ background: none;
921
+ color: var(--vaadin-charts-button-label, hsl(214, 90%, 52%));
922
+ cursor: pointer;
923
+ transition: background 250ms, color 250ms;
924
+ }
925
+
926
+ :where([styled-mode]) .highcharts-menu-item:hover {
927
+ background: #335cad;
928
+ color: #fff;
929
+ }
930
+
931
+ /* Drilldown module */
932
+ :where([styled-mode]) .highcharts-drilldown-point {
933
+ cursor: pointer;
934
+ }
935
+
936
+ :where([styled-mode]) .highcharts-drilldown-data-label text,
937
+ :where([styled-mode]) text.highcharts-drilldown-data-label,
938
+ :where([styled-mode]) .highcharts-drilldown-axis-label {
939
+ cursor: pointer;
940
+ fill: var(--vaadin-charts-button-label, hsl(214, 90%, 52%));
941
+ font-weight: normal;
942
+ text-decoration: underline;
943
+ }
944
+
945
+ /* No-data module */
946
+ :where([styled-mode]) .highcharts-no-data text {
947
+ font-weight: normal;
948
+ font-size: 1rem;
949
+ fill: var(--vaadin-charts-secondary-label, hsla(214, 42%, 18%, 0.72));
950
+ }
951
+
952
+ /* Drag-panes module */
953
+ :where([styled-mode]) .highcharts-axis-resizer {
954
+ cursor: ns-resize;
955
+ stroke: black;
956
+ stroke-width: 2px;
957
+ }
958
+
959
+ /* Bullet type series */
960
+ :where([styled-mode]) .highcharts-bullet-target {
961
+ stroke-width: 0;
962
+ }
963
+
964
+ /* Lineargauge type series */
965
+ :where([styled-mode]) .highcharts-lineargauge-target {
966
+ stroke-width: 1px;
967
+ stroke: var(--vaadin-charts-contrast-60pct, hsla(214, 43%, 19%, 0.61));
968
+ }
969
+
970
+ :where([styled-mode]) .highcharts-lineargauge-target-line {
971
+ stroke-width: 1px;
972
+ stroke: var(--vaadin-charts-contrast-60pct, hsla(214, 43%, 19%, 0.61));
973
+ }
974
+
975
+ /* Annotations module */
976
+ :where([styled-mode]) .highcharts-annotation-label-box {
977
+ stroke-width: 1px;
978
+ stroke: var(--vaadin-charts-contrast, hsl(214, 35%, 15%));
979
+ fill: var(--vaadin-charts-contrast, hsl(214, 35%, 15%));
980
+ fill-opacity: 0.75;
981
+ }
982
+
983
+ :where([styled-mode]) .highcharts-annotation-label text {
984
+ fill: var(--vaadin-charts-disabled-label, hsla(214, 50%, 22%, 0.26));
985
+ }
986
+
987
+ /* Gantt */
988
+ :where([styled-mode]) .highcharts-treegrid-node-collapsed,
989
+ :where([styled-mode]) .highcharts-treegrid-node-expanded {
990
+ cursor: pointer;
991
+ }
992
+
993
+ :where([styled-mode]) .highcharts-point-connecting-path {
994
+ fill: none;
995
+ }
996
+
997
+ :where([styled-mode]) .highcharts-grid-axis .highcharts-tick {
998
+ stroke-width: 1px;
999
+ }
1000
+
1001
+ :where([styled-mode]) .highcharts-grid-axis .highcharts-axis-line {
1002
+ stroke-width: 1px;
1003
+ }
1004
+
1005
+ /* RTL styles */
1006
+ :host([dir='rtl']) :where([styled-mode]) .highcharts-container {
1007
+ text-align: right;
1008
+ }
1009
+
1010
+ :host([dir='rtl']) :where([styled-mode]) input.highcharts-range-selector {
1011
+ left: auto;
1012
+ right: -9em;
1013
+ }
1014
+
1015
+ :host([dir='rtl']) :where([styled-mode]) .highcharts-menu {
1016
+ box-shadow: -3px 3px 10px #888;
1017
+ }
1018
+
1019
+ /* https://github.com/highcharts/highcharts/issues/16282 */
1020
+ /* without this __mutationCallback always calls __reflow */
1021
+ ul[aria-hidden='false'] {
1022
+ margin: 0px;
1023
+ }
1024
+ `;
1025
+
1026
+ registerStyles('vaadin-chart', chartBaseTheme, { moduleId: 'vaadin-chart-base-theme' });
1027
+
1028
+ export { chartBaseTheme };