Replies: 1 comment
-
You need a column sort e.g. viewer.restore({
sort: [["tenor_sort", "col desc"], ...],
aggregate: {"tenor_sort": "dominant" ...},
expressions: [`//tenor_sort\norder("Tenor", '6m', '18m', .... )`, ...],
....
}) ... or as an expression in the UI (note in both examples
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Support Question
How do I specify custom sorting on split-by/group-by entries in the perspective-viewer-datagrid?
Say I have the following
Where I'd like to sort the
18M
,1Y
,2Y
etc. columns differently than the default string-sorting method built-in (one thats aware of the spans they represent). I tried looking for an example of this but couldn't find anything.I'm interacting with this via Panel, which uses the Perspective Python-API under the hood.
Beta Was this translation helpful? Give feedback.
All reactions