Skip to content

Programmatically exporting SVG rendered chart to PDF #16098

@msbasanth

Description

@msbasanth

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.

  1. Use 'svg' as renderer when init ECharts;
  2. Add saveAsImage in toolbox;
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishnew-featurependingWe are not sure about whether this is a bug/new feature.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions