Skip to content

Commit b24e2b8

Browse files
authored
feat!: upgrade Highcharts version to 12.2.0 (#10010)
Upgrade the Highcharts dependency to 12.2.0. The list of changes introduced in this PR: - Update the base styles to use both the `--vaadin-charts-*` and `--highcharts-*` CSS properties API, with the latter taking precedence, when both are defined. - Add a new the new `legend.events.itemClick` event introduced to replace `series.events.legendItemClick`. The callback dispatches either a `series-legend-item-click` or a `point-legend-item-click` event, depending on the type of the `legendItem` property. - Update the monkeypatch for firing the `beforeExport`/`afterExport` events used by the mixin to copy the styles to the body and do the cleanup afterwards, when the user exports the chart as an image. - Update monkeypatch to fix a BFP to use the correct method - Add a workaround for allowing setting lang global options in rendered charts - Add a workaround for fixing labels' position in "organization" charts in styled mode - One possible breaking change introduced in recent versions of Highcharts is that `userOptions` used to be somewhat static, meaning that after the chart was initialized, its value wouldn't update based on the chart's updates. Now, adding/removing items (such as series or points) is reflected in the `userOptions` object. - Some of the changes in the `userOptions` object is that properties that accept arrays, such as `xAxis`, `yAxis`, etc, used to maintain the type of the object it was initially passed in the options, if for instance, an object was passed. That changed so that it always returns an array in the `userOptions`. - That's why the `__hasConfigurationBuffer` method has changed to take into account the case where the property is an array. Part of #8825 Fix #9908
1 parent db56714 commit b24e2b8

24 files changed

+646
-260
lines changed

packages/charts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@open-wc/dedupe-mixin": "^1.3.0",
3737
"@vaadin/component-base": "25.0.0-alpha16",
3838
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha16",
39-
"highcharts": "9.2.2",
39+
"highcharts": "12.2.0",
4040
"lit": "^3.0.0"
4141
},
4242
"devDependencies": {

0 commit comments

Comments
 (0)