ZK Charts and Export

asked 2015-08-05 08:16:30 +0800

IngoB gravatar image IngoB flag of Germany
256 6


I'm using ZK Charts & ZK 8.0.0-RC and I want to export a chart. There is a button for exporting, which is working if you click it manually.

Export Button

But I want to trigger the button and export a PNG with java code. I got multiple charts and I want to create a "export all" button.

So it is possible to export a chart with java code?

delete flag offensive retag edit


I found


I'll try to replicate the POST and let you know if its working :)

IngoB ( 2015-08-05 10:03:38 +0800 )edit

It is working. It's possible to send a JSON String and get an image back.

IngoB ( 2015-08-06 12:11:26 +0800 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2016-08-24 14:42:53 +0800

echavanon gravatar image echavanon

I have same problem. I want export all chart in a pdf with java code.

link publish delete flag offensive edit

answered 2016-08-25 07:21:08 +0800

IngoB gravatar image IngoB flag of Germany
256 6


it is possible to get JSON from your chart series (and options etc.)

for (int i = 0; i < chart.getSeriesSize(); i++) {
    series += chart.getSeries(i).toJSONString() + ",";

With this data you can send a POST Request to an export server. To get a PDF you have to set the return type parameter to 'application/pdf'

You can try your JSON here => http://export.highcharts.com/demo

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2015-08-05 08:16:30 +0800

Seen: 31 times

Last updated: Aug 25 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More