chart.js set height variable code example Example: chartJs height var ctx = document.getElementById("myChart"); ctx.height = 500;