zubinmehta
zubinmehta

Reputation: 4533

Convert python variables into javascript variables

I want to use Google Chart API using javascript. (I don't want to use the python wrapper) So how do I send data from my python code into the javascript to create graphs?

Upvotes: 2

Views: 1035

Answers (1)

gilesc
gilesc

Reputation: 1979

You can translate Python data to Javascript data types with JSON ( http://docs.python.org/library/json.html ). I assume you're using this alongside a Python-based web server?

Upvotes: 2

Related Questions