i want to create a funnel chart and i find a vega spec with sorted data it look good - Editor link
but my issue is that when i used unsorted data it not look like funnel
is there any way in vegalite to make it in proper order as funnel look means by any sorting of vegalite it is possible?
Sorting is available in
vega-lite, The editor config which you attached through link is already containing asortingconfig in y-axisencoding. You can read more about the sorting config in vega-lite documentationNow to solve your issue, I have interchanged some
Countfield values so it becomes unsorted data and added thesortingconfig with descendingorder.You can refer the link or the code below:
Let me know if this works.