Home › forums › Using CanvasJS › Height of chart
This topic contains 1 reply, has 2 voices, and was last updated by Sunil Urs 4 years ago.
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?
It is not possible to get this behavior as of now. You can instead calculate and assign the height yourself based on the number of dataPoints present.
You must be logged in to reply to this topic.