Home forums Using CanvasJS New dates added in graph via button

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 2 months, 3 weeks ago.

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

    Jelch
    Member

    hi,
    it has been a while since last time. But i need your help again.
    Iam trying to replace the flat numbers on the x axes with specific dates. Everything works fine except the button.
    Probably a typecasting mistake again but i can’t see why it won’t work either with ” date(document.getElementById(“date”).value)” or “object(document.getElementById(“date”).value)”

    I hope you can help me again

    http://jsfiddle.net/QwZuf/475/

    #12544

    Vishwas R
    Keymaster

    Jelch,

    In JavaScript, date object is created using new Date() but you are trying it using date(). Please refer this tutorial for the same. Here is the updated jsfiddle.

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

You must be logged in to reply to this topic.