Home Forums Chart Support Height of chart

Height of chart

Viewing 2 posts - 1 through 2 (of 2 total)
  • #8668

    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?

    #8674

    npbonde,

    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.


    Sunil Urs

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.