3 javascript libraries in 5 minutes and 45 secondes
fernan_s
12.5K views
Chart.js
What is Chart ?
Chart is a tool that allows you to create up to 8 different chart types.
In this playground, you can see how to easily create a chart in an HTML file with its corresponding implementation in JavaScript.
Chart exemples
For more information follow this link.
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.6.0/Chart.bundle.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="chart.js" defer></script>
</head>
<body>
<canvas id="myChart"></canvas>
</body>
</html>
1
var ctx = document.getElementById("myChart").getContext('2d');