Skip to content

Instantly share code, notes, and snippets.

@andregardi
Created September 28, 2018 19:57
Show Gist options
  • Save andregardi/3e01faca1e7346aea592c78adaae366d to your computer and use it in GitHub Desktop.
Save andregardi/3e01faca1e7346aea592c78adaae366d to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Exploring Chart.js</title>
</head>
<style>
.container {
width: 50%;
height: 50%;
}
</style>
<body>
<button id="renderBtn">
Render
</button>
<div class="container">
<canvas id="myChart"></canvas>
</div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="./myChart.js"></script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment