Home Forums Chart Support axisX with interval = browser crashes

axisX with interval = browser crashes

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

    I’m trying to set a splineArea chart to show 1 datapoint per day on axisX but the browser keeps crashing time after time and nothing is displayed.. I create a jsfiddle https://jsfiddle.net/0pq1ro7z/

    What am I missing please?



    As you are passing x-values as time-stamp, it’s not considered as date-time but number. Setting interval to 1 will make chart render axis label at an interval of 1, i.e. for every 1 milliseconds and not at every 1 day. Setting xValueType: "dateTime" will convert axis into date-time axis & should work fine in this case. Also, I would suggest you to use valueFormatString to define the format of the axis label instead of using labelFormatter, unless your requirement is to completely format the axis label. Please take a look at this updated JSFiddle for the working code.
    Spline Aarea Chart Date-time Axis

    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.