DannyD

Can't seem to get wkhtmltoimage working

Recommended Posts

Hi, I have created a simple chart using example chart here at Create a Chart Using FusionCharts | FusionCharts 

I have saved the file as HTML and the chart loads fine when I view this file directly. 

However, when I try to save the image to the disk using Wkhtmltoimage then I just get this placeholder text below. 

<div id="chart-container">FusionCharts XT will load here!</div>

This is what my command looks like

wkhtmltoimage --width 800 --javascript-delay 2000 chart.html newchart.png

What do I need to fix this issue? I can confirm that WkthmlImage works fine for any other HTML.

Share this post


Link to post
Share on other sites

Hi - please let me know if there is anything objectionable in this post as it's been more than 16 hours since it's pending for approval.

Share this post


Link to post
Share on other sites

Hi Danny,

Apologies for the delay.

You can try out FusionExport for saving the chart image to your disk along with much more functionalities: https://www.fusioncharts.com/dev/exporting-charts/using-fusionexport/overview

For the issue related to wkhtmltoimage please check their forum, if you are getting any issue logged from the fusioncharts library please let us know.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now