In python I create my "data" and "description", and save the results with
JSON format and plot it with google visualization.
description = [("time","string"),(Pivar[i],"number"),(Piyvar[i],"number")]
data.append((xvar,float(oadmp[1]),float(oerrcp[1])))
data_table = gviz_api.DataTable(description)
data_table.LoadData(data)
json = data_table.ToJSon()
This is my page template:
function drawChart%(i)s() {
var json_chart = new
google.visualization.LineChart(document.getElementById('chart_div_json%(i)s'));
var json_data = new google.visualization.DataTable(%(json)s, 0.6);
Output: {c:[{v: '09/14/2014'}, {v: 2}, {v:3}]}
The problem that I have is that if i want to have an output like this: [{c:[
{v: 'Work', p: {'style': 'border: 7px solid orange;'}}, {v: 11}, {v: 11}]}
How should I implement the style in data? Should I change my description?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.