3 javascript libraries in 5 minutes and 45 secondes
fernan_s
12.8K views
Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
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.
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content
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>
Enter to Rename, Shift+Enter to Preview
1
var ctx = document.getElementById("myChart").getContext('2d');
Enter to Rename, Shift+Enter to Preview