Created
September 3, 2015 08:28
-
-
Save itsMagondu/82e2450210fc8a54573f to your computer and use it in GitHub Desktop.
This is a test chart using c3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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