Simple example using D3 to create a bar chart of some randomly generated data
xxxxxxxxxx
<html lang="en">
<head>
<meta charset="UTF-8">
<title>D3 example</title>
<script src="//d3js.org/d3.v4.min.js" charset="utf-8"></script>
<style>
.bar {
fill: red;
}
</style>
</head>
<body>
<input type="button" onclick="update()" value="Update"/>
<div id="vis">
</div>
<script src="script.js"></script>
</body>
</html>
https://d3js.org/d3.v4.min.js