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

pivotUI() is not working #1101

Open Ypenurakar02 opened 5 years ago

Ypenurakar02 commented 5 years ago

function (slice, payload) {

$(#${slice.containerId}).pivotUI( $.pivotUtilities.tipsData, { rows: ["sex", "smoker"], cols: ["day", "time"], vals: ["tip", "total_bill"], aggregatorName: "Sum over Sum", rendererName: "Heatmap" });

} on using pivotUI() it gives following error:

PivotData</PivotData.forEachRecord@webpack-internal:///3764:726:17 $.fn.pivotUI@webpack-internal:///3764:1250:9 module.exports@webpack-internal:///2944:31:53 renderViz@webpack-internal:///3447:839:13 componentDidUpdate@webpack-internal:///3447:389:11 measureLifeCyclePerf@webpack-internal:///1043:73:12 _performComponentUpdate/<@webpack-internal:///1043:726:11 notifyAll@webpack-internal:///581:74:9 close@webpack-internal:///1059:78:5 closeAll@webpack-internal:///235:207:11 perform@webpack-internal:///235:154:11 perform@webpack-internal:///235:141:13 perform@webpack-internal:///96:87:12 flushBatchedUpdates@webpack-internal:///96:170:7 closeAll@webpack-internal:///235:207:11 perform@webpack-internal:///235:154:11 batchedUpdates@webpack-internal:///1055:60:14 enqueueUpdate@webpack-internal:///96:198:5 enqueueUpdate@webpack-internal:///459:22:3 enqueueSetState@webpack-internal:///459:216:5 ReactComponent.prototype.setState@webpack-internal:///436:62:3 onStateChange@webpack-internal:///1669:220:11 dispatch@webpack-internal:///1662:177:7 createThunkMiddleware/</</<@webpack-internal:///1836:12:16 dispatch@webpack-internal:///1824:37:18 runQuery/</queryPromise<@webpack-internal:///1567:207:14 run@webpack-internal:///853:75:22 notify/<@webpack-internal:///853:92:30 flush@webpack-internal:///299:18:9

nicolaskruchten commented 5 years ago

It looks like you're trying to use this with React... you might have better luck with the official React port of this library: https://react-pivottable.js.org/

crapthings commented 5 years ago

@nicolaskruchten

but its not support locale currently

i'm trying to use this to replace react one, but it doesn't work.