Skip to content

Commit e05701c

Browse files
enable dynamic property conversion (#15)
* enable dynamic property conversion * make sure to also convert dynamic properties when updating options --------- Co-authored-by: Falko Schindler <falko@zauberzeug.com>
1 parent a18aef2 commit e05701c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nicegui_highcharts/highchart.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { convertDynamicProperties } from "../../static/utils/dynamic_properties.js";
2+
13
export default {
24
template: "<div></div>",
35
async mounted() {
@@ -6,6 +8,7 @@ export default {
68
await import("highcharts-more");
79
}
810
await Promise.all(this.extras.map((extra) => import(extra)));
11+
convertDynamicProperties(this.options, true);
912
this.seriesCount = this.options.series ? this.options.series.length : 0;
1013
this.options.plotOptions = this.options.plotOptions ?? {};
1114
this.options.plotOptions.series = this.options.plotOptions.series ?? {};
@@ -47,6 +50,7 @@ export default {
4750
this.chart.addSeries({}, false);
4851
this.seriesCount++;
4952
}
53+
convertDynamicProperties(this.options, true);
5054
this.chart.update(this.options);
5155
}
5256
},

0 commit comments

Comments
 (0)