Skip to Content

exemple: Extended Encoding Format (chd=e)

  1. >>> from pygooglechart import SimpleLineChart
  2. >>> chart = SimpleLineChart(200,200, y_range=(0, 10))
  3. >>> chart.add_data([1.0, 2.0, 6.0, 7.0, 5.0, 1.0])
  4. >>> chart.add_data([2.0, 5.0, 5.0, 2.0, 1.0, 2.0])
  5. >>> chart.get_url()
  6. 'http://chart.apis.google.com/chart?cht=lc&chs=200x200&chd=e:GaMzmZszgAGa,MzgAgAMzGaMz'