xieziyu/ngx-echarts

SVG is not working. I can only generate Canvas despite SVGRenderer in configuration

chikakow opened this issue · 2 comments

I have coded to set to use SVG but still it is rendering as Canvas. Please tell me what I am doing wrong or is this a bug?
import { SVGRenderer } from 'echarts/renderers';
echarts.use([ BarChart, TitleComponent, TooltipComponent, ToolboxComponent, GridComponent, SVGRenderer , ]);

Any luck on same?

It seems that just adding [initOpts]="{ renderer: 'svg' }" is enough to render the chart with SVG not with Canvas

<div
	class="chart"
	echarts
	[autoResize]="true"
	[options]="lineOption"
	[initOpts]="{ renderer: 'svg' }"
></div>