From linechart to imagelinechart

50 views
Skip to first unread message

Antonio Bulgheroni

unread,
Feb 14, 2012, 12:11:00 PM2/14/12
to google-visua...@googlegroups.com
Dear all,

   I'm having two issues going from the LineChart visualization to the ImageLineChart. Let me try to explain what I would like to do and where I'm failing.

I'm running a webpage showing a number of linechart using the Google chart tools. Data are stored into a MySQL database and I'm using something similar to this example to populate the DataTable.

I would like the user to be able to see the chart in three different ways: interactive using LineChart, tabular using Table and also as a simple png file to download and save it. I was very happy when I've found the ImageLineChart that is supposed to be a wrapper for a static png. This is minimally invasive in my code since I have just to deal with another visualization according to user selection.

Here you see an example of LineChart: http://www.grafici-reattori.tk/beta2/index.php?react=r1&param=Temp&vis=graph&startTime=2012-01-01&endTime=2012-02-14
and this should be the page containing the corresponding picture http://www.grafici-reattori.tk/beta2/index.php?react=r1&param=Temp&vis=chart&startTime=2012-01-01&endTime=2012-02-14

But... here my two problems come:

  1. The first one is that I can't set the size of the chart. I've tried both setting chs and width height but with no luck.
  2. The second one is even worse, because if I right-click on the chart and select Save image as, I got an empty file. Indeed this is pointing to http://chart.googleapis.com/chart with no parameters.

Can you help me in sorting this out?

Thanks in advance for every suggestions

toto

Antonio Bulgheroni

unread,
Feb 14, 2012, 3:41:46 PM2/14/12
to google-visua...@googlegroups.com
I've found another, possibly easier way out: using canvg to convert the svg to a picture. 

thanks anyway...

-----------------------------------------
Antonio Bulgheroni, PhD









--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/TqiRL-ArwA8J.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

ChartMan

unread,
Feb 19, 2012, 12:15:29 PM2/19/12
to google-visua...@googlegroups.com

Thanks for your feedback.

Reply all
Reply to author
Forward
0 new messages