JSFiddle - React, Tailwind, and code Playground
by katsukino
HTML
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">
window.onload = function () {
var chart = new CanvasJS.Chart("chartContainer",
{
title:
{
text: "Setting Dash Type for Grid Lines"
},
axisY: {
gridDashType: "dash"
},
data: [
{
type: "line",
dataPoints: [
{ x: 10, y: 4 },
{ x: 20, y: 3 },
{ x: 30, y: 6 },
{ x: 40, y: 11 },
{ x: 50, y: 21 },
{ x: 60, y: 9 },
{ x: 70, y: 3 },
{ x: 80, y: 4 },
{ x: 90, y: 7 }
]
}
]
});
chart.render();
}
</script>
<script type="text/javascript" src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
</head>
<body>
<div id="chartContainer" style="height: 300px; width: 100%;"></div>
</body>
</html>