Hi
This question relates to AppEngine more than it is to Chart Tools.
AppEngine support a template engine call Django.
Try looking at the documentation for this and use their mailing list.

--Ed

On Sun, Aug 15, 2010 at 12:39 PM, kung-hung chen <[email protected]>wrote:

> Hello everyone,
>
> I have some question in how to use the google chart api in google
> appengine with python.
> I find a java tool names charts4j , but it is written in java.So I
> can't use it with my app.
> I wonder to know whether it can use google chart api in python's
> region.
>
> And the chart api's code i want to use is just like below:
>
> <html>
>  <head>
>    <script type="text/javascript" src="http://www.google.com/jsapi";></
> script>
>    <script type="text/javascript">
>      google.load("visualization", "1", {packages:["corechart"]});
>      google.setOnLoadCallback(drawChart);
>      function drawChart() {
>        var data = new google.visualization.DataTable();
>        data.addColumn('string', 'Year');
>        data.addColumn('number', 'Sales');
>        data.addColumn('number', 'Expenses');
>        data.addRows(4);
>        data.setValue(0, 0, '2004');
>        data.setValue(0, 1, 1000);
>        data.setValue(0, 2, 400);
>        data.setValue(1, 0, '2005');
>        data.setValue(1, 1, 1170);
>        data.setValue(1, 2, 460);
>        data.setValue(2, 0, '2006');
>        data.setValue(2, 1, 860);
>        data.setValue(2, 2, 580);
>        data.setValue(3, 0, '2007');
>        data.setValue(3, 1, 1030);
>        data.setValue(3, 2, 540);
>
>        var chart = new
> google.visualization.LineChart(document.getElementById('chart_div'));
>        chart.draw(data, {width: 400, height: 240, title: 'Company
> Performance'});
>      }
>    </script>
>  </head>
>
>  <body>
>    <div id="chart_div"></div>
>  </body>
> </html>
>
> I wonder to know whether i can replace the value with variable, so
> that i can use my data to get a new chart when
> i input another data in each time. I think this way is called
> 'template'. Isn't it?
>
> If you know how to do that, can you teach me? Thanks!!!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Chart API" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-chart-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-chart-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart 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-chart-api?hl=en.

Reply via email to