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¶m=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¶m=Temp&vis=chart&startTime=2012-01-01&endTime=2012-02-14But... here my two problems come:
- 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.
- 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