I am trying to using VegaLite for a simple line plot. However, when I try and have the x-axis sort how the dataframe is sorted vs the default sort done Vegalite the line plot goes haywire. See below code and example can someone help with this problem.
Org Plot and Code, notice the x-axis is note sorted in date order.
How did I found out?
The documentaion Sorting | Vega-Lite isnβt so helpfull in this case.
I donβt know if it is visible in a notebook (like in your screenshots) but when the VegaLite output is opened from a plain julia REPL just in a browser you can see ββ¦β on top right:
Thanks @oheil you are correct it is looking for an array, so when I provided an empty one it goes to the sort provided in the dataframe. I have the code and result below to demonstrate the correct results. Also, thanks for showing me how to troubleshoot in the future.