Skip to content

Instantly share code, notes, and snippets.

@itsMagondu
Created September 3, 2015 08:28
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 itsMagondu/82e2450210fc8a54573f to your computer and use it in GitHub Desktop.
Save itsMagondu/82e2450210fc8a54573f to your computer and use it in GitHub Desktop.
This is a test chart using c3
<head>
<!-- Load c3.css -->
<link href="http://mamase.org/static/css/c3.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="chart"></div>
<!-- Load d3.js and c3.js -->
<script src="http://mamase.org/static/js/d3.js" charset="utf-8"></script>
<script src="http://mamase.org/static/js/c3.js"></script>
<script>
var chart = c3.generate({
bindto: '#chart',
data: {
columns: [
['data1', 30, 200, 100, 400, 150, 250],
['data2', 50, 20, 10, 40, 15, 25]
]
}
});
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment