Skip to content

Instantly share code, notes, and snippets.

@xuexue
Created April 8, 2013 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xuexue/5337253 to your computer and use it in GitHub Desktop.
Save xuexue/5337253 to your computer and use it in GitHub Desktop.
var data= { fruits: ['apple', 'banana', 'orange'], values: [100, 120, 85] };
gg.graph(data)
.layer(gg.layer.bar().map({'x':'fruits', 'y':'values'}))
.opts({'title':'Bar Chart with Polychart.js V1', 'dom':'#chart_bar_old', 'width':400, 'height':200})
.render();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment