Home forums Using CanvasJS Height of chart

This topic contains 1 reply, has 2 voices, and was last updated by  Sunil Urs 1 year, 7 months ago.

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

    npbonde
    Member

    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

    Sunil Urs
    Keymaster

    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.