Home forums Using CanvasJS Using formatDate inside Custom Formatter

This topic contains 1 reply, has 2 voices, and was last updated by  Suyash Singh 2 months, 2 weeks ago.

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

    Dear Team,
    Please find the given below code. Please let me know why it’s not generating the graph after passing the correct value.

    http://jsfiddle.net/QwZuf/566/

    Thanking you.

    Regards,
    Ashish Potdar.

    #14317

    Suyash Singh
    Moderator

    Ashish Potdar,

    The dataPoints you pass to the chart must be an array of objects and not a string.

    You can use timestamp values for X Axis as it would be easier to convert them to valid JSON before parsing and passing them to the chart. Please refer this jsfiddle.

    For further reference you can go through these links:
    1. Date Time Axis.
    2. MDN’s Date reference
    3. W3Schools Date reference


    Suyash
    Team CanvasJS

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

You must be logged in to reply to this topic.