gviz_api.py, is not a part of appengine infrastructure or libs, thus you
must copy the gviz_api.py file to your work directory on appengine (same
directory as index.py for example).
This way import gviz_api will work fine.

Regards,
VizGuy


On Wed, Feb 11, 2009 at 5:46 PM, S.I <[email protected]> wrote:

>
> Hi,
>
>
> I have datastore Kind name as Energy with fields as Power and
> RecValue.
>
> My db Model is
>
> Class Energy(db.model)
>   Power=db.IntegerProperty
>   RecValue=db.IntegerProperty
>
>
> I have bulkloader.py to read the data from CSV to stored in Energy
> Datastore.
>
> I want another index.py file to read the data from Energy datastore
> and show as line graph using visualization in Google App Engine.
>
> I am trying with gviz_api. gviz_api is work in normal python file but
> not work in Google App engine. Import Module error occured when I am
> using gviz_api.
>
> I follow the sample in Google Visualization api with Data Request. The
> code is
>
> function drawVisualization() {
>  var query = new google.visualization.Query(
>      'http://spreadsheets.google.com/tq?key=pCQbetd-
> CptGXxxQIG7VFIQ&range=B1:D11&pub=1'<http://spreadsheets.google.com/tq?key=pCQbetd-%0ACptGXxxQIG7VFIQ&range=B1:D11&pub=1%27>
> );
>
>  // Send the query with a callback function.
>  query.send(handleQueryResponse);
> }
>
> function handleQueryResponse(response) {
>  if (response.isError()) {
>    alert('Error in query: ' + response.getMessage() + ' ' +
> response.getDetailedMessage());
>    return;
>  }
>
>  var data = response.getDataTable();
>  visualization = new google.visualization.IntensityMap
> (document.getElementById('visualization'));
>  visualization.draw(data, null);
> }
>
>
> I want complete sample source code  for datastore based data source
> request using visualization in Google App Engine.
>
>
>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to