I have a DIV which I use to create a bar chart.
I don’t want to define the DIV height or the chart height explicitly but would instead like ChartJS to calculate a height based on a fixed height of each of the bars with a fixed spacing between the bars. So if there are few bars (datapoints) the bar chart is not so high where as with many bart (datapoints) the bar chart grows in height.
Is this possible?