Home Forums Chart Support Canvas Data

Canvas Data

Viewing 2 posts - 1 through 2 (of 2 total)
  • #26022

    Hello CanvasJs team,


    In this snippet I have my data like
    “y”: 42793.8129558912,
    “value”: null,
    “label”: 0,
    “nodeName”: “AVL_INDEP_TIME”,
    “xUnitName”: “Unknown”,
    “count”: 1,
    which does not have x key in it. But after render it automatically inserts x key in my data.I don’t want x key. How can I avoid this.
    Please check console.log for this.



    When just labels are passed without x-values, x-values are automatically added in successive order as 0,1,2,3,4… You can overcome it by passing the values to the x property instead of label.

    Manoj Mohan
    Team CanvasJS

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

You must be logged in to reply to this topic.