Home forums Using CanvasJS problem with chart

This topic contains 3 replies, has 2 voices, and was last updated by  Sunil Urs 2 years, 6 months ago.

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

    Daniel Silva
    Participant

    Hi,

    I can’t find the problem in this chart:
    http://jsfiddle.net/dreamfalcon/qeAG7/1/

    Could you help?

    Thanks,
    Daniel

    #6316

    Sunil Urs
    Keymaster

    dataPoints should be an array. What you are using instead is an object with indexes 0,1,2,etc. Below is how the array should look like.

    "dataPoints": [
            {
                "x": 1399766400000,
                    "y": 97.804
            },
            {
                "x": 1399852800000,
                    "y": 98.387
            }]
    #6318

    Daniel Silva
    Participant

    I had this problem previously and fix on all other charts except this one.
    Thanks

    #6331

    Sunil Urs
    Keymaster

    Welcome

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

You must be logged in to reply to this topic.