@vaadin/charts 25.0.0-alpha2 → 25.0.0-alpha20

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