I've found another, possibly easier way out: using canvg to convert the svg to a picture.
thanks anyway... ----------------------------------------- Antonio Bulgheroni <http://www.google.com/profiles/antonio.bulgheroni>, PhD * <http://feeds.feedburner.com/%7Er/unicolabrss/%7E6/2> * On Tue, Feb 14, 2012 at 6:11 PM, Antonio Bulgheroni < [email protected]> wrote: > 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<http://code.google.com/intl/it/apis/chart/interactive/docs/php_example.html>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<http://code.google.com/apis/chart/interactive/docs/gallery/imagelinechart.html>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-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 > > -- > 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 > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
