Skip to content

Instantly share code, notes, and snippets.

Created January 18, 2012 19:29
Show Gist options
  • Save anonymous/1635056 to your computer and use it in GitHub Desktop.
Save anonymous/1635056 to your computer and use it in GitHub Desktop.
<div id="myChart" style="width:400px;height:400px;"></div>
<script type="text/javascript">
YUI.use('charts', function(Y) {
var myData = [
{category: 'Monday', values: 2},
{category: 'Tuesday', values: 5},
{category: 'Wednesday', values: 7},
{category: 'Thursday', values: 6},
{category: 'Friday', values: 1}
];
var chart = new Y.Chart({dataProvider:myData, render:"#myChart"});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment