@vaadin/charts 24.5.0-beta1 → 24.5.0-rc2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/charts",
3
- "version": "24.5.0-beta1",
3
+ "version": "24.5.0-rc2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,14 +36,14 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "24.5.0-beta1",
40
- "@vaadin/vaadin-lumo-styles": "24.5.0-beta1",
41
- "@vaadin/vaadin-material-styles": "24.5.0-beta1",
42
- "@vaadin/vaadin-themable-mixin": "24.5.0-beta1",
39
+ "@vaadin/component-base": "24.5.0-rc2",
40
+ "@vaadin/vaadin-lumo-styles": "24.5.0-rc2",
41
+ "@vaadin/vaadin-material-styles": "24.5.0-rc2",
42
+ "@vaadin/vaadin-themable-mixin": "24.5.0-rc2",
43
43
  "highcharts": "9.2.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/chai-plugins": "24.5.0-beta1",
46
+ "@vaadin/chai-plugins": "24.5.0-rc2",
47
47
  "@vaadin/testing-helpers": "^1.0.0",
48
48
  "sinon": "^18.0.0"
49
49
  },
@@ -52,5 +52,5 @@
52
52
  "web-types.json",
53
53
  "web-types.lit.json"
54
54
  ],
55
- "gitHead": "da4b57724d7089e3766d59d01068159322adb2b8"
55
+ "gitHead": "be5bf40aec33761c6defdb5b3093c7b6dd5d97fd"
56
56
  }
@@ -1555,9 +1555,7 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
1555
1555
  return;
1556
1556
  }
1557
1557
 
1558
- if (title && title.length > 0) {
1559
- config.title.update({ text: title });
1560
- }
1558
+ config.title.update({ text: title });
1561
1559
  }
1562
1560
 
1563
1561
  /** @private */
@@ -1575,11 +1573,9 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
1575
1573
  return;
1576
1574
  }
1577
1575
 
1578
- if (type && type.length > 0) {
1579
- config.update({
1580
- chart: { type },
1581
- });
1582
- }
1576
+ config.update({
1577
+ chart: { type: type || 'line' },
1578
+ });
1583
1579
  }
1584
1580
 
1585
1581
  /** @private */
@@ -1588,12 +1584,10 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
1588
1584
  return;
1589
1585
  }
1590
1586
 
1591
- if (subtitle && subtitle.length > 0) {
1592
- if (!config.subtitle) {
1593
- config.setSubtitle({ text: subtitle });
1594
- } else {
1595
- config.subtitle.update({ text: subtitle });
1596
- }
1587
+ if (!config.subtitle) {
1588
+ config.setSubtitle({ text: subtitle });
1589
+ } else {
1590
+ config.subtitle.update({ text: subtitle });
1597
1591
  }
1598
1592
  }
1599
1593
 
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": "24.5.0-beta1",
4
+ "version": "24.5.0-rc2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/charts",
4
- "version": "24.5.0-beta1",
4
+ "version": "24.5.0-rc2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {