Forum Discussion
mojganmeibodi19
2 years agoRegular Visitor
sorting legend based on two criteria
I have a simple dataset that contains each supplier's sale in each year. I made a bar chart with years in the x axis and suppliers' sale on the y axis and used supplier company as legend. I wa...
lbendlin
2 years agoSuper User
Not possible in the standard visual. May not even be possible in Deneb unless dm-p has an idea.
dm-p
2 years agoSuper User
Vega and Vega-Lite don't have sorting capabilities for more than one field using standard language constructs, but you can use transforms and window functions to create fields that dictate a sort order that you can then sort by.