Home forums Report Bugs Bubble Chart

This topic contains 1 reply, has 2 voices, and was last updated by  Bivek Singh 1 month, 2 weeks ago.

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

    mahi2000
    Member

    In the bubble chart, both bubble, and x-axis data are cropped. Refer Screenshot.

    #14272

    Bivek Singh
    Moderator

    @mahi2000,

    It happens because bubbles require some space to represent itself and axisX actually starts from the value of first dataPoint and ends at value of last dataPoint. If you don’t want to clip the bubbles, you can change minimum and maximum values of axisX. This new changed value depends upon the size of first and last bubble size.

    var min = chart.axisX[0].get("minimum");
    var max = chart.axisX[0].get("maximum");
    chart.axisX[0].set("minimum", min - 1);
    chart.axisX[0].set("maximum", max + 1);

    You can check with subtracting and adding different values instead of 1 to meet your requirement.

    ——
    Bivek Singh

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

You must be logged in to reply to this topic.