Home forums Report Bugs axisX lalbelWarp with single dataPoint having label result in error

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

    When there is only one dataPoint in series with label, CanavasJS has rendering issues (throws exception).
    So here is configuration that
    DOES NOT WORK:
    { axisX: { labelWrap: true }, data: [{ dataPoints: [{ y: 1, label: ‘1’ }] }] }

    { axisX: { labelWrap: false }, data: [{ dataPoints: [{ y: 1, label: ‘1’ }] }] }

    WORK:
    { axisX: { labelWrap: false }, data: [{ dataPoints: [{ y: 1 }] }] }

    { axisX: {}, data: [{ dataPoints: [{ y: 1, label: ‘1’ }] }] }

    { axisX: { labelWrap: false }, data: [{ dataPoints: [{ y: 1, label: ‘1’ },{ y: 1, label: ‘1’ }] }] }

    Paste above JSON objects as second argument for new Chart in any CanvasJS demos to reproduce the error!

    #29806
    #29827

    @globalautomation,

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

    ___________
    Indranil Deo
    Team CanvasJS

    #30254

    [UPDATE]

    @globalautomation
    ,

    We have just released v3.0 Beta-1 with this fix. Please refer to the release blog for more information. Do download the latest version from download page & let us know your feedback.

    ___________
    Indranil Deo
    Team CanvasJS

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

You must be logged in to reply to this topic.