Trying to figure out if it is possible to reference python data as a source for creating a chart.
Asked
Active
Viewed 133 times
1 Answers
1
Here is a working example:
data = [
{'date': '2016/01/01', 'count': 10},
{'date': '2016/01/02', 'count': 15},
{'date': '2016/01/03', 'count': 12}
]
%chart pie -d data
As mentioned in the following post, check the browser console for additional detail regarding errors:
%%chart line graph in Datalab based on Bigquery data not rendering

Community
- 1
- 1

Anthonios Partheniou
- 1,699
- 1
- 15
- 25
-
One comment to add, if you have a print statement after the "%chart ..." line, then the chart will not display. – CasualT Apr 19 '16 at 00:02