Skip to content

Instantly share code, notes, and snippets.

@katogiso
Created August 25, 2016 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katogiso/7139550a544e015d76450cd62e70ec3e to your computer and use it in GitHub Desktop.
Save katogiso/7139550a544e015d76450cd62e70ec3e to your computer and use it in GitHub Desktop.
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.2.1/Chart.min.js"></script>
</head>
<body>
<canvas id="myChart" width="400" height="400"></canvas>
</body>
<script>
var ctx = document.getElementById("myChart").getContext("2d");
var myChart = new Chart(ctx, {
type: 'line',
data: {
labels: [ "Day1", "Day2", "Day3" ],
datasets: [
{
label: "Sample Line Chart",
data: [ 27, 33, 49 ]
}
]
},
options: {
responsive: false
}
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment