Search code examples
svgvaadinvaadin-charts

Vaadin Charts Export to SVG after Zoom


Export of charts to PDF or SVG working. Export of a zoomed chart results in SVG-File with chart without zoom. Is there a way to generate a SVG image of the chart with the selected zoom?


Solution

  • You should be able to export the zoomed chart by setting the extremes of the axes. I think axis extremes are not synchronized, but you can get the values from a ChartSelectionEvent for instance.