Hi,

You can try to export the chart into base64 string and pass it to Java.
The API is:
https://echarts.apache.org/en/api.html#echartsInstance.getDataURL
Here's an example of half donut:
https://echarts.apache.org/examples/en/editor.html?c=pie-half-donut

Thanks

*Ovilia*


On Mon, Oct 30, 2023 at 2:15 PM Benjamin Suqui C. <bsu...@gmail.com> wrote:

> Hi ECharts Team,
>
> I am a backend developer, I want to export chart diagrams to PDF files.
> I have discovered Apache echarts and it looks really great. Is there any
> possibility to pass the charts to PNG images with Java (not JavaScript).
> I tried it by passing json String to byte[], but there is a NULL as
> response.
>
> I also take this opportunity to ask if you have a char for the HalfDonut
> option?
>
> Thanks for your answer,
> Benjamin
>

Reply via email to