jQWidgets Forums

jQuery UI Widgets Forums Chart date line chart

This topic contains 3 replies, has 2 voices, and was last updated by  ivailo 9 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • date line chart #79079
    date line chart #79098

    ivailo
    Participant

    Hi Rajesh,

    You can calculate the values for today and seven days ago this way:

    var today = new Date();    
    var sevenDaysAgo = new Date();
    sevenDaysAgo.setDate(sevenDaysAgo.getDate() - 7);

    Then you can use these values in your chart initialization.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    date line chart #79181

    Rajesh
    Participant

    can you provide any example if possible i used same but not work

    date line chart #79184

    ivailo
    Participant

    Hi Rajesh,

    Here is the example.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.