0
votes

I need to make a dashboard with D3 DC and crossfilter.

The data coming from the web service is almost 1 million records.

However, crossfilter's thrown error "Uncaught RangeError: Maximum call stack size exceeded".

What could cause crossfilter to crash in this way?

1
What is wrong with the question? - Mustafa Alqanbar
How would anyone be able to answer this question? Please, take the tour, learn How to Ask and how to provide a minimal reproducible example. - altocumulus
Can you give us an example code - HamzaNig
Can D3 handle large sets of data? - Mustafa Alqanbar
Yeh it could but if it is a big dataset your browser could not take care but i think the problem is not on handle cuz it give you a error maximum please give an example code to see if there a problem in your code - HamzaNig

1 Answers

0
votes

The most likely cause is that you have data which is not naturally ordered: i.e. you've got NaNs in your data.

https://github.com/crossfilter/crossfilter/wiki/Crossfilter-Gotchas#natural-ordering-of-dimension-and-group-values

The problem is that NaN < x is false for all numbers x, and NaN > x is also always false. So if your sorting routine does not explicitly check for invalid input, it can run forever. And if that sorting routine is recursive, it can crash.

For reasons of efficiency, crossfilter does not check its input. Maybe validation could be added without hurting efficiency?

https://github.com/crossfilter/crossfilter/issues/69