Home Forums Chart Support graph height collapses with one point

graph height collapses with one point

Viewing 6 posts - 1 through 6 (of 6 total)
  • #32499

    Under certain conditions, the graph height will collapse when there’s only one point. Seems like the height is smaller by 100. Seems to only occur when axisY2 and axisYType: “secondary” are used. Here’s a fiddle:
    http://jsfiddle.net/4pbrqs0j/2/

    #32501

    Workaround is to add 111 to height if only one point

    #32514

    @jeff,

    Thanks for reporting the use-case. We will fix this in upcoming versions.


    Shashi Ranjan
    Team CanvasJS

    #32677

    This is intermittent. Starting last Thursday, it stopped doing it. Today, it’s back. Seriously! This was observed both my local dev environment and on a web server where the code has not changed. So the new workaround is to never try to display one point! ugh.

    #32688

    [Update]

    We have released chart v3.10.5 with the above fix. Please refer to the release blog for more information. Do download the latest version from our download page and let us know your feedback.


    @jeff
    ,

    In axisX labelAutoFit property is set to true by default, which automatically wraps and/or rotates and/or reduces font size of the label when they are too long and overlaps, finds the best-fit and automatically manages label overlapping. It also takes into consideration values of other properties like labelAngle, labelWrap, labelFontSize, labelMaxWidth, etc., based on which labelAutoFit tries to adjust the labels on the axis and may result in reducing the height of the plot area.

    You can avoid the reduction in height by setting labelAutoFit property to false as shown in this updated JSFiddle.


    Shashi Ranjan
    Team CanvasJS

    #32759

    Deleted.

    • This reply was modified 3 years, 8 months ago by kinokatsu.
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.