Home Forums StockChart Support Showing date in milliseconds for x-axis even if I pass date in correct format

Showing date in milliseconds for x-axis even if I pass date in correct format

Viewing 2 posts - 1 through 2 (of 2 total)
  • #35656

    Hi there,

    I am trying to render scatter graph, its functioning properly when I have datapoints under the response but if I dont have any datapoints i.e. empty datapoints then its showing blank graph with x-axis date in milliseconds.
    Please see below sample json response

    {
    "type": "event-graph",
    "title": "Depression Events Timeline",
    "x-axis-label": "Date",
    "x-axis-min": 1577836800000,
    "x-axis-max": 1631544212365,
    "dataPoints": [
    
    ]
    }

    Also please find both screenshots, with/without datapoints
    1. With datapoint
    Screenshot-from-2021-09-02-20-34-18
    2. Without datapoint
    Screenshot-from-2021-09-02-20-35-15
    Please let me know how we can display date in correct format(not in milliseconds) if we dont have datapoints

    #35672

    @vsingh,

    Can you please create a JSFiddle reproducing the issue you are facing and share it with us along with sample JSON data so that we can look into the code, understand the scenario better and help you out?

    ___________
    Indranil Deo
    Team CanvasJS

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

You must be logged in to reply to this topic.