syntax to apply height in chart js bar chart code example Example: chartJs height var ctx = document.getElementById("myChart"); ctx.height = 500;