Home forums Chart Support Chart is suddenly starting y axis in 1969, epoch time.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #29460

    I have verified that all of my data only exists in 2020.

    I’ve been using this chart for months, and suddenly the Y-Axis goes back to the beginning of epoch time.

    Any ideas as to why?

    function buildChart() {
    chart = new CanvasJS.Chart(“chartContainer”, {
    animationEnabled: true,
    theme: “light2”,
    title: {
    text: “Overall Covid Count”
    },
    axisY: {
    title: “Cases”,
    titleFontSize: 24
    },
    data: [{
    type: “line”,
    yValueFormatString: “#,### positive”,
    dataPoints: dataPoints
    }]
    });
    chart.render();
    }

    • This topic was modified 3 months, 4 weeks ago by raketemensch.
    #29469

    @raketemensch,

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

    From what we have observed, sometimes things get delayed mostly when we are not able to reproduce the issue or not able to understand the exact requirements or the solution that we provide may not work properly due to the variation in chart-options being used by you and us.

    Having a JSFiddle helps us in figuring out the issue and many a time we can just edit your code on JSFiddle to fix the issue right away.

    ___________
    Indranil Deo
    Team CanvasJS

    #29480

    Sure, that’s an awesome tool. Here we go:

    https://jsfiddle.net/o0y1es6k/

    #29490

    @raketemensch,

    Filtering down null data from the JSON should work fine in your case. Please take a look at this updated JSFiddle.

    ___________
    Indranil Deo
    Team CanvasJS

    #29494

    Weird, I was verifying that the year was 2020, I would’ve expected that to catch the nulls.

    Either way, thanks for your help! Greatly appreciated.

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

You must be logged in to reply to this topic.