0

I want to create server sided images from my charts in order to build reports. The creation of and saving of the images works fine, but i want to state different values of "width" of the images. My attempts to do this were unfortunately not successful. I have changed the value of "width" and "scale" but nothing has changed. There is always the same width of the created image.

My $command is:

chartExport/phantomjs/bin/phantomjs chartExport/js/highcharts-convert.js  -infile chartExport/js/tmp/test.json -outfile chartExport/js/tmp/test.png -width 1000 -scale 1 -constr Chart

How can I change the measurements of the images?

4

1 回答 1

0

我有同样的问题。您可以在导出选项中设置比例,并将导出选项中的 url 设置为导出服务器,并在图表呈现后尝试调用 chart.exportChart()。

我认为这是 Highcharts 中的一个错误,即并非所有内容都正确导出,并且并非所有导出参数都有效。

于 2013-07-16T19:45:07.570 回答