We have a similar use case where the values on the X-axis are commit sha-s (so pretty random), but we want to order them by date - i.e. oldest commits are to the left, newest - to the right. We do have the date as a field in the document, but there's no way to specify the x-axis sort to use that field. Similarly to Julio, we workaround it by adding a computed field that is { $concat: [ { $toString: "$runId" }, ": ", "$commitSha" ] }, but that's less than ideal.
We have a similar use case where the values on the X-axis are commit sha-s (so pretty random), but we want to order them by date - i.e. oldest commits are to the left, newest - to the right. We do have the date as a field in the document, but there's no way to specify the x-axis sort to use that field. Similarly to Julio, we workaround it by adding a computed field that is { $concat: [ { $toString: "$runId" }, ": ", "$commitSha" ] }, but that's less than ideal.