@vaadin/charts 25.0.0-alpha1 → 25.0.0-alpha11
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 +8 -9
- package/src/helpers.js +11 -0
- package/src/styles/vaadin-chart-base-styles.d.ts +13 -0
- package/{theme/vaadin-chart-base-theme.js → src/styles/vaadin-chart-base-styles.js} +309 -174
- package/src/vaadin-chart.d.ts +0 -5
- package/src/vaadin-chart.js +10 -17
- package/vaadin-chart.js +1 -1
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
- package/theme/lumo/vaadin-chart-styles.d.ts +0 -6
- package/theme/lumo/vaadin-chart-styles.js +0 -97
- package/theme/lumo/vaadin-chart.d.ts +0 -2
- package/theme/lumo/vaadin-chart.js +0 -2
|
@@ -16,16 +16,127 @@
|
|
|
16
16
|
*
|
|
17
17
|
* License: www.highcharts.com/license
|
|
18
18
|
*/
|
|
19
|
-
import
|
|
19
|
+
import '@vaadin/component-base/src/styles/style-props.js';
|
|
20
|
+
import '@vaadin/component-base/src/styles/user-colors.js';
|
|
21
|
+
import { css, unsafeCSS } from 'lit';
|
|
22
|
+
import { addGlobalThemeStyles } from '@vaadin/vaadin-themable-mixin/register-styles.js';
|
|
23
|
+
|
|
24
|
+
/* Tooltip styles, to support `"tooltip": { "outside": true }` config option */
|
|
25
|
+
// postcss-lit-disable-next-line
|
|
26
|
+
const tooltipStyles = (scope) => css`
|
|
27
|
+
${unsafeCSS(scope)} .highcharts-tooltip {
|
|
28
|
+
cursor: default;
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
transition: stroke 150ms;
|
|
32
|
+
filter: drop-shadow(var(--vaadin-charts-tooltip-shadow, 0 4px 8px rgba(0, 0, 0, 0.2))) !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
${unsafeCSS(scope)} .highcharts-tooltip text {
|
|
36
|
+
fill: var(--vaadin-charts-data-label, var(--vaadin-color));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
${unsafeCSS(scope)} .highcharts-tooltip .highcharts-header {
|
|
40
|
+
font-size: 0.85em;
|
|
41
|
+
color: var(--vaadin-color-subtle);
|
|
42
|
+
}
|
|
20
43
|
|
|
21
|
-
|
|
44
|
+
${unsafeCSS(scope)} .highcharts-tooltip-box {
|
|
45
|
+
stroke-width: 1px;
|
|
46
|
+
stroke: var(--vaadin-charts-tooltip-border, var(--vaadin-border-color));
|
|
47
|
+
fill: var(--vaadin-charts-tooltip-background, var(--vaadin-background-color));
|
|
48
|
+
fill-opacity: var(--vaadin-charts-tooltip-background-opacity, 1);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
${unsafeCSS(scope)} .highcharts-tooltip-box .highcharts-label-box {
|
|
52
|
+
fill: var(--vaadin-charts-tooltip-background, var(--vaadin-background-color));
|
|
53
|
+
fill-opacity: var(--vaadin-charts-tooltip-background-opacity, 1);
|
|
54
|
+
stroke: var(--vaadin-charts-tooltip-border, var(--vaadin-border-color));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
${unsafeCSS(scope)} .highcharts-tooltip-header {
|
|
58
|
+
stroke-width: 1px;
|
|
59
|
+
stroke: color-mix(in srgb, var(--vaadin-charts-contrast, var(--_label)) 20%, transparent);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
${unsafeCSS(scope)} div.highcharts-tooltip {
|
|
63
|
+
filter: none;
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
22
66
|
|
|
23
|
-
|
|
67
|
+
addGlobalThemeStyles(
|
|
68
|
+
'vaadin-charts-tooltip',
|
|
69
|
+
css`
|
|
70
|
+
.highcharts-tooltip-container .highcharts-root {
|
|
71
|
+
overflow: visible;
|
|
72
|
+
font-size: var(--vaadin-charts-font-size, 0.75rem);
|
|
73
|
+
line-height: normal;
|
|
74
|
+
}
|
|
75
|
+
`,
|
|
76
|
+
tooltipStyles('.highcharts-tooltip-container'),
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
export const chartStyles = css`
|
|
24
80
|
:host {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
81
|
+
display: block;
|
|
82
|
+
width: 100%;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
font-size: var(--vaadin-charts-font-size, 0.75rem);
|
|
28
85
|
line-height: normal;
|
|
86
|
+
|
|
87
|
+
/* Needs to be a color, not a background image */
|
|
88
|
+
--_bg: var(--vaadin-charts-background, var(--vaadin-background-color));
|
|
89
|
+
|
|
90
|
+
--_color-0: var(--vaadin-charts-color-0, var(--vaadin-user-color-0));
|
|
91
|
+
--_color-1: var(--vaadin-charts-color-1, var(--vaadin-user-color-1));
|
|
92
|
+
--_color-2: var(--vaadin-charts-color-2, var(--vaadin-user-color-2));
|
|
93
|
+
--_color-3: var(--vaadin-charts-color-3, var(--vaadin-user-color-3));
|
|
94
|
+
--_color-4: var(--vaadin-charts-color-4, var(--vaadin-user-color-4));
|
|
95
|
+
--_color-5: var(--vaadin-charts-color-5, var(--vaadin-user-color-5));
|
|
96
|
+
--_color-6: var(--vaadin-charts-color-6, var(--vaadin-user-color-6));
|
|
97
|
+
--_color-7: var(--vaadin-charts-color-7, var(--vaadin-user-color-7));
|
|
98
|
+
--_color-8: var(--vaadin-charts-color-8, var(--vaadin-user-color-8));
|
|
99
|
+
--_color-9: var(--vaadin-charts-color-9, var(--vaadin-user-color-9));
|
|
100
|
+
|
|
101
|
+
--_color-0-label: oklch(from var(--_color-0) clamp(0, (0.62 - l) * 1000, 1) 0 0);
|
|
102
|
+
--_color-1-label: oklch(from var(--_color-1) clamp(0, (0.62 - l) * 1000, 1) 0 0);
|
|
103
|
+
--_color-2-label: oklch(from var(--_color-2) clamp(0, (0.62 - l) * 1000, 1) 0 0);
|
|
104
|
+
--_color-3-label: oklch(from var(--_color-3) clamp(0, (0.62 - l) * 1000, 1) 0 0);
|
|
105
|
+
--_color-4-label: oklch(from var(--_color-4) clamp(0, (0.62 - l) * 1000, 1) 0 0);
|
|
106
|
+
--_color-5-label: oklch(from var(--_color-5) clamp(0, (0.62 - l) * 1000, 1) 0 0);
|
|
107
|
+
--_color-6-label: oklch(from var(--_color-6) clamp(0, (0.62 - l) * 1000, 1) 0 0);
|
|
108
|
+
--_color-7-label: oklch(from var(--_color-7) clamp(0, (0.62 - l) * 1000, 1) 0 0);
|
|
109
|
+
--_color-8-label: oklch(from var(--_color-8) clamp(0, (0.62 - l) * 1000, 1) 0 0);
|
|
110
|
+
--_color-9-label: oklch(from var(--_color-9) clamp(0, (0.62 - l) * 1000, 1) 0 0);
|
|
111
|
+
|
|
112
|
+
--_color-positive: light-dark(#19b156, #1ccc62);
|
|
113
|
+
--_color-negative: light-dark(#dc0611, #f7353f);
|
|
114
|
+
|
|
115
|
+
--_label: var(--vaadin-charts-label, var(--vaadin-color));
|
|
116
|
+
--_secondary-label: var(--vaadin-charts-secondary-label, var(--vaadin-color-subtle));
|
|
117
|
+
--_disabled-label: var(--vaadin-charts-disabled-label, var(--vaadin-color-disabled));
|
|
118
|
+
--_point-border: var(--vaadin-charts-point-border, var(--_bg));
|
|
119
|
+
--_axis-line: var(--vaadin-charts-axis-line, var(--vaadin-border-color));
|
|
120
|
+
--_axis-title: var(--vaadin-charts-axis-title, var(--_secondary-label));
|
|
121
|
+
--_axis-label: var(--vaadin-charts-axis-label, var(--_secondary-label));
|
|
122
|
+
--_grid-line: var(--vaadin-charts-grid-line, var(--vaadin-border-color));
|
|
123
|
+
--_minor-grid-line: var(
|
|
124
|
+
--vaadin-charts-minor-grid-line,
|
|
125
|
+
color-mix(in srgb, var(--vaadin-border-color) 60%, transparent)
|
|
126
|
+
);
|
|
127
|
+
--_data-label: var(--vaadin-charts-data-label, var(--_label));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* Safari 17 doesn't support relative colors from light-dark() */
|
|
131
|
+
@supports not (color: oklch(from light-dark(red, red) l c h)) {
|
|
132
|
+
:host {
|
|
133
|
+
/* Safari 17 wants degrees instead of raw numbers */
|
|
134
|
+
--_hue-scale: 180deg;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:host([hidden]) {
|
|
139
|
+
display: none !important;
|
|
29
140
|
}
|
|
30
141
|
|
|
31
142
|
.highcharts-container {
|
|
@@ -35,7 +146,6 @@ const chartBaseTheme = css`
|
|
|
35
146
|
height: 100%;
|
|
36
147
|
text-align: left;
|
|
37
148
|
z-index: 0;
|
|
38
|
-
/* #1072 */
|
|
39
149
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
40
150
|
}
|
|
41
151
|
|
|
@@ -60,7 +170,7 @@ const chartBaseTheme = css`
|
|
|
60
170
|
}
|
|
61
171
|
|
|
62
172
|
:where([styled-mode]) .highcharts-background {
|
|
63
|
-
fill: var(--
|
|
173
|
+
fill: var(--_bg);
|
|
64
174
|
}
|
|
65
175
|
|
|
66
176
|
:where([styled-mode]) .highcharts-plot-border,
|
|
@@ -74,6 +184,8 @@ const chartBaseTheme = css`
|
|
|
74
184
|
|
|
75
185
|
:where([styled-mode]) .highcharts-button-box {
|
|
76
186
|
fill: inherit;
|
|
187
|
+
rx: var(--vaadin-charts-button-border-radius, var(--vaadin-radius-m));
|
|
188
|
+
ry: var(--vaadin-charts-button-border-radius, var(--vaadin-radius-m));
|
|
77
189
|
}
|
|
78
190
|
|
|
79
191
|
:where([styled-mode]) .highcharts-tracker-line {
|
|
@@ -90,19 +202,19 @@ const chartBaseTheme = css`
|
|
|
90
202
|
|
|
91
203
|
/* Titles */
|
|
92
204
|
:where([styled-mode]) .highcharts-title {
|
|
93
|
-
fill: var(--vaadin-charts-title-label,
|
|
205
|
+
fill: var(--vaadin-charts-title-label, var(--_label));
|
|
94
206
|
font-size: 1.5em;
|
|
95
207
|
font-weight: 600;
|
|
96
208
|
}
|
|
97
209
|
|
|
98
210
|
:where([styled-mode]) .highcharts-subtitle {
|
|
99
|
-
fill: var(--
|
|
211
|
+
fill: var(--_secondary-label);
|
|
100
212
|
}
|
|
101
213
|
|
|
102
214
|
/* Axes */
|
|
103
215
|
:where([styled-mode]) .highcharts-axis-line {
|
|
104
216
|
fill: none;
|
|
105
|
-
stroke: var(--
|
|
217
|
+
stroke: var(--_axis-line);
|
|
106
218
|
}
|
|
107
219
|
|
|
108
220
|
:where([styled-mode]) .highcharts-yaxis .highcharts-axis-line {
|
|
@@ -110,26 +222,26 @@ const chartBaseTheme = css`
|
|
|
110
222
|
}
|
|
111
223
|
|
|
112
224
|
:where([styled-mode]) .highcharts-axis-title {
|
|
113
|
-
fill: var(--
|
|
225
|
+
fill: var(--_axis-title);
|
|
114
226
|
}
|
|
115
227
|
|
|
116
228
|
:where([styled-mode]) .highcharts-axis-labels {
|
|
117
|
-
fill: var(--
|
|
229
|
+
fill: var(--_axis-label);
|
|
118
230
|
cursor: default;
|
|
119
231
|
font-size: 0.9em;
|
|
120
232
|
}
|
|
121
233
|
|
|
122
234
|
:where([styled-mode]) .highcharts-grid-line {
|
|
123
235
|
fill: none;
|
|
124
|
-
stroke: var(--
|
|
236
|
+
stroke: var(--_grid-line);
|
|
125
237
|
}
|
|
126
238
|
|
|
127
239
|
:where([styled-mode]) .highcharts-xaxis-grid .highcharts-grid-line {
|
|
128
|
-
stroke-width: var(--vaadin-charts-xaxis-line-width,
|
|
240
|
+
stroke-width: var(--vaadin-charts-xaxis-line-width, 0);
|
|
129
241
|
}
|
|
130
242
|
|
|
131
243
|
:where([styled-mode]) .highcharts-tick {
|
|
132
|
-
stroke: var(--
|
|
244
|
+
stroke: var(--_grid-line);
|
|
133
245
|
}
|
|
134
246
|
|
|
135
247
|
:where([styled-mode]) .highcharts-yaxis .highcharts-tick {
|
|
@@ -137,23 +249,23 @@ const chartBaseTheme = css`
|
|
|
137
249
|
}
|
|
138
250
|
|
|
139
251
|
:where([styled-mode]) .highcharts-minor-grid-line {
|
|
140
|
-
stroke: var(--
|
|
252
|
+
stroke: var(--_minor-grid-line);
|
|
141
253
|
}
|
|
142
254
|
|
|
143
255
|
:where([styled-mode]) .highcharts-crosshair-thin {
|
|
144
256
|
stroke-width: 1px;
|
|
145
|
-
stroke: var(--
|
|
257
|
+
stroke: var(--_grid-line);
|
|
146
258
|
}
|
|
147
259
|
|
|
148
260
|
:where([styled-mode]) .highcharts-crosshair-category {
|
|
149
|
-
stroke: var(--
|
|
261
|
+
stroke: var(--_color-0);
|
|
150
262
|
stroke-opacity: 0.25;
|
|
151
263
|
}
|
|
152
264
|
|
|
153
265
|
/* Credits */
|
|
154
266
|
:where([styled-mode]) .highcharts-credits {
|
|
155
267
|
cursor: pointer;
|
|
156
|
-
fill: var(--
|
|
268
|
+
fill: var(--_disabled-label);
|
|
157
269
|
font-size: 0.7em;
|
|
158
270
|
transition:
|
|
159
271
|
fill 250ms,
|
|
@@ -166,61 +278,22 @@ const chartBaseTheme = css`
|
|
|
166
278
|
}
|
|
167
279
|
|
|
168
280
|
/* Tooltip */
|
|
169
|
-
:where([styled-mode])
|
|
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
|
-
}
|
|
281
|
+
${unsafeCSS(tooltipStyles(':where([styled-mode])'))};
|
|
209
282
|
|
|
210
283
|
:where([styled-mode]) .highcharts-selection-marker {
|
|
211
|
-
fill: var(--
|
|
284
|
+
fill: var(--_color-0);
|
|
212
285
|
fill-opacity: 0.25;
|
|
213
286
|
}
|
|
214
287
|
|
|
215
288
|
:where([styled-mode]) .highcharts-graph {
|
|
216
289
|
fill: none;
|
|
217
|
-
stroke-width:
|
|
290
|
+
stroke-width: var(--vaadin-chart-graph-stroke-width, 2);
|
|
218
291
|
stroke-linecap: round;
|
|
219
292
|
stroke-linejoin: round;
|
|
220
293
|
}
|
|
221
294
|
|
|
222
295
|
:where([styled-mode]) .highcharts-state-hover .highcharts-graph {
|
|
223
|
-
stroke-width:
|
|
296
|
+
stroke-width: calc(var(--vaadin-chart-graph-stroke-width, 2) + 1);
|
|
224
297
|
}
|
|
225
298
|
|
|
226
299
|
:where([styled-mode]) .highcharts-point-inactive {
|
|
@@ -265,53 +338,107 @@ const chartBaseTheme = css`
|
|
|
265
338
|
/* vaadin-charts custom properties */
|
|
266
339
|
/* Use of :where() function to avoid setting classes with high specificity */
|
|
267
340
|
:where([styled-mode]) .highcharts-color-0 {
|
|
268
|
-
fill: var(--
|
|
269
|
-
stroke: var(--
|
|
341
|
+
fill: var(--_color-0);
|
|
342
|
+
stroke: var(--_color-0);
|
|
343
|
+
color: var(--_color-0-label);
|
|
270
344
|
}
|
|
271
345
|
|
|
272
346
|
:where([styled-mode]) .highcharts-color-1 {
|
|
273
|
-
fill: var(--
|
|
274
|
-
stroke: var(--
|
|
347
|
+
fill: var(--_color-1);
|
|
348
|
+
stroke: var(--_color-1);
|
|
349
|
+
color: var(--_color-1-label);
|
|
275
350
|
}
|
|
276
351
|
|
|
277
352
|
:where([styled-mode]) .highcharts-color-2 {
|
|
278
|
-
fill: var(--
|
|
279
|
-
stroke: var(--
|
|
353
|
+
fill: var(--_color-2);
|
|
354
|
+
stroke: var(--_color-2);
|
|
355
|
+
color: var(--_color-2-label);
|
|
280
356
|
}
|
|
281
357
|
|
|
282
358
|
:where([styled-mode]) .highcharts-color-3 {
|
|
283
|
-
fill: var(--
|
|
284
|
-
stroke: var(--
|
|
359
|
+
fill: var(--_color-3);
|
|
360
|
+
stroke: var(--_color-3);
|
|
361
|
+
color: var(--_color-2-label);
|
|
285
362
|
}
|
|
286
363
|
|
|
287
364
|
:where([styled-mode]) .highcharts-color-4 {
|
|
288
|
-
fill: var(--
|
|
289
|
-
stroke: var(--
|
|
365
|
+
fill: var(--_color-4);
|
|
366
|
+
stroke: var(--_color-4);
|
|
367
|
+
color: var(--_color-4-label);
|
|
290
368
|
}
|
|
291
369
|
|
|
292
370
|
:where([styled-mode]) .highcharts-color-5 {
|
|
293
|
-
fill: var(--
|
|
294
|
-
stroke: var(--
|
|
371
|
+
fill: var(--_color-5);
|
|
372
|
+
stroke: var(--_color-5);
|
|
373
|
+
color: var(--_color-5-label);
|
|
295
374
|
}
|
|
296
375
|
|
|
297
376
|
:where([styled-mode]) .highcharts-color-6 {
|
|
298
|
-
fill: var(--
|
|
299
|
-
stroke: var(--
|
|
377
|
+
fill: var(--_color-6);
|
|
378
|
+
stroke: var(--_color-6);
|
|
379
|
+
color: var(--_color-6-label);
|
|
300
380
|
}
|
|
301
381
|
|
|
302
382
|
:where([styled-mode]) .highcharts-color-7 {
|
|
303
|
-
fill: var(--
|
|
304
|
-
stroke: var(--
|
|
383
|
+
fill: var(--_color-7);
|
|
384
|
+
stroke: var(--_color-7);
|
|
385
|
+
color: var(--_color-7-label);
|
|
305
386
|
}
|
|
306
387
|
|
|
307
388
|
:where([styled-mode]) .highcharts-color-8 {
|
|
308
|
-
fill: var(--
|
|
309
|
-
stroke: var(--
|
|
389
|
+
fill: var(--_color-8);
|
|
390
|
+
stroke: var(--_color-8);
|
|
391
|
+
color: var(--_color-8-label);
|
|
310
392
|
}
|
|
311
393
|
|
|
312
394
|
:where([styled-mode]) .highcharts-color-9 {
|
|
313
|
-
fill: var(--
|
|
314
|
-
stroke: var(--
|
|
395
|
+
fill: var(--_color-9);
|
|
396
|
+
stroke: var(--_color-9);
|
|
397
|
+
color: var(--_color-9-label);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
:where([styled-mode]) .highcharts-data-label-color-0 {
|
|
401
|
+
color: var(--_color-0-label);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
:where([styled-mode]) .highcharts-data-label-color-1 {
|
|
405
|
+
color: var(--_color-1-label);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
:where([styled-mode]) .highcharts-data-label-color-2 {
|
|
409
|
+
color: var(--_color-2-label);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
:where([styled-mode]) .highcharts-data-label-color-3 {
|
|
413
|
+
color: var(--_color-3-label);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
:where([styled-mode]) .highcharts-data-label-color-4 {
|
|
417
|
+
color: var(--_color-4-label);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
:where([styled-mode]) .highcharts-data-label-color-5 {
|
|
421
|
+
color: var(--_color-5-label);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
:where([styled-mode]) .highcharts-data-label-color-6 {
|
|
425
|
+
color: var(--_color-6-label);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
:where([styled-mode]) .highcharts-data-label-color-7 {
|
|
429
|
+
color: var(--_color-7-label);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
:where([styled-mode]) .highcharts-data-label-color-8 {
|
|
433
|
+
color: var(--_color-8-label);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
:where([styled-mode]) .highcharts-data-label-color-9 {
|
|
437
|
+
color: var(--_color-9-label);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
:where([styled-mode]) [class*='highcharts-data-label-color-'] {
|
|
441
|
+
fill: currentColor;
|
|
315
442
|
}
|
|
316
443
|
|
|
317
444
|
/* end of vaadin-charts custom properties */
|
|
@@ -323,7 +450,7 @@ const chartBaseTheme = css`
|
|
|
323
450
|
|
|
324
451
|
:where([styled-mode]) .highcharts-markers {
|
|
325
452
|
stroke-width: 1px;
|
|
326
|
-
stroke: var(--
|
|
453
|
+
stroke: var(--_bg);
|
|
327
454
|
}
|
|
328
455
|
|
|
329
456
|
:where([styled-mode])
|
|
@@ -353,7 +480,7 @@ const chartBaseTheme = css`
|
|
|
353
480
|
|
|
354
481
|
:where([styled-mode]) .highcharts-data-label text,
|
|
355
482
|
:where([styled-mode]) text.highcharts-data-label {
|
|
356
|
-
fill: var(--
|
|
483
|
+
fill: var(--_data-label);
|
|
357
484
|
}
|
|
358
485
|
|
|
359
486
|
:where([styled-mode]) .highcharts-data-label-connector {
|
|
@@ -371,12 +498,13 @@ const chartBaseTheme = css`
|
|
|
371
498
|
|
|
372
499
|
:where([styled-mode]) .highcharts-series:not(.highcharts-pie-series) .highcharts-point-select,
|
|
373
500
|
:where([styled-mode]) .highcharts-markers .highcharts-point-select {
|
|
374
|
-
|
|
375
|
-
|
|
501
|
+
/* TODO where are these used? */
|
|
502
|
+
fill: var(--_grid-line);
|
|
503
|
+
stroke: var(--vaadin-charts-contrast, var(--_label));
|
|
376
504
|
}
|
|
377
505
|
|
|
378
506
|
:where([styled-mode]) .highcharts-column-series rect.highcharts-point {
|
|
379
|
-
stroke: var(--
|
|
507
|
+
stroke: var(--_point-border);
|
|
380
508
|
}
|
|
381
509
|
|
|
382
510
|
:where([styled-mode]) .highcharts-column-series .highcharts-point {
|
|
@@ -390,7 +518,7 @@ const chartBaseTheme = css`
|
|
|
390
518
|
|
|
391
519
|
:where([styled-mode]) .highcharts-pie-series .highcharts-point {
|
|
392
520
|
stroke-linejoin: round;
|
|
393
|
-
stroke: var(--
|
|
521
|
+
stroke: var(--_point-border);
|
|
394
522
|
}
|
|
395
523
|
|
|
396
524
|
:where([styled-mode]) .highcharts-pie-series .highcharts-point-hover {
|
|
@@ -400,7 +528,7 @@ const chartBaseTheme = css`
|
|
|
400
528
|
|
|
401
529
|
:where([styled-mode]) .highcharts-funnel-series .highcharts-point {
|
|
402
530
|
stroke-linejoin: round;
|
|
403
|
-
stroke: var(--
|
|
531
|
+
stroke: var(--_point-border);
|
|
404
532
|
stroke-width: 2px;
|
|
405
533
|
}
|
|
406
534
|
|
|
@@ -416,7 +544,7 @@ const chartBaseTheme = css`
|
|
|
416
544
|
|
|
417
545
|
:where([styled-mode]) .highcharts-pyramid-series .highcharts-point {
|
|
418
546
|
stroke-linejoin: round;
|
|
419
|
-
stroke: var(--
|
|
547
|
+
stroke: var(--_point-border);
|
|
420
548
|
stroke-width: 2px;
|
|
421
549
|
}
|
|
422
550
|
|
|
@@ -436,7 +564,7 @@ const chartBaseTheme = css`
|
|
|
436
564
|
|
|
437
565
|
:where([styled-mode]) .highcharts-treemap-series .highcharts-point {
|
|
438
566
|
stroke-width: 2px;
|
|
439
|
-
stroke: var(--
|
|
567
|
+
stroke: var(--_point-border);
|
|
440
568
|
transition:
|
|
441
569
|
stroke 250ms,
|
|
442
570
|
fill 250ms,
|
|
@@ -444,8 +572,8 @@ const chartBaseTheme = css`
|
|
|
444
572
|
}
|
|
445
573
|
|
|
446
574
|
:where([styled-mode]) .highcharts-treemap-series .highcharts-point-hover {
|
|
447
|
-
stroke-width:
|
|
448
|
-
stroke: var(--
|
|
575
|
+
stroke-width: 0;
|
|
576
|
+
stroke: var(--_point-border);
|
|
449
577
|
fill-opacity: 0.75;
|
|
450
578
|
transition:
|
|
451
579
|
stroke 25ms,
|
|
@@ -470,6 +598,10 @@ const chartBaseTheme = css`
|
|
|
470
598
|
fill-opacity: 0.75;
|
|
471
599
|
}
|
|
472
600
|
|
|
601
|
+
:where([styled-mode]) .highcharts-treemap-series [class*='highcharts-data-label-color-'] text {
|
|
602
|
+
fill: inherit;
|
|
603
|
+
}
|
|
604
|
+
|
|
473
605
|
:where([styled-mode]) .highcharts-vector-series .highcharts-point {
|
|
474
606
|
fill: none;
|
|
475
607
|
stroke-width: 2px;
|
|
@@ -481,7 +613,8 @@ const chartBaseTheme = css`
|
|
|
481
613
|
}
|
|
482
614
|
|
|
483
615
|
:where([styled-mode]) .highcharts-lollipop-stem {
|
|
484
|
-
|
|
616
|
+
/* TODO where is this used? */
|
|
617
|
+
stroke: var(--vaadin-charts-contrast, var(--_label));
|
|
485
618
|
}
|
|
486
619
|
|
|
487
620
|
:where([styled-mode]) .highcharts-focus-border {
|
|
@@ -500,7 +633,7 @@ const chartBaseTheme = css`
|
|
|
500
633
|
}
|
|
501
634
|
|
|
502
635
|
:where([styled-mode]) .highcharts-legend-item > text {
|
|
503
|
-
fill: var(--
|
|
636
|
+
fill: var(--_data-label);
|
|
504
637
|
font-weight: normal;
|
|
505
638
|
font-size: 1em;
|
|
506
639
|
cursor: pointer;
|
|
@@ -508,26 +641,26 @@ const chartBaseTheme = css`
|
|
|
508
641
|
}
|
|
509
642
|
|
|
510
643
|
:where([styled-mode]) .highcharts-legend-item > .highcharts-point {
|
|
511
|
-
stroke-width:
|
|
644
|
+
stroke-width: 0;
|
|
512
645
|
}
|
|
513
646
|
|
|
514
647
|
:where([styled-mode]) .highcharts-legend-item:hover text {
|
|
515
|
-
fill: var(--vaadin-charts-title-label,
|
|
648
|
+
fill: var(--vaadin-charts-title-label, var(--_label));
|
|
516
649
|
}
|
|
517
650
|
|
|
518
651
|
:where([styled-mode]) .highcharts-legend-item-hidden * {
|
|
519
|
-
fill: var(--
|
|
520
|
-
stroke: var(--
|
|
652
|
+
fill: var(--_disabled-label) !important;
|
|
653
|
+
stroke: var(--_disabled-label) !important;
|
|
521
654
|
transition: fill 250ms;
|
|
522
655
|
}
|
|
523
656
|
|
|
524
657
|
:where([styled-mode]) .highcharts-legend-nav-active {
|
|
525
|
-
fill: var(--vaadin-charts-button-label,
|
|
658
|
+
fill: var(--vaadin-charts-button-label, var(--_label));
|
|
526
659
|
cursor: pointer;
|
|
527
660
|
}
|
|
528
661
|
|
|
529
662
|
:where([styled-mode]) .highcharts-legend-nav-inactive {
|
|
530
|
-
fill: var(--
|
|
663
|
+
fill: var(--_disabled-label);
|
|
531
664
|
}
|
|
532
665
|
|
|
533
666
|
:where([styled-mode]) circle.highcharts-legend-nav-active,
|
|
@@ -552,13 +685,13 @@ const chartBaseTheme = css`
|
|
|
552
685
|
}
|
|
553
686
|
|
|
554
687
|
:where([styled-mode]) .highcharts-bubble-legend-labels {
|
|
555
|
-
fill: var(--
|
|
688
|
+
fill: var(--_data-label);
|
|
556
689
|
}
|
|
557
690
|
|
|
558
691
|
/* Loading */
|
|
559
692
|
:where([styled-mode]) .highcharts-loading {
|
|
560
693
|
position: absolute;
|
|
561
|
-
background-color: var(--
|
|
694
|
+
background-color: var(--_bg);
|
|
562
695
|
opacity: 0.5;
|
|
563
696
|
text-align: center;
|
|
564
697
|
z-index: 10;
|
|
@@ -583,23 +716,24 @@ const chartBaseTheme = css`
|
|
|
583
716
|
/* Plot bands and polar pane backgrounds */
|
|
584
717
|
:where([styled-mode]) .highcharts-plot-band,
|
|
585
718
|
:where([styled-mode]) .highcharts-pane {
|
|
586
|
-
fill: var(--vaadin-charts-contrast,
|
|
719
|
+
fill: var(--vaadin-charts-contrast, var(--_label));
|
|
587
720
|
fill-opacity: 0.05;
|
|
588
721
|
}
|
|
589
722
|
|
|
590
723
|
:where([styled-mode]) .highcharts-plot-line {
|
|
591
724
|
fill: none;
|
|
592
|
-
|
|
725
|
+
/* TODO where is this used? */
|
|
726
|
+
stroke: color-mix(in srgb, var(--vaadin-charts-contrast, var(--_label)) 60%, transparent);
|
|
593
727
|
stroke-width: 1px;
|
|
594
728
|
}
|
|
595
729
|
|
|
596
730
|
:where([styled-mode]) .highcharts-plot-line-label {
|
|
597
|
-
fill: var(--
|
|
731
|
+
fill: var(--_data-label);
|
|
598
732
|
}
|
|
599
733
|
|
|
600
734
|
/* Highcharts More and modules */
|
|
601
735
|
:where([styled-mode]) .highcharts-boxplot-box {
|
|
602
|
-
fill: var(--
|
|
736
|
+
fill: var(--_bg);
|
|
603
737
|
}
|
|
604
738
|
|
|
605
739
|
:where([styled-mode]) .highcharts-boxplot-median {
|
|
@@ -611,16 +745,16 @@ const chartBaseTheme = css`
|
|
|
611
745
|
}
|
|
612
746
|
|
|
613
747
|
:where([styled-mode]) .highcharts-errorbar-series .highcharts-point {
|
|
614
|
-
stroke: var(--vaadin-charts-contrast,
|
|
748
|
+
stroke: var(--vaadin-charts-contrast, var(--_label));
|
|
615
749
|
}
|
|
616
750
|
|
|
617
751
|
:where([styled-mode]) .highcharts-gauge-series .highcharts-data-label-box {
|
|
618
|
-
stroke: var(--
|
|
752
|
+
stroke: var(--_grid-line);
|
|
619
753
|
stroke-width: 1px;
|
|
620
754
|
}
|
|
621
755
|
|
|
622
756
|
:where([styled-mode]) .highcharts-gauge-series .highcharts-dial {
|
|
623
|
-
fill: var(--vaadin-charts-contrast,
|
|
757
|
+
fill: var(--vaadin-charts-contrast, var(--_label));
|
|
624
758
|
stroke-width: 0;
|
|
625
759
|
}
|
|
626
760
|
|
|
@@ -630,7 +764,7 @@ const chartBaseTheme = css`
|
|
|
630
764
|
}
|
|
631
765
|
|
|
632
766
|
:where([styled-mode]) .highcharts-waterfall-series .highcharts-graph {
|
|
633
|
-
stroke: var(--vaadin-charts-contrast
|
|
767
|
+
stroke: color-mix(in srgb, var(--vaadin-charts-contrast, var(--_label)) 60%, transparent);
|
|
634
768
|
stroke-dasharray: 1, 3;
|
|
635
769
|
}
|
|
636
770
|
|
|
@@ -654,7 +788,7 @@ const chartBaseTheme = css`
|
|
|
654
788
|
|
|
655
789
|
:where([styled-mode]) .highcharts-venn-series .highcharts-point {
|
|
656
790
|
fill-opacity: 0.75;
|
|
657
|
-
stroke: var(--
|
|
791
|
+
stroke: var(--_point-border);
|
|
658
792
|
transition:
|
|
659
793
|
stroke 250ms,
|
|
660
794
|
fill-opacity 250ms;
|
|
@@ -662,7 +796,7 @@ const chartBaseTheme = css`
|
|
|
662
796
|
|
|
663
797
|
:where([styled-mode]) .highcharts-venn-series .highcharts-point-hover {
|
|
664
798
|
fill-opacity: 1;
|
|
665
|
-
stroke: var(--
|
|
799
|
+
stroke: var(--_point-border);
|
|
666
800
|
}
|
|
667
801
|
|
|
668
802
|
/* Highstock */
|
|
@@ -671,26 +805,26 @@ const chartBaseTheme = css`
|
|
|
671
805
|
}
|
|
672
806
|
|
|
673
807
|
:where([styled-mode]) .highcharts-navigator-mask-inside {
|
|
674
|
-
fill: var(--
|
|
808
|
+
fill: var(--_color-0);
|
|
675
809
|
/* navigator.maskFill option */
|
|
676
810
|
fill-opacity: 0.2;
|
|
677
811
|
cursor: ew-resize;
|
|
678
812
|
}
|
|
679
813
|
|
|
680
814
|
:where([styled-mode]) .highcharts-navigator-outline {
|
|
681
|
-
stroke: var(--
|
|
815
|
+
stroke: var(--_grid-line);
|
|
682
816
|
fill: none;
|
|
683
817
|
}
|
|
684
818
|
|
|
685
819
|
:where([styled-mode]) .highcharts-navigator-handle {
|
|
686
|
-
stroke: var(--
|
|
687
|
-
fill: var(--
|
|
820
|
+
stroke: var(--_grid-line);
|
|
821
|
+
fill: var(--_bg);
|
|
688
822
|
cursor: ew-resize;
|
|
689
823
|
}
|
|
690
824
|
|
|
691
825
|
:where([styled-mode]) .highcharts-navigator-series {
|
|
692
|
-
fill: var(--
|
|
693
|
-
stroke: var(--
|
|
826
|
+
fill: var(--_color-1);
|
|
827
|
+
stroke: var(--_color-1);
|
|
694
828
|
}
|
|
695
829
|
|
|
696
830
|
:where([styled-mode]) .highcharts-navigator-series .highcharts-graph {
|
|
@@ -707,11 +841,11 @@ const chartBaseTheme = css`
|
|
|
707
841
|
|
|
708
842
|
:where([styled-mode]) .highcharts-navigator-xaxis .highcharts-grid-line {
|
|
709
843
|
stroke-width: 1px;
|
|
710
|
-
stroke: var(--
|
|
844
|
+
stroke: var(--_grid-line);
|
|
711
845
|
}
|
|
712
846
|
|
|
713
847
|
:where([styled-mode]) .highcharts-navigator-xaxis.highcharts-axis-labels {
|
|
714
|
-
fill: var(--
|
|
848
|
+
fill: var(--_secondary-label);
|
|
715
849
|
}
|
|
716
850
|
|
|
717
851
|
:where([styled-mode]) .highcharts-navigator-yaxis .highcharts-grid-line {
|
|
@@ -719,61 +853,61 @@ const chartBaseTheme = css`
|
|
|
719
853
|
}
|
|
720
854
|
|
|
721
855
|
:where([styled-mode]) .highcharts-scrollbar-thumb {
|
|
722
|
-
fill: var(--vaadin-charts-contrast
|
|
856
|
+
fill: color-mix(in srgb, var(--vaadin-charts-contrast, var(--_label)) 20%, transparent);
|
|
723
857
|
}
|
|
724
858
|
|
|
725
859
|
:where([styled-mode]) .highcharts-scrollbar-button {
|
|
726
|
-
fill: var(--
|
|
860
|
+
fill: var(--_bg);
|
|
727
861
|
}
|
|
728
862
|
|
|
729
863
|
:where([styled-mode]) .highcharts-scrollbar-arrow {
|
|
730
|
-
fill: var(--
|
|
864
|
+
fill: var(--_data-label);
|
|
731
865
|
}
|
|
732
866
|
|
|
733
867
|
:where([styled-mode]) .highcharts-scrollbar-rifles {
|
|
734
|
-
stroke: var(--
|
|
868
|
+
stroke: var(--_data-label);
|
|
735
869
|
stroke-width: 1px;
|
|
736
870
|
}
|
|
737
871
|
|
|
738
872
|
:where([styled-mode]) .highcharts-scrollbar-track {
|
|
739
|
-
fill: var(--vaadin-charts-contrast
|
|
873
|
+
fill: color-mix(in srgb, var(--vaadin-charts-contrast, var(--_label)) 5%, transparent);
|
|
740
874
|
}
|
|
741
875
|
|
|
742
876
|
:where([styled-mode]) .highcharts-button {
|
|
743
|
-
fill: var(--vaadin-charts-button-background,
|
|
877
|
+
fill: var(--vaadin-charts-button-background, var(--vaadin-background-container));
|
|
744
878
|
cursor: default;
|
|
745
879
|
transition: fill 250ms;
|
|
746
880
|
}
|
|
747
881
|
|
|
748
882
|
:where([styled-mode]) .highcharts-button text {
|
|
749
|
-
fill: var(--vaadin-charts-button-label,
|
|
883
|
+
fill: var(--vaadin-charts-button-label, var(--_label));
|
|
750
884
|
font-weight: 600;
|
|
751
885
|
}
|
|
752
886
|
|
|
753
887
|
:where([styled-mode]) .highcharts-button-hover {
|
|
754
888
|
transition: fill 0ms;
|
|
755
|
-
fill: var(--vaadin-charts-button-hover-background,
|
|
756
|
-
stroke-width:
|
|
889
|
+
fill: var(--vaadin-charts-button-hover-background, var(--vaadin-background-container));
|
|
890
|
+
stroke-width: 0;
|
|
757
891
|
}
|
|
758
892
|
|
|
759
893
|
:where([styled-mode]) .highcharts-button-hover text {
|
|
760
|
-
fill: var(--vaadin-charts-button-label,
|
|
894
|
+
fill: var(--vaadin-charts-button-label, var(--_label));
|
|
761
895
|
}
|
|
762
896
|
|
|
763
897
|
:where([styled-mode]) .highcharts-button-pressed {
|
|
764
|
-
fill: var(--vaadin-charts-button-active-background,
|
|
898
|
+
fill: var(--vaadin-charts-button-active-background, var(--_label));
|
|
765
899
|
}
|
|
766
900
|
|
|
767
901
|
:where([styled-mode]) .highcharts-button-pressed text {
|
|
768
|
-
fill: var(--vaadin-charts-button-active-label,
|
|
902
|
+
fill: var(--vaadin-charts-button-active-label, var(--_bg));
|
|
769
903
|
}
|
|
770
904
|
|
|
771
905
|
:where([styled-mode]) .highcharts-button-disabled text {
|
|
772
|
-
fill: var(--vaadin-charts-button-label,
|
|
906
|
+
fill: var(--vaadin-charts-button-disabled-label, var(--vaadin-color-disabled));
|
|
773
907
|
}
|
|
774
908
|
|
|
775
|
-
:where([styled-mode]) .highcharts-range-selector-buttons > text {
|
|
776
|
-
fill: var(--
|
|
909
|
+
:where([styled-mode]) .highcharts-range-selector-buttons > :is(text, .highcharts-label) {
|
|
910
|
+
fill: var(--_secondary-label);
|
|
777
911
|
}
|
|
778
912
|
|
|
779
913
|
:where([styled-mode]) .highcharts-range-selector-buttons .highcharts-button {
|
|
@@ -785,22 +919,22 @@ const chartBaseTheme = css`
|
|
|
785
919
|
}
|
|
786
920
|
|
|
787
921
|
:where([styled-mode]) .highcharts-range-label text {
|
|
788
|
-
fill: var(--
|
|
922
|
+
fill: var(--_secondary-label);
|
|
789
923
|
}
|
|
790
924
|
|
|
791
925
|
:where([styled-mode]) .highcharts-range-input rect {
|
|
792
|
-
fill: var(--vaadin-charts-
|
|
793
|
-
rx:
|
|
794
|
-
ry:
|
|
926
|
+
fill: var(--vaadin-charts-range-input-background, var(--vaadin-background-container));
|
|
927
|
+
rx: var(--vaadin-charts-button-border-radius, var(--vaadin-radius-m));
|
|
928
|
+
ry: var(--vaadin-charts-button-border-radius, var(--vaadin-radius-m));
|
|
929
|
+
transition: fill 250ms;
|
|
795
930
|
}
|
|
796
931
|
|
|
797
932
|
:where([styled-mode]) .highcharts-range-input:hover rect {
|
|
798
|
-
fill: var(--vaadin-charts-
|
|
799
|
-
transition: fill 250ms;
|
|
933
|
+
fill: var(--vaadin-charts-range-input-background-hover, var(--vaadin-background-container));
|
|
800
934
|
}
|
|
801
935
|
|
|
802
936
|
:where([styled-mode]) .highcharts-range-input text {
|
|
803
|
-
fill: var(--
|
|
937
|
+
fill: var(--_data-label);
|
|
804
938
|
}
|
|
805
939
|
|
|
806
940
|
:where([styled-mode]) input.highcharts-range-selector {
|
|
@@ -816,7 +950,7 @@ const chartBaseTheme = css`
|
|
|
816
950
|
}
|
|
817
951
|
|
|
818
952
|
:where([styled-mode]) .highcharts-crosshair-label text {
|
|
819
|
-
fill: var(--
|
|
953
|
+
fill: var(--_bg);
|
|
820
954
|
font-size: 1.1em;
|
|
821
955
|
}
|
|
822
956
|
|
|
@@ -825,16 +959,16 @@ const chartBaseTheme = css`
|
|
|
825
959
|
}
|
|
826
960
|
|
|
827
961
|
:where([styled-mode]) .highcharts-candlestick-series .highcharts-point {
|
|
828
|
-
stroke: var(--vaadin-charts-
|
|
962
|
+
stroke: var(--vaadin-charts-candlestick-line, var(--vaadin-border-color-strong));
|
|
829
963
|
stroke-width: 1px;
|
|
830
964
|
}
|
|
831
965
|
|
|
832
966
|
:where([styled-mode]) .highcharts-candlestick-series .highcharts-point-up {
|
|
833
|
-
fill: var(--
|
|
967
|
+
fill: var(--_color-positive);
|
|
834
968
|
}
|
|
835
969
|
|
|
836
970
|
:where([styled-mode]) .highcharts-candlestick-series .highcharts-point-down {
|
|
837
|
-
fill: var(--
|
|
971
|
+
fill: var(--_color-negative);
|
|
838
972
|
}
|
|
839
973
|
|
|
840
974
|
:where([styled-mode]) .highcharts-ohlc-series .highcharts-point-hover {
|
|
@@ -842,24 +976,24 @@ const chartBaseTheme = css`
|
|
|
842
976
|
}
|
|
843
977
|
|
|
844
978
|
:where([styled-mode]) .highcharts-flags-series .highcharts-point .highcharts-label-box {
|
|
845
|
-
stroke: var(--
|
|
846
|
-
fill: var(--
|
|
979
|
+
stroke: var(--_grid-line);
|
|
980
|
+
fill: var(--_bg);
|
|
847
981
|
transition: fill 250ms;
|
|
848
982
|
}
|
|
849
983
|
|
|
850
984
|
:where([styled-mode]) .highcharts-flags-series .highcharts-point-hover .highcharts-label-box {
|
|
851
|
-
stroke: var(--vaadin-charts-contrast
|
|
852
|
-
fill: var(--
|
|
985
|
+
stroke: color-mix(in srgb, var(--vaadin-charts-contrast, var(--_label)) 60%, transparent);
|
|
986
|
+
fill: var(--_bg);
|
|
853
987
|
}
|
|
854
988
|
|
|
855
989
|
:where([styled-mode]) .highcharts-flags-series .highcharts-point text {
|
|
856
|
-
fill: var(--
|
|
990
|
+
fill: var(--_data-label);
|
|
857
991
|
font-size: 0.9em;
|
|
858
992
|
font-weight: normal;
|
|
859
993
|
}
|
|
860
994
|
|
|
861
995
|
:where([styled-mode]) .highcharts-flags-series .highcharts-point-hover text {
|
|
862
|
-
fill: var(--vaadin-charts-title-label,
|
|
996
|
+
fill: var(--vaadin-charts-title-label, var(--_label));
|
|
863
997
|
}
|
|
864
998
|
|
|
865
999
|
/* Highmaps */
|
|
@@ -868,7 +1002,7 @@ const chartBaseTheme = css`
|
|
|
868
1002
|
fill 500ms,
|
|
869
1003
|
fill-opacity 500ms,
|
|
870
1004
|
stroke-width 250ms;
|
|
871
|
-
stroke: var(--vaadin-charts-contrast
|
|
1005
|
+
stroke: color-mix(in srgb, var(--vaadin-charts-contrast, var(--_label)) 20%, transparent);
|
|
872
1006
|
}
|
|
873
1007
|
|
|
874
1008
|
:where([styled-mode]) .highcharts-map-series .highcharts-point-hover {
|
|
@@ -898,17 +1032,17 @@ const chartBaseTheme = css`
|
|
|
898
1032
|
}
|
|
899
1033
|
|
|
900
1034
|
:where([styled-mode]) .highcharts-coloraxis-grid .highcharts-grid-line {
|
|
901
|
-
stroke: var(--
|
|
1035
|
+
stroke: var(--_bg);
|
|
902
1036
|
}
|
|
903
1037
|
|
|
904
1038
|
:where([styled-mode]) .highcharts-coloraxis-marker {
|
|
905
|
-
fill: var(--
|
|
906
|
-
stroke-width:
|
|
1039
|
+
fill: var(--_axis-label);
|
|
1040
|
+
stroke-width: 0;
|
|
907
1041
|
}
|
|
908
1042
|
|
|
909
1043
|
:where([styled-mode]) .highcharts-null-point {
|
|
910
|
-
fill:
|
|
911
|
-
stroke: var(--vaadin-
|
|
1044
|
+
fill: transparent;
|
|
1045
|
+
stroke: var(--vaadin-border-color);
|
|
912
1046
|
}
|
|
913
1047
|
|
|
914
1048
|
/* 3d charts */
|
|
@@ -930,7 +1064,7 @@ const chartBaseTheme = css`
|
|
|
930
1064
|
}
|
|
931
1065
|
|
|
932
1066
|
:where([styled-mode]) .highcharts-button-symbol {
|
|
933
|
-
stroke: var(--
|
|
1067
|
+
stroke: var(--_secondary-label);
|
|
934
1068
|
stroke-width: 3px;
|
|
935
1069
|
}
|
|
936
1070
|
|
|
@@ -944,7 +1078,7 @@ const chartBaseTheme = css`
|
|
|
944
1078
|
:where([styled-mode]) .highcharts-menu-item {
|
|
945
1079
|
padding: 0.5em 1em;
|
|
946
1080
|
background: none;
|
|
947
|
-
color: var(--vaadin-charts-button-label,
|
|
1081
|
+
color: var(--vaadin-charts-button-label, var(--_label));
|
|
948
1082
|
cursor: pointer;
|
|
949
1083
|
transition:
|
|
950
1084
|
background 250ms,
|
|
@@ -965,7 +1099,7 @@ const chartBaseTheme = css`
|
|
|
965
1099
|
:where([styled-mode]) text.highcharts-drilldown-data-label,
|
|
966
1100
|
:where([styled-mode]) .highcharts-drilldown-axis-label {
|
|
967
1101
|
cursor: pointer;
|
|
968
|
-
fill: var(--vaadin-charts-button-label,
|
|
1102
|
+
fill: var(--vaadin-charts-button-label, var(--_label));
|
|
969
1103
|
font-weight: normal;
|
|
970
1104
|
text-decoration: underline;
|
|
971
1105
|
}
|
|
@@ -974,7 +1108,7 @@ const chartBaseTheme = css`
|
|
|
974
1108
|
:where([styled-mode]) .highcharts-no-data text {
|
|
975
1109
|
font-weight: normal;
|
|
976
1110
|
font-size: 1rem;
|
|
977
|
-
fill: var(--
|
|
1111
|
+
fill: var(--_secondary-label);
|
|
978
1112
|
}
|
|
979
1113
|
|
|
980
1114
|
/* Drag-panes module */
|
|
@@ -992,24 +1126,24 @@ const chartBaseTheme = css`
|
|
|
992
1126
|
/* Lineargauge type series */
|
|
993
1127
|
:where([styled-mode]) .highcharts-lineargauge-target {
|
|
994
1128
|
stroke-width: 1px;
|
|
995
|
-
stroke: var(--vaadin-charts-contrast
|
|
1129
|
+
stroke: color-mix(in srgb, var(--vaadin-charts-contrast, var(--_label)) 60%, transparent);
|
|
996
1130
|
}
|
|
997
1131
|
|
|
998
1132
|
:where([styled-mode]) .highcharts-lineargauge-target-line {
|
|
999
1133
|
stroke-width: 1px;
|
|
1000
|
-
stroke: var(--vaadin-charts-contrast
|
|
1134
|
+
stroke: color-mix(in srgb, var(--vaadin-charts-contrast, var(--_label)) 60%, transparent);
|
|
1001
1135
|
}
|
|
1002
1136
|
|
|
1003
1137
|
/* Annotations module */
|
|
1004
1138
|
:where([styled-mode]) .highcharts-annotation-label-box {
|
|
1005
1139
|
stroke-width: 1px;
|
|
1006
|
-
stroke: var(--vaadin-charts-contrast,
|
|
1007
|
-
fill: var(--vaadin-charts-contrast,
|
|
1140
|
+
stroke: var(--vaadin-charts-contrast, var(--_label));
|
|
1141
|
+
fill: var(--vaadin-charts-contrast, var(--_label));
|
|
1008
1142
|
fill-opacity: 0.75;
|
|
1009
1143
|
}
|
|
1010
1144
|
|
|
1011
1145
|
:where([styled-mode]) .highcharts-annotation-label text {
|
|
1012
|
-
fill: var(--
|
|
1146
|
+
fill: var(--_disabled-label);
|
|
1013
1147
|
}
|
|
1014
1148
|
|
|
1015
1149
|
/* Gantt */
|
|
@@ -1030,6 +1164,11 @@ const chartBaseTheme = css`
|
|
|
1030
1164
|
stroke-width: 1px;
|
|
1031
1165
|
}
|
|
1032
1166
|
|
|
1167
|
+
:where([styled-mode]) .highcharts-organization-series .highcharts-link {
|
|
1168
|
+
stroke: var(--vaadin-charts-org-line, color-mix(in srgb, var(--_label) 50%, var(--_bg)));
|
|
1169
|
+
stroke-width: var(--vaadin-charts-org-line-width, 1);
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1033
1172
|
/* Workaround for https://github.com/highcharts/highcharts/issues/22490 */
|
|
1034
1173
|
:where([styled-mode]) .highcharts-gantt-series .highcharts-partfill-overlay {
|
|
1035
1174
|
fill: hsla(0, 0%, 0%, 0.3);
|
|
@@ -1053,10 +1192,6 @@ const chartBaseTheme = css`
|
|
|
1053
1192
|
/* https://github.com/highcharts/highcharts/issues/16282 */
|
|
1054
1193
|
/* without this the resize callback always calls __reflow */
|
|
1055
1194
|
ul[aria-hidden='false'] {
|
|
1056
|
-
margin:
|
|
1195
|
+
margin: 0;
|
|
1057
1196
|
}
|
|
1058
1197
|
`;
|
|
1059
|
-
|
|
1060
|
-
registerStyles('vaadin-chart', chartBaseTheme, { moduleId: 'vaadin-chart-base-theme' });
|
|
1061
|
-
|
|
1062
|
-
export { chartBaseTheme };
|