plotly / react-pivottable

React-based drag'n'drop pivot table with Plotly.js charts
https://react-pivottable.js.org/
MIT License
1k stars 259 forks source link

Filter Box not handling numeric in react-pivottable #93

Open aboulang opened 4 years ago

aboulang commented 4 years ago

Using

foo bar 2 1000 3 314159 5 200 1 500 20 0

pasted into the paste target at https://react-pivottable.js.org/ treats the number as strings, so a filter like >20 does not work.

I encountered this in my dash app and isolated it to react-pivotable using the demo https://react-pivottable.js.org. The functionality seems to work in pivottable.js.

image

image

Best regards, Albert Boulanger

nicolaskruchten commented 4 years ago

If this works in PivotTable.js and not here, then I agree it's a bug, and I'd happily accept a PR that fixes it :)