height - Sets the Chart Height - 0 | JSFiddle Sample Code
height - Sets the Chart Height - 0 | JSFiddle Sample Code
by santhosh lanka
HTML
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
<div id="chartContainer">
</div>
<div style="margin-top:16px;color:dimgrey;font-size:9px;font-family: Verdana, Arial, Helvetica, sans-serif;text-decoration:none;">Source: <a href="https://canvasjs.com/docs/charts/chart-options/height/" target="_blank" title="height - Sets the Chart Height ">https://canvasjs.com/docs/charts/chart-options/height/</a></div>
JavaScript
window.onload = function () {
var chart = new CanvasJS.Chart("chartContainer", {
height:260,
data: [
{
dataPoints: [
{ x: 10, y: 50 },
{ x: 20, y: 40},
{ x: 30, y: 30 },
{ x: 40, y: 80 },
{ x: 50, y: 20 },
{ x: 60, y: 5 },
{ x: 70, y: 60 },
{ x: 80, y: 75 },
{ x: 90, y: 35}
]
}
]
});
chart.render();
}