Are you using the Data Source Python 
library<https://developers.google.com/chart/interactive/docs/dev/gviz_api_lib>? 
 
If so, I'm not sure that it supports specifying cell properties (the 
documentation does not mention anything about them).  If I was to hazard a 
guess, I would suggest that the data would need to look something like this:

data.append(((xvar, None, {"style": "border: 7px solid orange;"}), 
float(oadmp[1]), float(oerrcp[1])))

I'm a python noob, so it is quite possible that I made errors in that line, 
but hopefully the intent is clear enough (replace xvar with a list 
containing xvar, the formatted value of xvar (none, since we don't actually 
want to set the formatted value here), and a dictionary of cell properties).

On Thursday, May 1, 2014 10:20:45 PM UTC-4, Hamid Reza Khakpour wrote:
>
> 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.

Reply via email to