Home forums Using CanvasJS Issue observed when plotting Y axis values

This topic contains 1 reply, has 2 voices, and was last updated by  Daniel Silva 2 years, 2 months ago.

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

    SwapnilV007
    Participant

    Hi,

    I observed below issues when plotting Y axis values:

    1. Graph is not plotted when y values are entered with leading zero
    e.g. label: “banana”, y: 012.5 —– Graph is not plotted
    But works ok if entered as label: “banana”, y: 12.5
    Here is the sample jsfiddle.

    2. Also I feel the code should take care if some one tries to assign alphabets or special characters in y vaue. Currently it does not plot the graph in such case.

    Please let me know your comments on these 2 issues.

    Thanks,
    Swapnil

    #7208

    Daniel Silva
    Participant

    This is not a problem with canvasjs, but with JavaScript.
    If you write this code:
    var x = 012.5;
    Will give a SyntaxError.

    Br,
    Daniel

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

You must be logged in to reply to this topic.