intelica-library-ui 0.1.86 → 0.1.87
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.
|
@@ -2548,10 +2548,15 @@ class EchartComponent {
|
|
|
2548
2548
|
refreshChart() {
|
|
2549
2549
|
this.chart.setOption(this.config);
|
|
2550
2550
|
}
|
|
2551
|
+
resize() {
|
|
2552
|
+
if (this.chart) {
|
|
2553
|
+
setTimeout(() => {
|
|
2554
|
+
this.chart.resize();
|
|
2555
|
+
}, 1);
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2551
2558
|
initChart(chartElement) {
|
|
2552
|
-
const observer = new ResizeObserver(
|
|
2553
|
-
this.chart.resize();
|
|
2554
|
-
});
|
|
2559
|
+
const observer = new ResizeObserver(this.resize);
|
|
2555
2560
|
this.chart = echarts.init(chartElement);
|
|
2556
2561
|
this.chart.setOption(this.config);
|
|
2557
2562
|
this.chart.on('click', (params) => {
|