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

Uncaught TypeError: Cannot read property 'numberFormat' of undefined #1107

Open JFerreira3 opened 5 years ago

JFerreira3 commented 5 years ago

I'm trying to change the location of PivotUi to "pt" but an error occurs in pivot.pt.coffee:11

ERROR: Uncaught TypeError: Cannot read property 'numberFormat' of undefined

My code: if (data) {

    var renderers = $.extend($.pivotUtilities.renderers, $.pivotUtilities.export_renderers);

    this.result = data.body;

    targetElement.pivotUI(data.body, {
      renderers: renderers,
    }, false, "pt");

head:

nicolaskruchten commented 5 years ago

Yes, you have to load pivot.min.js before the local file :)

JFerreira3 commented 5 years ago

Thank you!