2808 explained code solutions for 75 technologies


chart.jsSet height of a chart


new Chart('chart', {
  // ...
  options: { maintainAspectRatio: false }
});ctrl + c
'chart'

id of canvas element with height attribute (<canvas id="chart" height="100"></canvas>)

maintainAspectRatio

switch off (or on) automatic aspect ratio