Home forums Report Bugs Crowded display

This topic contains 3 replies, has 2 voices, and was last updated by  Sanjoy 7 months, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18348

    intijk
    Member

    I rendered the chart without data at begin.

    Then I set up the options and render again, the final look of the graph is like

    Screenshot from 2017 12 20 16 20 48

    Did I made something wrong on that?

    #18354

    Sanjoy
    Participant

    @intijk

    It seems like you have set maximum and interval properties of axisX. Removing them should work fine. If this doesn’t suit your requirements, can you please create a jsfiddle reproducing the issue you are facing so that we can understand it better and help you out.


    Sanjoy Debnath
    Team CanvasJS

    #18637

    intijk
    Member

    Hi @sanjoy

    I found the issue.

    When I provide data like :
    [
    {
    “x”: 1,
    “y”: 1.0
    },
    {
    “x”: 2,
    “y”: 2.0
    }
    ]

    The auto scale would work perfectly, but when I use “x” value as string like:
    [
    {
    “x”: “1”,
    “y”: 1.0
    },
    {
    “x”: “2”,
    “y”: 2.0
    }
    ]

    It will still plot the point without issue, but the scale would have be wrong and crowd, I hope you find this bug well with my description.

    #18638

    Sanjoy
    Participant

    @intijk,

    X-values can either be numeric or date-time/time-stamp, but not string. Please take a look at the page for more information.


    Sanjoy Debnath,
    Team CanvasJS

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

You must be logged in to reply to this topic.