Skip to content

Instantly share code, notes, and snippets.

@mtk-f
Last active October 31, 2017 10:25
Show Gist options
  • Save mtk-f/10ca941c5520890906802decb46dcf09 to your computer and use it in GitHub Desktop.
Save mtk-f/10ca941c5520890906802decb46dcf09 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>chart.js sample 1 fujiu.jp</title>
</head>
<body>
<canvas id="myChart"></canvas>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.min.js"></script>
<script>
var ctx = document.getElementById("myChart");
var myChart = new Chart(ctx, {
"type":"bar",
"data":{
"labels":["小河内","小沢","青梅","練馬","八王子","府中","世田谷","東京","江戸川臨海","羽田"],
"datasets":[{
"label":"昨日までの観測史上1位の値(mm)",
"data":["71","70","107.5","50","63","58.5","68","88.7","85","82"]
}],
"options":{}
}
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment