fix(chart): initialize chart instance with SVG renderer and update styles for chart container
This commit is contained in:
@@ -62,7 +62,7 @@ export abstract class DeesChartEchartsBase extends DeesElement {
|
|||||||
if (!chartContainer) return;
|
if (!chartContainer) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.chartInstance = this.echartsBundle.init(chartContainer);
|
this.chartInstance = this.echartsBundle.init(chartContainer, null, { renderer: 'svg' });
|
||||||
this.updateChart();
|
this.updateChart();
|
||||||
|
|
||||||
this.resizeObserver = new ResizeObserver(() => {
|
this.resizeObserver = new ResizeObserver(() => {
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ export const echartsBaseStyles = [
|
|||||||
.chartContainer {
|
.chartContainer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
|
will-change: transform;
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user