What problem does this feature solve?
Now the SVG export feature is limited to toolbox and we have to follow below steps to get SVG from chart instance.
- Use 'svg' as renderer when init ECharts;
- Add saveAsImage in toolbox;
- Click download in toolbox and will download the SVG chart.
Many times we need to embed the charts inside our PDF's which is not possible now as we don't have a SVG export API in place.
What does the proposed API look like?
echartsInstance. getDataURL currently supports only PNG or JPEG we should extend it to support SVG when the chart is rendered using SVG.
https://echarts.apache.org/en/api.html#echartsInstance.getDataURL
What problem does this feature solve?
Now the SVG export feature is limited to toolbox and we have to follow below steps to get SVG from chart instance.
Many times we need to embed the charts inside our PDF's which is not possible now as we don't have a SVG export API in place.
What does the proposed API look like?
echartsInstance. getDataURL currently supports only PNG or JPEG we should extend it to support SVG when the chart is rendered using SVG.
https://echarts.apache.org/en/api.html#echartsInstance.getDataURL