Highcharts gives error Cannot read properties of undefined (reading 'time')

Discussão em 'Angular' iniciado por themadhatter, Março 23, 2025.

  1. themadhatter

    themadhatter Guest

    I am getting the error.


    TypeError: Cannot read properties of undefined (reading 'time') at J. (highcharts.js:8:201256) at C (highcharts.js:8:2670) at J.init (highcharts.js:8:200998) at J.getArgs (highcharts.js:8:200703) at new J (highcharts.js:8:200634) at Object.chart (highcharts.js:8:199843) at HighchartsChartComponent.updateOrCreateChart (highcharts-angular.mjs:36:74)
    ​

    When using highcharts I am getting the error as shown above but I have not used time anywhere. How to remove this error? This is done via angular. I am using MEAN STACK

    public highcharts = Highcharts;
    public chartOptions!: Options
    ngOnInit{
    this.chartOptions = {
    chart: {
    type: 'line',
    },
    title: {
    text: 'Top 5 User Login Activity Chart',
    },

    xAxis: {
    categories: new_data.email,
    title: {
    text: 'Users',
    },
    },
    yAxis: {
    title: {
    text: 'No of User Logins',
    },
    },
    series: [
    {
    type: 'line',
    name: 'No of time Loggedin',
    data: new_data.login,
    },
    ],

    };
    }

    Continue reading...

Compartilhe esta Página