I have a problem with Teechart for javascript. I want to use Teechart in our homepage to show a line graph with ~500.000 values.
My code works up to 100.000 values and after this a get an error "Maximum call stack size exceeded"
teechart.js:72 Uncaught RangeError: Maximum call stack size exceeded
at C (teechart.js:72)
at Tee.Line.Tee.Series.minYValue (teechart.js:130)
at teechart.js:76
at I.eachAxis (teechart.js:134)
at I.minYValue (teechart.js:76)
at x.checkMinMax (teechart.js:39)
at x.adjustRect (teechart.js:113)
at Q.each (teechart.js:79)
at Tee.Chart.draw (teechart.js:150)
at k (teechart-extras.js:24)
I'm a beginner in Javascript this is my first test but i can't find the problem. I'm using Teechart VCL and have no problem to show so many values.
Can TeeChart for Javascript handle so many values ?
function draw() {
Chart1=new Tee.Chart("canvas");
Series=new Tee.Line(Chart1);
Chart1.addSeries(Series);
Series.addRandom(200000);
Chart1.axes.left.title.text="[hPa]";
Chart1.axes.bottom.title.text="Date/Time";
Chart1.axes.bottom.labels.dateFormat = "dd.mm.yy hh:mm";
Chart1.series.items[0].marks.drawEvery=120;
Chart1.title.visible = false;
Chart1.legend.visible = false;
changeTheme(Chart1, "minimal");
Chart1.draw();
}