0

Trying to figure out if it is possible to reference python data as a source for creating a chart.

CasualT
  • 4,869
  • 1
  • 31
  • 53

1 Answers1

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