Last active
May 10, 2020 22:00
-
-
Save AndrewBuntsev/54466a987c541e32002fa888d2cd315a to your computer and use it in GitHub Desktop.
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.2.2/d3.min.js"></script> | |
<script src="https://unpkg.com/c3@0.6.8/c3.js"></script> | |
<link href="https://unpkg.com/c3@0.6.8/c3.css" rel="stylesheet"> | |
<div id="chart"></div> | |
<script> | |
var chart = c3.generate({ | |
bindto: '#chart', | |
data: { | |
columns: [ | |
['data1', 30, 200, 100, 400, 250], | |
['data2', 50, 20, 10, 40, 25], | |
['data3', 150, 10, 40, 40, 15], | |
['data4', 80, 40, 70, 20, 45], | |
['data5', 30, 60, 35, 90, 40] | |
]} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment