Skip to content

Instantly share code, notes, and snippets.

@nasum
Created September 17, 2013 04:11
Show Gist options
  • Save nasum/6589996 to your computer and use it in GitHub Desktop.
Save nasum/6589996 to your computer and use it in GitHub Desktop.
レーダーチャート
レーダーチャートを表示するライブラリのサンプル
http://www.html5.jp/library/graph_radar.html
* {
margin: 0;
padding: 0;
border: 0;
}
body {
background: #fdf;
font: 30px sans-serif;
}
<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>
$(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