@vaadin/charts 24.8.4 → 25.0.0-alpha10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -12
- package/src/helpers.js +11 -0
- package/src/styles/vaadin-chart-base-styles.d.ts +13 -0
- package/src/styles/vaadin-chart-base-styles.js +1224 -0
- package/src/styles/vaadin-chart-core-styles.d.ts +13 -0
- package/{theme/vaadin-chart-base-theme.js → src/styles/vaadin-chart-core-styles.js} +18 -17
- package/src/vaadin-chart-series-mixin.d.ts +0 -4
- package/src/vaadin-chart-series-mixin.js +0 -3
- package/src/vaadin-chart-series.js +3 -2
- package/src/vaadin-chart.d.ts +0 -5
- package/src/vaadin-chart.js +23 -25
- package/theme/lumo/vaadin-chart-styles.d.ts +0 -1
- package/theme/lumo/vaadin-chart-styles.js +0 -1
- package/web-types.json +3 -3
- package/web-types.lit.json +3 -3
- package/src/vaadin-lit-chart-series.js +0 -32
- package/src/vaadin-lit-chart.js +0 -61
- package/theme/lumo/vaadin-lit-chart.d.ts +0 -2
- package/theme/lumo/vaadin-lit-chart.js +0 -2
- package/theme/material/vaadin-chart-styles.d.ts +0 -6
- package/theme/material/vaadin-chart-styles.js +0 -97
- package/theme/material/vaadin-chart.d.ts +0 -2
- package/theme/material/vaadin-chart.js +0 -2
- package/theme/material/vaadin-lit-chart.d.ts +0 -2
- package/theme/material/vaadin-lit-chart.js +0 -2
- package/vaadin-lit-chart-series.d.ts +0 -1
- package/vaadin-lit-chart-series.js +0 -1
- package/vaadin-lit-chart.d.ts +0 -1
- package/vaadin-lit-chart.js +0 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
+
*
|
|
5
|
+
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
+
* license.
|
|
10
|
+
*/
|
|
11
|
+
import type { CSSResult } from 'lit';
|
|
12
|
+
|
|
13
|
+
export const chartStyles: CSSResult;
|
|
@@ -16,18 +16,26 @@
|
|
|
16
16
|
*
|
|
17
17
|
* License: www.highcharts.com/license
|
|
18
18
|
*/
|
|
19
|
-
import { css
|
|
19
|
+
import { css } from 'lit';
|
|
20
20
|
|
|
21
21
|
/* When updating this file do not override vaadin-charts custom properties section */
|
|
22
22
|
|
|
23
|
-
const
|
|
23
|
+
export const chartStyles = css`
|
|
24
24
|
:host {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
display: block;
|
|
26
|
+
width: 100%;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
font-family:
|
|
29
|
+
-apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
|
|
30
|
+
'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
27
31
|
font-size: 12px;
|
|
28
32
|
line-height: normal;
|
|
29
33
|
}
|
|
30
34
|
|
|
35
|
+
:host([hidden]) {
|
|
36
|
+
display: none !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
31
39
|
.highcharts-container {
|
|
32
40
|
position: relative;
|
|
33
41
|
overflow: hidden;
|
|
@@ -125,7 +133,7 @@ const chartBaseTheme = css`
|
|
|
125
133
|
}
|
|
126
134
|
|
|
127
135
|
:where([styled-mode]) .highcharts-xaxis-grid .highcharts-grid-line {
|
|
128
|
-
stroke-width: var(--vaadin-charts-xaxis-line-width,
|
|
136
|
+
stroke-width: var(--vaadin-charts-xaxis-line-width, 0);
|
|
129
137
|
}
|
|
130
138
|
|
|
131
139
|
:where([styled-mode]) .highcharts-tick {
|
|
@@ -171,9 +179,6 @@ const chartBaseTheme = css`
|
|
|
171
179
|
pointer-events: none;
|
|
172
180
|
white-space: nowrap;
|
|
173
181
|
transition: stroke 150ms;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
:where([styled-mode]) .highcharts-tooltip {
|
|
177
182
|
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05)) !important;
|
|
178
183
|
}
|
|
179
184
|
|
|
@@ -444,7 +449,7 @@ const chartBaseTheme = css`
|
|
|
444
449
|
}
|
|
445
450
|
|
|
446
451
|
:where([styled-mode]) .highcharts-treemap-series .highcharts-point-hover {
|
|
447
|
-
stroke-width:
|
|
452
|
+
stroke-width: 0;
|
|
448
453
|
stroke: var(--vaadin-charts-background, #fff);
|
|
449
454
|
fill-opacity: 0.75;
|
|
450
455
|
transition:
|
|
@@ -508,7 +513,7 @@ const chartBaseTheme = css`
|
|
|
508
513
|
}
|
|
509
514
|
|
|
510
515
|
:where([styled-mode]) .highcharts-legend-item > .highcharts-point {
|
|
511
|
-
stroke-width:
|
|
516
|
+
stroke-width: 0;
|
|
512
517
|
}
|
|
513
518
|
|
|
514
519
|
:where([styled-mode]) .highcharts-legend-item:hover text {
|
|
@@ -753,7 +758,7 @@ const chartBaseTheme = css`
|
|
|
753
758
|
:where([styled-mode]) .highcharts-button-hover {
|
|
754
759
|
transition: fill 0ms;
|
|
755
760
|
fill: var(--vaadin-charts-button-hover-background, hsla(214, 90%, 52%, 0.1));
|
|
756
|
-
stroke-width:
|
|
761
|
+
stroke-width: 0;
|
|
757
762
|
}
|
|
758
763
|
|
|
759
764
|
:where([styled-mode]) .highcharts-button-hover text {
|
|
@@ -903,7 +908,7 @@ const chartBaseTheme = css`
|
|
|
903
908
|
|
|
904
909
|
:where([styled-mode]) .highcharts-coloraxis-marker {
|
|
905
910
|
fill: var(--vaadin-charts-axis-label, hsla(214, 42%, 18%, 0.72));
|
|
906
|
-
stroke-width:
|
|
911
|
+
stroke-width: 0;
|
|
907
912
|
}
|
|
908
913
|
|
|
909
914
|
:where([styled-mode]) .highcharts-null-point {
|
|
@@ -1053,10 +1058,6 @@ const chartBaseTheme = css`
|
|
|
1053
1058
|
/* https://github.com/highcharts/highcharts/issues/16282 */
|
|
1054
1059
|
/* without this the resize callback always calls __reflow */
|
|
1055
1060
|
ul[aria-hidden='false'] {
|
|
1056
|
-
margin:
|
|
1061
|
+
margin: 0;
|
|
1057
1062
|
}
|
|
1058
1063
|
`;
|
|
1059
|
-
|
|
1060
|
-
registerStyles('vaadin-chart', chartBaseTheme, { moduleId: 'vaadin-chart-base-theme' });
|
|
1061
|
-
|
|
1062
|
-
export { chartBaseTheme };
|
|
@@ -48,10 +48,6 @@ export declare class ChartSeriesMixinClass {
|
|
|
48
48
|
* - An array of objects, each one describing one point `[ {x: x0, y: y0, name: 'Point0', color: '#FF0000'}, {...}, ...]`
|
|
49
49
|
*
|
|
50
50
|
* See more in [API Site](https://api.highcharts.com/highcharts/series)
|
|
51
|
-
*
|
|
52
|
-
* Note that you should always use [Polymer API](https://www.polymer-project.org/2.0/docs/devguide/model-data#array-mutation)
|
|
53
|
-
* to mutate the values array in order to make the component aware of the
|
|
54
|
-
* change and be able to synchronize it.
|
|
55
51
|
*/
|
|
56
52
|
values: ChartSeriesValues | null;
|
|
57
53
|
|
|
@@ -26,9 +26,6 @@ export const ChartSeriesMixin = (superClass) =>
|
|
|
26
26
|
*
|
|
27
27
|
* See more in [API Site](https://api.highcharts.com/highcharts/series)
|
|
28
28
|
*
|
|
29
|
-
* Note that you should always use [Polymer API](https://www.polymer-project.org/2.0/docs/devguide/model-data#array-mutation)
|
|
30
|
-
* to mutate the values array in order to make the component aware of the
|
|
31
|
-
* change and be able to synchronize it.
|
|
32
29
|
* @type {ChartSeriesValues}
|
|
33
30
|
*/
|
|
34
31
|
values: {
|
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
9
|
* license.
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
11
|
+
import { LitElement } from 'lit';
|
|
12
12
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
13
|
+
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
13
14
|
import { ChartSeriesMixin } from './vaadin-chart-series-mixin.js';
|
|
14
15
|
|
|
15
16
|
/**
|
|
@@ -59,7 +60,7 @@ import { ChartSeriesMixin } from './vaadin-chart-series-mixin.js';
|
|
|
59
60
|
* @extends HTMLElement
|
|
60
61
|
* @mixes ChartSeriesMixin
|
|
61
62
|
*/
|
|
62
|
-
class ChartSeries extends ChartSeriesMixin(
|
|
63
|
+
class ChartSeries extends ChartSeriesMixin(PolylitMixin(LitElement)) {
|
|
63
64
|
static get is() {
|
|
64
65
|
return 'vaadin-chart-series';
|
|
65
66
|
}
|
package/src/vaadin-chart.d.ts
CHANGED
|
@@ -132,11 +132,6 @@ export * from './vaadin-chart-mixin.js';
|
|
|
132
132
|
*
|
|
133
133
|
* For example `--vaadin-charts-color-0` sets the color of the first series on a chart.
|
|
134
134
|
*
|
|
135
|
-
* ### Validating your License
|
|
136
|
-
*
|
|
137
|
-
* When using Vaadin Charts in a development environment, you will see a pop-up that asks you
|
|
138
|
-
* to validate your license by signing in to vaadin.com.
|
|
139
|
-
*
|
|
140
135
|
* @fires {CustomEvent} chart-add-series - Fired when a new series is added.
|
|
141
136
|
* @fires {CustomEvent} chart-after-export - Fired after a chart is exported.
|
|
142
137
|
* @fires {CustomEvent} chart-after-print - Fired after a chart is printed.
|
package/src/vaadin-chart.js
CHANGED
|
@@ -9,10 +9,13 @@
|
|
|
9
9
|
* license.
|
|
10
10
|
*/
|
|
11
11
|
import './vaadin-chart-series.js';
|
|
12
|
-
import { html,
|
|
12
|
+
import { html, LitElement } from 'lit';
|
|
13
13
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
14
14
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
15
|
+
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
16
|
+
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
15
17
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
18
|
+
import { chartStyles } from './styles/vaadin-chart-core-styles.js';
|
|
16
19
|
import { ChartMixin } from './vaadin-chart-mixin.js';
|
|
17
20
|
|
|
18
21
|
/**
|
|
@@ -134,11 +137,6 @@ import { ChartMixin } from './vaadin-chart-mixin.js';
|
|
|
134
137
|
*
|
|
135
138
|
* For example `--vaadin-charts-color-0` sets the color of the first series on a chart.
|
|
136
139
|
*
|
|
137
|
-
* ### Validating your License
|
|
138
|
-
*
|
|
139
|
-
* When using Vaadin Charts in a development environment, you will see a pop-up that asks you
|
|
140
|
-
* to validate your license by signing in to vaadin.com.
|
|
141
|
-
*
|
|
142
140
|
* @fires {CustomEvent} chart-add-series - Fired when a new series is added.
|
|
143
141
|
* @fires {CustomEvent} chart-after-export - Fired after a chart is exported.
|
|
144
142
|
* @fires {CustomEvent} chart-after-print - Fired after a chart is printed.
|
|
@@ -179,25 +177,7 @@ import { ChartMixin } from './vaadin-chart-mixin.js';
|
|
|
179
177
|
* @mixes ThemableMixin
|
|
180
178
|
* @mixes ElementMixin
|
|
181
179
|
*/
|
|
182
|
-
class Chart extends ChartMixin(ThemableMixin(ElementMixin(
|
|
183
|
-
static get template() {
|
|
184
|
-
return html`
|
|
185
|
-
<style>
|
|
186
|
-
:host {
|
|
187
|
-
display: block;
|
|
188
|
-
width: 100%;
|
|
189
|
-
overflow: hidden;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
:host([hidden]) {
|
|
193
|
-
display: none !important;
|
|
194
|
-
}
|
|
195
|
-
</style>
|
|
196
|
-
<div id="chart"></div>
|
|
197
|
-
<slot id="slot"></slot>
|
|
198
|
-
`;
|
|
199
|
-
}
|
|
200
|
-
|
|
180
|
+
class Chart extends ChartMixin(ThemableMixin(ElementMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
|
|
201
181
|
static get is() {
|
|
202
182
|
return 'vaadin-chart';
|
|
203
183
|
}
|
|
@@ -205,6 +185,24 @@ class Chart extends ChartMixin(ThemableMixin(ElementMixin(PolymerElement))) {
|
|
|
205
185
|
static get cvdlName() {
|
|
206
186
|
return 'vaadin-chart';
|
|
207
187
|
}
|
|
188
|
+
|
|
189
|
+
static get styles() {
|
|
190
|
+
return chartStyles;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
static get lumoInjector() {
|
|
194
|
+
return {
|
|
195
|
+
includeBaseStyles: true,
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/** @protected */
|
|
200
|
+
render() {
|
|
201
|
+
return html`
|
|
202
|
+
<div id="chart"></div>
|
|
203
|
+
<slot id="slot"></slot>
|
|
204
|
+
`;
|
|
205
|
+
}
|
|
208
206
|
}
|
|
209
207
|
|
|
210
208
|
defineCustomElement(Chart);
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/charts",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "25.0.0-alpha10",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"properties": [
|
|
120
120
|
{
|
|
121
121
|
"name": "values",
|
|
122
|
-
"description": "An array of data used by the series.\nFormat depends on the chart type and can be:\n - An array of numerical values `[y0, y1, y2, y3,...]`\n - An array of arrays with 2 values (`x`, `y`) `[ [x0, y0], [x1, y1], [x2, y2], ... ]`\n - An array of objects, each one describing one point `[ {x: x0, y: y0, name: 'Point0', color: '#FF0000'}, {...}, ...]`\n\n See more in [API Site](https://api.highcharts.com/highcharts/series)
|
|
122
|
+
"description": "An array of data used by the series.\nFormat depends on the chart type and can be:\n - An array of numerical values `[y0, y1, y2, y3,...]`\n - An array of arrays with 2 values (`x`, `y`) `[ [x0, y0], [x1, y1], [x2, y2], ... ]`\n - An array of objects, each one describing one point `[ {x: x0, y: y0, name: 'Point0', color: '#FF0000'}, {...}, ...]`\n\n See more in [API Site](https://api.highcharts.com/highcharts/series)",
|
|
123
123
|
"value": {
|
|
124
124
|
"type": [
|
|
125
125
|
"ChartSeriesValues"
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
"name": "vaadin-chart",
|
|
238
|
-
"description": "`<vaadin-chart>` is a Web Component for creating high quality charts.\n\n### Basic use\n\nThere are two ways of configuring your `<vaadin-chart>` element: **HTML API**, **JS API** and **JSON API**.\nNote that you can make use of all APIs in your element.\n\n#### Configuring your chart using HTML API\n\n`vaadin-chart` has a set of attributes to make it easier for you to customize your chart.\n\n```html\n <vaadin-chart title=\"The chart title\" subtitle=\"The chart subtitle\">\n <vaadin-chart-series\n type=\"column\"\n title=\"The series title\"\n values=\"[10,20,30]\">\n </vaadin-chart-series>\n </vaadin-chart>\n```\n\n> Note that while you can set type for each series individually, for some types, such as `'bar'`, `'gauge'` and `'solidgauge'`, you\n> have to set it as the default series type on `<vaadin-chart>` in order to work properly.\n\n#### Configuring your chart using JS API\n\n1. Set an id for the `<vaadin-chart>` in the template\n```html\n <vaadin-chart id=\"mychart\"></vaadin-chart>\n```\n1. Add a function that uses `configuration` property (JS Api) to set chart title, categories and data\n```js\ninitChartWithJSApi() {\n requestAnimationFrame(() => {\n const configuration = this.$.mychart.configuration;\n configuration.setTitle({ text: 'The chart title' });\n // By default there is one X axis, it is referenced by configuration.xAxis[0].\n configuration.xAxis[0].setCategories(['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']);\n configuration.addSeries({\n type: 'column',\n data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]\n });\n });\n}\n```\n1. Call that function from connectedCallback (when the element is added to a document)\n```js\nconnectedCallback() {\n super.connectedCallback();\n this.initChartWithJSApi();\n}\n```\n\n#### Configuring your chart using JS JSON API\n\nJS JSON API is a simple alternative to the JS API.\n\n1. Set an id for the `<vaadin-chart>` in the template\n```html\n <vaadin-chart id=\"mychart\"></vaadin-chart>\n```\n1. Add a function that uses `updateConfiguration` method (JS JSON Api) to set chart title, categories and data\n```js\ninitChartWithJSJSONApi() {\n this.$.mychart.updateConfiguration({\n title: {\n text: 'The chart title'\n },\n subtitle: {\n text: 'Subtitle'\n },\n xAxis: {\n categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']\n },\n series: [{\n type: 'column',\n data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]\n }]\n });\n}\n```\n1. Call that function from connectedCallback (when the element is added to a document)\n```js\nconnectedCallback() {\n super.connectedCallback();\n this.initChartWithJSJSONApi();\n}\n```\n\nIt should be noted that chart style customization cannot be done via the JS or JSON API.\nStyling properties in the JSON configuration will be ignored. The following section discusses chart styling.\n\n### CSS Styling\n\nChart appearance is primarily controlled by CSS style rules.\nA comprehensive list of the supported style classes can be found at\nhttps://www.highcharts.com/docs/chart-design-and-style/style-by-css\n\nSee also the [Chart Styling](https://vaadin.com/docs/latest/components/charts/css-styling) documentation.\n\n### RTL support\n\n`vaadin-charts` as well as [Highcharts](https://www.highcharts.com/) by itself are not adjusting the layout\nbased on the `dir` attribute. In order to make `vaadin-charts` display RTL content properly additional\nJSON configuration should be used.\nEach chart should be updated based on the specific needs, but general recommendations are:\n\n 1. Set `reversed` to true for xAxis (https://api.highcharts.com/highcharts/xAxis.reversed).\n 2. Set `useHTML` to true for text elements, i.e. `tooltip` (https://api.highcharts.com/highcharts/tooltip.useHTML).\n 3. Set `rtl` to true for `legend` (https://api.highcharts.com/highcharts/legend.rtl).\n\n### Setting colors\n\nAlthough charts can be styled as described above, there is a simpler way for setting colors.\nColors can be set using CSS custom properties `--vaadin-charts-color-{n}` (where `n` goes from `0 - 9`).\n\nFor example `--vaadin-charts-color-0` sets the color of the first series on a chart
|
|
238
|
+
"description": "`<vaadin-chart>` is a Web Component for creating high quality charts.\n\n### Basic use\n\nThere are two ways of configuring your `<vaadin-chart>` element: **HTML API**, **JS API** and **JSON API**.\nNote that you can make use of all APIs in your element.\n\n#### Configuring your chart using HTML API\n\n`vaadin-chart` has a set of attributes to make it easier for you to customize your chart.\n\n```html\n <vaadin-chart title=\"The chart title\" subtitle=\"The chart subtitle\">\n <vaadin-chart-series\n type=\"column\"\n title=\"The series title\"\n values=\"[10,20,30]\">\n </vaadin-chart-series>\n </vaadin-chart>\n```\n\n> Note that while you can set type for each series individually, for some types, such as `'bar'`, `'gauge'` and `'solidgauge'`, you\n> have to set it as the default series type on `<vaadin-chart>` in order to work properly.\n\n#### Configuring your chart using JS API\n\n1. Set an id for the `<vaadin-chart>` in the template\n```html\n <vaadin-chart id=\"mychart\"></vaadin-chart>\n```\n1. Add a function that uses `configuration` property (JS Api) to set chart title, categories and data\n```js\ninitChartWithJSApi() {\n requestAnimationFrame(() => {\n const configuration = this.$.mychart.configuration;\n configuration.setTitle({ text: 'The chart title' });\n // By default there is one X axis, it is referenced by configuration.xAxis[0].\n configuration.xAxis[0].setCategories(['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']);\n configuration.addSeries({\n type: 'column',\n data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]\n });\n });\n}\n```\n1. Call that function from connectedCallback (when the element is added to a document)\n```js\nconnectedCallback() {\n super.connectedCallback();\n this.initChartWithJSApi();\n}\n```\n\n#### Configuring your chart using JS JSON API\n\nJS JSON API is a simple alternative to the JS API.\n\n1. Set an id for the `<vaadin-chart>` in the template\n```html\n <vaadin-chart id=\"mychart\"></vaadin-chart>\n```\n1. Add a function that uses `updateConfiguration` method (JS JSON Api) to set chart title, categories and data\n```js\ninitChartWithJSJSONApi() {\n this.$.mychart.updateConfiguration({\n title: {\n text: 'The chart title'\n },\n subtitle: {\n text: 'Subtitle'\n },\n xAxis: {\n categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']\n },\n series: [{\n type: 'column',\n data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]\n }]\n });\n}\n```\n1. Call that function from connectedCallback (when the element is added to a document)\n```js\nconnectedCallback() {\n super.connectedCallback();\n this.initChartWithJSJSONApi();\n}\n```\n\nIt should be noted that chart style customization cannot be done via the JS or JSON API.\nStyling properties in the JSON configuration will be ignored. The following section discusses chart styling.\n\n### CSS Styling\n\nChart appearance is primarily controlled by CSS style rules.\nA comprehensive list of the supported style classes can be found at\nhttps://www.highcharts.com/docs/chart-design-and-style/style-by-css\n\nSee also the [Chart Styling](https://vaadin.com/docs/latest/components/charts/css-styling) documentation.\n\n### RTL support\n\n`vaadin-charts` as well as [Highcharts](https://www.highcharts.com/) by itself are not adjusting the layout\nbased on the `dir` attribute. In order to make `vaadin-charts` display RTL content properly additional\nJSON configuration should be used.\nEach chart should be updated based on the specific needs, but general recommendations are:\n\n 1. Set `reversed` to true for xAxis (https://api.highcharts.com/highcharts/xAxis.reversed).\n 2. Set `useHTML` to true for text elements, i.e. `tooltip` (https://api.highcharts.com/highcharts/tooltip.useHTML).\n 3. Set `rtl` to true for `legend` (https://api.highcharts.com/highcharts/legend.rtl).\n\n### Setting colors\n\nAlthough charts can be styled as described above, there is a simpler way for setting colors.\nColors can be set using CSS custom properties `--vaadin-charts-color-{n}` (where `n` goes from `0 - 9`).\n\nFor example `--vaadin-charts-color-0` sets the color of the first series on a chart.",
|
|
239
239
|
"attributes": [
|
|
240
240
|
{
|
|
241
241
|
"name": "category-max",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/charts",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "25.0.0-alpha10",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"attributes": [
|
|
22
22
|
{
|
|
23
23
|
"name": ".values",
|
|
24
|
-
"description": "An array of data used by the series.\nFormat depends on the chart type and can be:\n - An array of numerical values `[y0, y1, y2, y3,...]`\n - An array of arrays with 2 values (`x`, `y`) `[ [x0, y0], [x1, y1], [x2, y2], ... ]`\n - An array of objects, each one describing one point `[ {x: x0, y: y0, name: 'Point0', color: '#FF0000'}, {...}, ...]`\n\n See more in [API Site](https://api.highcharts.com/highcharts/series)
|
|
24
|
+
"description": "An array of data used by the series.\nFormat depends on the chart type and can be:\n - An array of numerical values `[y0, y1, y2, y3,...]`\n - An array of arrays with 2 values (`x`, `y`) `[ [x0, y0], [x1, y1], [x2, y2], ... ]`\n - An array of objects, each one describing one point `[ {x: x0, y: y0, name: 'Point0', color: '#FF0000'}, {...}, ...]`\n\n See more in [API Site](https://api.highcharts.com/highcharts/series)",
|
|
25
25
|
"value": {
|
|
26
26
|
"kind": "expression"
|
|
27
27
|
}
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"name": "vaadin-chart",
|
|
103
|
-
"description": "`<vaadin-chart>` is a Web Component for creating high quality charts.\n\n### Basic use\n\nThere are two ways of configuring your `<vaadin-chart>` element: **HTML API**, **JS API** and **JSON API**.\nNote that you can make use of all APIs in your element.\n\n#### Configuring your chart using HTML API\n\n`vaadin-chart` has a set of attributes to make it easier for you to customize your chart.\n\n```html\n <vaadin-chart title=\"The chart title\" subtitle=\"The chart subtitle\">\n <vaadin-chart-series\n type=\"column\"\n title=\"The series title\"\n values=\"[10,20,30]\">\n </vaadin-chart-series>\n </vaadin-chart>\n```\n\n> Note that while you can set type for each series individually, for some types, such as `'bar'`, `'gauge'` and `'solidgauge'`, you\n> have to set it as the default series type on `<vaadin-chart>` in order to work properly.\n\n#### Configuring your chart using JS API\n\n1. Set an id for the `<vaadin-chart>` in the template\n```html\n <vaadin-chart id=\"mychart\"></vaadin-chart>\n```\n1. Add a function that uses `configuration` property (JS Api) to set chart title, categories and data\n```js\ninitChartWithJSApi() {\n requestAnimationFrame(() => {\n const configuration = this.$.mychart.configuration;\n configuration.setTitle({ text: 'The chart title' });\n // By default there is one X axis, it is referenced by configuration.xAxis[0].\n configuration.xAxis[0].setCategories(['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']);\n configuration.addSeries({\n type: 'column',\n data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]\n });\n });\n}\n```\n1. Call that function from connectedCallback (when the element is added to a document)\n```js\nconnectedCallback() {\n super.connectedCallback();\n this.initChartWithJSApi();\n}\n```\n\n#### Configuring your chart using JS JSON API\n\nJS JSON API is a simple alternative to the JS API.\n\n1. Set an id for the `<vaadin-chart>` in the template\n```html\n <vaadin-chart id=\"mychart\"></vaadin-chart>\n```\n1. Add a function that uses `updateConfiguration` method (JS JSON Api) to set chart title, categories and data\n```js\ninitChartWithJSJSONApi() {\n this.$.mychart.updateConfiguration({\n title: {\n text: 'The chart title'\n },\n subtitle: {\n text: 'Subtitle'\n },\n xAxis: {\n categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']\n },\n series: [{\n type: 'column',\n data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]\n }]\n });\n}\n```\n1. Call that function from connectedCallback (when the element is added to a document)\n```js\nconnectedCallback() {\n super.connectedCallback();\n this.initChartWithJSJSONApi();\n}\n```\n\nIt should be noted that chart style customization cannot be done via the JS or JSON API.\nStyling properties in the JSON configuration will be ignored. The following section discusses chart styling.\n\n### CSS Styling\n\nChart appearance is primarily controlled by CSS style rules.\nA comprehensive list of the supported style classes can be found at\nhttps://www.highcharts.com/docs/chart-design-and-style/style-by-css\n\nSee also the [Chart Styling](https://vaadin.com/docs/latest/components/charts/css-styling) documentation.\n\n### RTL support\n\n`vaadin-charts` as well as [Highcharts](https://www.highcharts.com/) by itself are not adjusting the layout\nbased on the `dir` attribute. In order to make `vaadin-charts` display RTL content properly additional\nJSON configuration should be used.\nEach chart should be updated based on the specific needs, but general recommendations are:\n\n 1. Set `reversed` to true for xAxis (https://api.highcharts.com/highcharts/xAxis.reversed).\n 2. Set `useHTML` to true for text elements, i.e. `tooltip` (https://api.highcharts.com/highcharts/tooltip.useHTML).\n 3. Set `rtl` to true for `legend` (https://api.highcharts.com/highcharts/legend.rtl).\n\n### Setting colors\n\nAlthough charts can be styled as described above, there is a simpler way for setting colors.\nColors can be set using CSS custom properties `--vaadin-charts-color-{n}` (where `n` goes from `0 - 9`).\n\nFor example `--vaadin-charts-color-0` sets the color of the first series on a chart
|
|
103
|
+
"description": "`<vaadin-chart>` is a Web Component for creating high quality charts.\n\n### Basic use\n\nThere are two ways of configuring your `<vaadin-chart>` element: **HTML API**, **JS API** and **JSON API**.\nNote that you can make use of all APIs in your element.\n\n#### Configuring your chart using HTML API\n\n`vaadin-chart` has a set of attributes to make it easier for you to customize your chart.\n\n```html\n <vaadin-chart title=\"The chart title\" subtitle=\"The chart subtitle\">\n <vaadin-chart-series\n type=\"column\"\n title=\"The series title\"\n values=\"[10,20,30]\">\n </vaadin-chart-series>\n </vaadin-chart>\n```\n\n> Note that while you can set type for each series individually, for some types, such as `'bar'`, `'gauge'` and `'solidgauge'`, you\n> have to set it as the default series type on `<vaadin-chart>` in order to work properly.\n\n#### Configuring your chart using JS API\n\n1. Set an id for the `<vaadin-chart>` in the template\n```html\n <vaadin-chart id=\"mychart\"></vaadin-chart>\n```\n1. Add a function that uses `configuration` property (JS Api) to set chart title, categories and data\n```js\ninitChartWithJSApi() {\n requestAnimationFrame(() => {\n const configuration = this.$.mychart.configuration;\n configuration.setTitle({ text: 'The chart title' });\n // By default there is one X axis, it is referenced by configuration.xAxis[0].\n configuration.xAxis[0].setCategories(['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']);\n configuration.addSeries({\n type: 'column',\n data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]\n });\n });\n}\n```\n1. Call that function from connectedCallback (when the element is added to a document)\n```js\nconnectedCallback() {\n super.connectedCallback();\n this.initChartWithJSApi();\n}\n```\n\n#### Configuring your chart using JS JSON API\n\nJS JSON API is a simple alternative to the JS API.\n\n1. Set an id for the `<vaadin-chart>` in the template\n```html\n <vaadin-chart id=\"mychart\"></vaadin-chart>\n```\n1. Add a function that uses `updateConfiguration` method (JS JSON Api) to set chart title, categories and data\n```js\ninitChartWithJSJSONApi() {\n this.$.mychart.updateConfiguration({\n title: {\n text: 'The chart title'\n },\n subtitle: {\n text: 'Subtitle'\n },\n xAxis: {\n categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']\n },\n series: [{\n type: 'column',\n data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]\n }]\n });\n}\n```\n1. Call that function from connectedCallback (when the element is added to a document)\n```js\nconnectedCallback() {\n super.connectedCallback();\n this.initChartWithJSJSONApi();\n}\n```\n\nIt should be noted that chart style customization cannot be done via the JS or JSON API.\nStyling properties in the JSON configuration will be ignored. The following section discusses chart styling.\n\n### CSS Styling\n\nChart appearance is primarily controlled by CSS style rules.\nA comprehensive list of the supported style classes can be found at\nhttps://www.highcharts.com/docs/chart-design-and-style/style-by-css\n\nSee also the [Chart Styling](https://vaadin.com/docs/latest/components/charts/css-styling) documentation.\n\n### RTL support\n\n`vaadin-charts` as well as [Highcharts](https://www.highcharts.com/) by itself are not adjusting the layout\nbased on the `dir` attribute. In order to make `vaadin-charts` display RTL content properly additional\nJSON configuration should be used.\nEach chart should be updated based on the specific needs, but general recommendations are:\n\n 1. Set `reversed` to true for xAxis (https://api.highcharts.com/highcharts/xAxis.reversed).\n 2. Set `useHTML` to true for text elements, i.e. `tooltip` (https://api.highcharts.com/highcharts/tooltip.useHTML).\n 3. Set `rtl` to true for `legend` (https://api.highcharts.com/highcharts/legend.rtl).\n\n### Setting colors\n\nAlthough charts can be styled as described above, there is a simpler way for setting colors.\nColors can be set using CSS custom properties `--vaadin-charts-color-{n}` (where `n` goes from `0 - 9`).\n\nFor example `--vaadin-charts-color-0` sets the color of the first series on a chart.",
|
|
104
104
|
"extension": true,
|
|
105
105
|
"attributes": [
|
|
106
106
|
{
|
|
@@ -1,32 +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
|
-
import { LitElement } from 'lit';
|
|
12
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
13
|
-
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
14
|
-
import { ChartSeriesMixin } from './vaadin-chart-series-mixin.js';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* LitElement based version of `<vaadin-chart-series>` web component.
|
|
18
|
-
*
|
|
19
|
-
* ## Disclaimer
|
|
20
|
-
*
|
|
21
|
-
* This component is an experiment and not yet a part of Vaadin platform.
|
|
22
|
-
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
23
|
-
*/
|
|
24
|
-
class ChartSeries extends ChartSeriesMixin(PolylitMixin(LitElement)) {
|
|
25
|
-
static get is() {
|
|
26
|
-
return 'vaadin-chart-series';
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
defineCustomElement(ChartSeries);
|
|
31
|
-
|
|
32
|
-
export { ChartSeries };
|
package/src/vaadin-lit-chart.js
DELETED
|
@@ -1,61 +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
|
-
import './vaadin-lit-chart-series.js';
|
|
12
|
-
import { css, html, LitElement } from 'lit';
|
|
13
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
14
|
-
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
15
|
-
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
16
|
-
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
17
|
-
import { ChartMixin } from './vaadin-chart-mixin.js';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* LitElement based version of `<vaadin-chart>` web component.
|
|
21
|
-
*
|
|
22
|
-
* ## Disclaimer
|
|
23
|
-
*
|
|
24
|
-
* This component is an experiment and not yet a part of Vaadin platform.
|
|
25
|
-
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
26
|
-
*/
|
|
27
|
-
class Chart extends ChartMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement)))) {
|
|
28
|
-
static get styles() {
|
|
29
|
-
return css`
|
|
30
|
-
:host {
|
|
31
|
-
display: block;
|
|
32
|
-
width: 100%;
|
|
33
|
-
overflow: hidden;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
:host([hidden]) {
|
|
37
|
-
display: none !important;
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** @protected */
|
|
43
|
-
render() {
|
|
44
|
-
return html`
|
|
45
|
-
<div id="chart"></div>
|
|
46
|
-
<slot id="slot"></slot>
|
|
47
|
-
`;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
static get is() {
|
|
51
|
-
return 'vaadin-chart';
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
static get cvdlName() {
|
|
55
|
-
return 'vaadin-chart';
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
defineCustomElement(Chart);
|
|
60
|
-
|
|
61
|
-
export { Chart };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import '../vaadin-chart-base-theme.js';
|
|
2
|
-
import '@vaadin/vaadin-material-styles/color.js';
|
|
3
|
-
import '@vaadin/vaadin-material-styles/typography.js';
|
|
4
|
-
declare const chartColors: import("lit").CSSResult;
|
|
5
|
-
declare const chartTheme: import("lit").CSSResult;
|
|
6
|
-
export { chartColors, chartTheme };
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import '../vaadin-chart-base-theme.js';
|
|
2
|
-
import '@vaadin/vaadin-material-styles/color.js';
|
|
3
|
-
import '@vaadin/vaadin-material-styles/typography.js';
|
|
4
|
-
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/register-styles.js';
|
|
5
|
-
|
|
6
|
-
const chartColors = css`
|
|
7
|
-
:host {
|
|
8
|
-
--vaadin-charts-color-0: #6200ee;
|
|
9
|
-
--vaadin-charts-color-1: #2fa69a;
|
|
10
|
-
--vaadin-charts-color-2: #ec611f;
|
|
11
|
-
--vaadin-charts-color-3: #fec02f;
|
|
12
|
-
--vaadin-charts-color-4: #ff4193;
|
|
13
|
-
--vaadin-charts-color-5: #007dee;
|
|
14
|
-
--vaadin-charts-color-6: #b064fc;
|
|
15
|
-
--vaadin-charts-color-7: #0c5d56;
|
|
16
|
-
--vaadin-charts-color-8: #42c6ff;
|
|
17
|
-
--vaadin-charts-color-9: #b00020;
|
|
18
|
-
--vaadin-charts-color-positive: var(--vaadin-charts-color-1, #2fa69a);
|
|
19
|
-
--vaadin-charts-color-negative: var(--vaadin-charts-color-9, #b00020);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:host([theme~='gradient']) {
|
|
23
|
-
--vaadin-charts-color-0: #6200ee;
|
|
24
|
-
--vaadin-charts-color-1: #6962e8;
|
|
25
|
-
--vaadin-charts-color-2: #619fe1;
|
|
26
|
-
--vaadin-charts-color-3: #2fbfd3;
|
|
27
|
-
--vaadin-charts-color-4: #03dac6;
|
|
28
|
-
--vaadin-charts-color-5: #5bd091;
|
|
29
|
-
--vaadin-charts-color-6: #acc65e;
|
|
30
|
-
--vaadin-charts-color-7: #ffbc2b;
|
|
31
|
-
--vaadin-charts-color-8: #fe9940;
|
|
32
|
-
--vaadin-charts-color-9: #fd695e;
|
|
33
|
-
--vaadin-charts-color-positive: var(--vaadin-charts-color-6);
|
|
34
|
-
--vaadin-charts-color-negative: var(--vaadin-charts-color-9);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
:host([theme~='monotone']) {
|
|
38
|
-
--vaadin-charts-color-0: #6200ee;
|
|
39
|
-
--vaadin-charts-color-1: #7f39fb;
|
|
40
|
-
--vaadin-charts-color-2: #985eff;
|
|
41
|
-
--vaadin-charts-color-3: #bb86fc;
|
|
42
|
-
--vaadin-charts-color-4: #dbb2ff;
|
|
43
|
-
--vaadin-charts-color-5: #ecddfd;
|
|
44
|
-
--vaadin-charts-color-6: #9fe3eb;
|
|
45
|
-
--vaadin-charts-color-7: #03dac6;
|
|
46
|
-
--vaadin-charts-color-8: #00c4b4;
|
|
47
|
-
--vaadin-charts-color-9: #01a299;
|
|
48
|
-
--vaadin-charts-color-positive: var(--vaadin-charts-color-8);
|
|
49
|
-
--vaadin-charts-color-negative: var(--vaadin-charts-color-0);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
:host([theme~='classic']) {
|
|
53
|
-
--vaadin-charts-color-0: #7cb5ec;
|
|
54
|
-
--vaadin-charts-color-1: #434348;
|
|
55
|
-
--vaadin-charts-color-2: #90ed7d;
|
|
56
|
-
--vaadin-charts-color-3: #f7a35c;
|
|
57
|
-
--vaadin-charts-color-4: #8085e9;
|
|
58
|
-
--vaadin-charts-color-5: #f15c80;
|
|
59
|
-
--vaadin-charts-color-6: #e4d354;
|
|
60
|
-
--vaadin-charts-color-7: #2b908f;
|
|
61
|
-
--vaadin-charts-color-8: #f45b5b;
|
|
62
|
-
--vaadin-charts-color-9: #91e8e1;
|
|
63
|
-
}
|
|
64
|
-
`;
|
|
65
|
-
|
|
66
|
-
const chartTheme = css`
|
|
67
|
-
:host {
|
|
68
|
-
--vaadin-charts-background: var(--material-background-color);
|
|
69
|
-
--vaadin-charts-title-label: var(--material-body-text-color);
|
|
70
|
-
--vaadin-charts-axis-title: var(--material-secondary-text-color);
|
|
71
|
-
--vaadin-charts-axis-label: var(--material-secondary-text-color);
|
|
72
|
-
--vaadin-charts-data-label: var(--material-body-text-color);
|
|
73
|
-
--vaadin-charts-secondary-label: var(--material-secondary-text-color);
|
|
74
|
-
--vaadin-charts-axis-line: var(--vaadin-charts-contrast-5pct);
|
|
75
|
-
--vaadin-charts-grid-line: var(--vaadin-charts-contrast-10pct);
|
|
76
|
-
--vaadin-charts-disabled-label: var(--material-disabled-text-color);
|
|
77
|
-
--vaadin-charts-contrast: var(--material-body-text-color);
|
|
78
|
-
--vaadin-charts-contrast-5pct: var(--material-secondary-background-color);
|
|
79
|
-
--vaadin-charts-contrast-10pct: var(--material-divider-color);
|
|
80
|
-
--vaadin-charts-contrast-20pct: var(--material-disabled-color);
|
|
81
|
-
--vaadin-charts-contrast-60pct: var(--material-secondary-text-color);
|
|
82
|
-
--vaadin-charts-tooltip-background: var(--material-background-color);
|
|
83
|
-
--vaadin-charts-tooltip-border-color: var(--material-background-color);
|
|
84
|
-
--vaadin-charts-button-label: var(--material-primary-color);
|
|
85
|
-
--vaadin-charts-button-background: var(--material-background-color);
|
|
86
|
-
--vaadin-charts-button-hover-background: var(--material-secondary-background-color);
|
|
87
|
-
--vaadin-charts-button-active-label: var(--material-primary-contrast-color);
|
|
88
|
-
--vaadin-charts-button-active-background: var(--material-primary-color);
|
|
89
|
-
--vaadin-charts-xaxis-line-width: 0;
|
|
90
|
-
--vaadin-charts-tooltip-background-opacity: 1;
|
|
91
|
-
font-family: var(--material-font-family);
|
|
92
|
-
}
|
|
93
|
-
`;
|
|
94
|
-
|
|
95
|
-
registerStyles('vaadin-chart', [chartColors, chartTheme], { moduleId: 'material-chart' });
|
|
96
|
-
|
|
97
|
-
export { chartColors, chartTheme };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './vaadin-chart-series.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/vaadin-lit-chart-series.js';
|
package/vaadin-lit-chart.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './vaadin-chart.js';
|
package/vaadin-lit-chart.js
DELETED