CanvasJS
Not displaying on Chromium Browser on Raspberry Pi
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/canvasjs/1.7.0/canvasjs.js"></script>
<div class="row">
<div class="col-lg-12">
<div id="chartContainer" style="height: 350px; width: 100%;"></div>
</div>
</div>
JavaScript
var chart = new CanvasJS.Chart("chartContainer", {
title: {
text: "Oven"
},
axisX:{
title: "Minutes",
gridThickness: 2
},
axisY:{
title: "Temperature"
},
data: [{
type: "line",
showInLegend: true,
markerType: "triangle",
legendText: "Target",
dataPoints: [
{ x: 0, y: 30 },
{ x: 30, y: 200 },
{ x: 90, y: 200},
{ x: 120, y: 30}
]
},
{
type: "line",
showInLegend: true,
markerType: "triangle",
legendMarkerType: "triangle",
legendText: "Actual",
dataPoints: []
}]
});