|
Hi all,
I'm trying to create a PDF out of a page that I am rendering. The page contains some charts using google-chart-0.5.2 and eastwood-chart-0.5. The page renders to the browser just fine, but when I try to create a PDF I get this error: Class org.xml.sax.SAXParseException Message The reference to entity "chd" must end with the ';' delimiter. I think the reason for this is that the HTML to create the image contains "chd" as a parameter to the chart renderer: <img src="http://localhost:8080/MyClass/chart? chs=400x200&chd=t:154.00,150.00,152.00,164.00,162.00,156.00,168.00,160.00,166.00,158.00&chtt=Weights&chl=2012-02-19 15:40:13.844|2012-02-05 15:40:13.844|2012-02-12 15:40:13.844|2012-03-25 15:40:13.844|2012-03-18 15:40:13.844|2012-02-26 15:40:13.844|2012-04-08 15:40:13.844|2012-03-11 15:40:13.844|2012-04-01 15:40:13.844|2012-03-04 15:40:13.844&cht=p3" /> In the GSP, I'm calling the chart thusly: <g:pieChart type="3d" title="Weights" labels="${labels}" dataType="text" data="${data}"/>Any ideas on how I can keep the SAX parser from barfing on the image? Thanks in advance! Paul |
|
Did you ever get this to work? What's the secret?
Thanks! |
|
Here's the original question that reported the same problem I'm having:
Hi all,
I'm trying to create a PDF out of a page that I am rendering. The page contains some charts using google-chart-0.5.2 and eastwood-chart-0.5. The page renders to the browser just fine, but when I try to create a PDF I get this error: Class org.xml.sax.SAXParseException Message The reference to entity "chd" must end with the ';' delimiter. I think the reason for this is that the HTML to create the image contains "chd" as a parameter to the chart renderer: <img src="<a href="http://localhost:8080/MyClass/chart? chs=400x200&chd=t:154.00,150.00,152.00,164.00,162.00,156.00,168.00,160.00,166.00,158.00&chtt=Weights&chl=2012-02-19">http://localhost:8080/MyClass/chart? chs=400x200&chd=t:154.00,150.00,152.00,164.00,162.00,156.00,168.00,160.00,166.00,158.00&chtt=Weights&chl=2012-02-19 15:40:13.844|2012-02-05 15:40:13.844|2012-02-12 15:40:13.844|2012-03-25 15:40:13.844|2012-03-18 15:40:13.844|2012-02-26 15:40:13.844|2012-04-08 15:40:13.844|2012-03-11 15:40:13.844|2012-04-01 15:40:13.844|2012-03-04 15:40:13.844&cht=p3" /> In the GSP, I'm calling the chart thusly: <g:pieChart type="3d" title="Weights" labels="${labels}" dataType="text" data="${data}"/>
Any ideas on how I can keep the SAX parser from barfing on the image? Thanks in advance! Paul --------------------------- www.maf.org/rhoads www.ontherhoads.org On Sat, Jun 30, 2012 at 2:55 PM, bdrhoa <[hidden email]> wrote: Did you ever get this to work? What's the secret? |
|
Sorry, never had any resolution. I gave up on google charts anyway, because I didn't want to be reliant on a third party. Sent from my iPhone
|
|
Did you find any server side charting solution?
--------------------------- www.maf.org/rhoads www.ontherhoads.org On Sun, Jul 1, 2012 at 10:34 AM, PaulWaldo <[hidden email]> wrote:
|
|
In reply to this post by bdrhoa
I believe the Rendering plugin uses XHTMLRenderer underneath, so I think the ampersands may cause your problem:
http://java.net/projects/xhtmlrenderer/lists/users/archive/2008-03/message/25 /Claes Date: Sat, 30 Jun 2012 16:49:36 -0600 From: [hidden email] To: [hidden email] Subject: Re: [grails-user] Re: Image Parsing Exception with Rendering Plugin Here's the original question that reported the same problem I'm having: Hi all,
I'm trying to create a PDF out of a page that I am rendering. The page contains some charts using google-chart-0.5.2 and eastwood-chart-0.5. The page renders to the browser just fine, but when I try to create a PDF I get this error: Class org.xml.sax.SAXParseException Message The reference to entity "chd" must end with the ';' delimiter. I think the reason for this is that the HTML to create the image contains "chd" as a parameter to the chart renderer: <img src="http://localhost:8080/MyClass/chart? chs=400x200&chd=t:154.00,150.00,152.00,164.00,162.00,156.00,168.00,160.00,166.00,158.00&chtt=Weights&chl=2012-02-19 15:40:13.844|2012-02-05 15:40:13.844|2012-02-12 15:40:13.844|2012-03-25 15:40:13.844|2012-03-18 15:40:13.844|2012-02-26 15:40:13.844|2012-04-08 15:40:13.844|2012-03-11 15:40:13.844|2012-04-01 15:40:13.844|2012-03-04 15:40:13.844&cht=p3" /> In the GSP, I'm calling the chart thusly: <g:pieChart type="3d" title="Weights" labels="${labels}" dataType="text" data="${data}"/>
Any ideas on how I can keep the SAX parser from barfing on the image? Thanks in advance! Paul --------------------------- www.maf.org/rhoads www.ontherhoads.org On Sat, Jun 30, 2012 at 2:55 PM, bdrhoa <[hidden email]> wrote: Did you ever get this to work? What's the secret? |
|
In reply to this post by bdrhoa
I'm current looking at BIRT (http://www.eclipse.org/birt/phoenix/intro/) It looks very promising!
On Mon, Jul 2, 2012 at 12:22 AM, bdrhoa [via Grails] <[hidden email]> wrote: Did you find any server side charting solution? Paul Waldo http://paulwaldo.com |
| Powered by Nabble | Edit this page |
