nicolaskruchten / pivottable

Open-source Javascript Pivot Table (aka Pivot Grid, Pivot Chart, Cross-Tab) implementation with drag'n'drop.
https://pivottable.js.org/
MIT License
4.36k stars 1.08k forks source link

How to catch aggregator errors #952

Open rkralston opened 6 years ago

rkralston commented 6 years ago

I am implementing pivottable.js with a large data set. The client likes the heatmap aggregator. However, this aggregator gets a call stack error when adding columns with large sets of distinct rows.

How can I catch and handle this error?

https://stackoverflow.com/questions/50913434/how-to-catch-aggregator-errors-in-pivottable-js

nicolaskruchten commented 6 years ago

You'll need to give me a reproducible example... it's not at all clear what the error is or in what circumstances it appears.

rkralston commented 6 years ago

Since I can't catch the error, I'm having a little trouble with that part.

Essentially, the heatmap aggregator work fine with < 700 rows. With more than 700 rows, it emits a call stack error.

We're not doing anything fancy, just testing the component. We are passing it JSON records and seeing what we can do with it.

nicolaskruchten commented 6 years ago

Can you provide a stack trace from your console?