SVG is not working. I can only generate Canvas despite SVGRenderer in configuration
chikakow opened this issue · 2 comments
chikakow commented
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 , ]);
swapnil0545 commented
Any luck on same?
pierresh commented
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>