Pivottable argument sorters in dash

Is there a way to use the argument sorters in the dash pivottable as in the native one https://github.com/plotly/react-pivottable/ ?

PivotData sorters
object or function {} accessed or called with an attribute name and can return a function which can be used as an argument to array.sort for output purposes. If no function is returned, the default sorting mechanism is a built-in “natural sort” implementation. Useful for sorting attributes like month names, see
http://nicolas.kruchten.com/pivottable/examples/mps_agg.html
http://nicolas.kruchten.com/pivottable/examples/montreal_2014.html

I also tried to change my values to be categorical but the categorical order is not preserved in the pivot table.

Hi @Mathieu ,

Welcome to this forum! That was an early experimental project, please move to this brand new component, maybe it can meet your needs.

1 Like