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;
|
||||
|
||||
try {
|
||||
this.chartInstance = this.echartsBundle.init(chartContainer);
|
||||
this.chartInstance = this.echartsBundle.init(chartContainer, null, { renderer: 'svg' });
|
||||
this.updateChart();
|
||||
|
||||
this.resizeObserver = new ResizeObserver(() => {
|
||||
|
||||
@@ -31,6 +31,7 @@ export const echartsBaseStyles = [
|
||||
.chartContainer {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
will-change: transform;
|
||||
}
|
||||
`,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user