Sort in the visualization

User: "kpat"
New Altair Community Member
Updated by Jocelyn
Does anyone knows way to sort graph in the visualization tab.
I know you can add sort to individual element of the graph but if the data in non-numerical and you want to display graph in certain order, is there any way I can do it?

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Caperez"
    Altair Community Member
    Accepted Answer
    Hi @kpat,

    The graphs in RM plots the data taking into account the index order. A possible approach is creating a new sortable Attribute, assigning the values in the order that you need and finally using the sort Operator to reorder the exampleset as you like. 

    please find attached a simple example with the Iris dataset.

    Best

    Cesar