• Resolved pjcseo

    (@pjcseo)


    I am trying to figure out how to use charts and graphs for the gravity forms pdf plugin. I can easily create tables using the data array, but how would I add this data to a pie chart or bar graph? I have looked at the jpgraph documentation, but there is no explanation on how to install it to a wordpress site.

    https://wordpress.org/plugins/gravity-forms-pdf-extended/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Hi,

    Jpgraph is just a PHP library. Download the package, upload it to your PDF_EXTENDED_TEMPLATES directory and follow their guide for generating a chart (your code should go in your PDF template file).

    Thread Starter pjcseo

    (@pjcseo)

    Thank you very much for the prompt reply.
    I’ll mark this issue as resolved.

    I’ve been looking for instruction on how to install this, is there any further details you can provide? I uploaded the file to my PDF_EXTENDED_TEMPLATES directory, and followed the documentation to try and load a test graph
    http://mpdf1.com/manual/index.php?tid=364
    But I just get a blank screen from this, I even used “view page source” and there is still nothing there. Any suggestions would be very much appreciated. Or if there is another program available to accomplish this, that would be great as well.

    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Ignore the documentation on mPDF regarding JpGraph and instead follow the JpGraph documentation for correctly setting up and configuring the software.

    We prefer to save the image to disk directly from the PDF template and then call it using an <img> tag, but you can also keep your image generation script separate. The JpGraph docs go into more details.

    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Regarding the “blank screen” it sounds like a PHP error. Set WP_DEBUG to true while developing your template to see any problems.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Charts & Graphs’ is closed to new replies.