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

pivottable.js Can XML from XLTS be used as data source ? #1313

Open allanspielman opened 1 year ago

allanspielman commented 1 year ago

I am trying to integrate Pivittable.js within a XLTS environment (I m using a proprietary tool and this is the only way I can use the report) The tool uses Oracle sql to generate the XML which is passed to the XLTS. This of course create a table that renders in the browser when run by the Proprietary website.

**(1) Is it possible to use the XML generated as a source to the Pivotable?** $("#output").pivotUI( , { rows: ["Country"], cols: [], renderers: $.extend( $.pivotUtilities.renderers, $.pivotUtilities.plotly_renderers, ) }); **(2) IF not, can I pass JSON? I know how to convert the created table to JSON:** data = JSON.parse(JSON.stringify($("#masterTable").DataTable().rows( { search:'applied' }).data().toArray()));