Hi @casreenath
Looks like you currently have it sorting by the Y value?
If you can't get the correct order through some sort of aggregation, then you can use a "Filter Aggregation" to get the X-Axis into the exact order that you want. It's much more configuration, and you have to know all of the X-Axis value that you want, but it does give you that control you are looking for. Here's an example of what setting up the Filter Aggregation might look like
