Skip to content
Advertisement

Highchart does not render on webpage, Javascript

I have data points in thousands of numbers in my database. So what I want is to display those data points in my webpage Chart using Highcharts.

What I have done so far is that I have fetched the data from the database and parsed them to javascript. but on the next step . I don’t know why my datapoints are not visible in charts.

may be I am doing something wrong. what I want is that I need a 1000 points window. on which 130 points can be drawn in 1 second.

The points are rendering in console log console.log(y) but after the points finished. the console log showing undefined value and keeps counting undefined.

Here is my Code:

JavaScript

numArray is for Y-axis giving the point values.

countArray is for X-axis giving the no. of points

Here is The fiddle in which I replicated the database data as a JS array.

https://jsfiddle.net/abnitchauhan/mj8wa67x/

Advertisement

Answer

You can use this piece of code to achieve it:

JavaScript

Demo:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement