Vaadin 14, export chart

Hello!
Could you tell me, how can I export to file vaadin 14 chart by clicking on my button.
And how can I configure size and another properties of exporting file?
SVGGenerator don’t work in vaadin 14, do it?