2 thoughts on “Is it possible to make charts a fixed height?

  1. To get a fixed height and variable width chart…

    1. remove width or height attributes from the canvas element.
    2. set the desired css height on the canvas element’s parent html element.
    3. set chart options to include maintainAspectRatio: false,

    Here is a demo:
    https://codepen.io/beau/pen/rvJRzb/

Comments are closed.