xxxxxxxxxx
<html>
<head>
<script>
window.onload = function () {
var chart = new CanvasJS.Chart("chartContainer", {
animationEnabled: true,
title:{
text:"Fossils found by Era"
},
axisX:{
interval: 0.3584
},
axisY2:{
interlacedColor: "rgba(1,77,101,.2)",
gridColor: "rgba(1,77,101,.1)",
title: "Number of fossils"
},
data: [{
type: "bar",
name: "companies",
axisYType: "secondary",
color: "#018b92",
dataPoints: [
{ y: 2, label: "Carboniferous" },
{ y: 7, label: "Cretaceous" },
{ y: 1, label: "Early Creataceous" },
{ y: 1, label: "Eocene" },
{ y: 20, label: "Jurassic" },
{ y: 4, label: "Late Creataceous" },
{ y: 1, label: "Late Jurassic" },
{ y: 2, label: "Miocene" },
{ y: 1, label: "Neogene" },
{ y: 25, label: "Permian" },
{ y: 10, label: "Quaternary" },
{ y: 3, label: "Recent" },
{ y: 7, label: "Silurian" },
{ y: 6, label: "Triassic" },
]
}]
});
chart.render();
}
</script>
</head>
<body>
<div id="chartContainer" style="height: 300px; width: 100%;"></div>
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
</body>
</html>
https://canvasjs.com/assets/script/canvasjs.min.js