Export vaadin 14 chart to file by clicking on my button

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 (image resolution) and another properties of exporting file?