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.33k stars 1.07k forks source link

Running pivottable.js on a DataTables table #1354

Open LuckyDucky87 opened 5 months ago

LuckyDucky87 commented 5 months ago

I'm using DataTables with an ajax request to display data in a table on a website. I want to create a simple pivot table to count some of the data. The simple HTML example works when I copy/paste the DataTables generated data as a static table, but it will not work if I try to run pivottables script at the same time as the DataTables dynamic loaded data script.

Any fix for this or suggestions? I tried deferring the pivot table script or delaying until after domcontentloaded, but it does not work.