Created
September 17, 2013 04:11
-
-
Save nasum/6589996 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
レーダーチャートを表示するライブラリのサンプル | |
http://www.html5.jp/library/graph_radar.html |
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
* { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
} | |
body { | |
background: #fdf; | |
font: 30px sans-serif; | |
} |
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 type="text/javascript" src="http://jsrun.it/assets/2/O/L/8/2OL8G"></script> | |
<div> | |
<canvas width="400" height="300" id="rader"></canvas> | |
</div> |
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
$(document).ready(function(){ | |
var chart = new html5jp.graph.radar("rader"); | |
var items = [ | |
["先週", 2, 3, 1, 2, 3], | |
["今週", 3, 4, 3, 4, 5] | |
]; | |
var params = { | |
aCap: ["国語", "数学", "英語", "理科", "社会"] | |
}; | |
chart.draw(items, params); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment