-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort heatmap columns numerically #80
Comments
Hey, thanks for the feedback! Normally, I'd accept a diff like this very quickly. I'm currently working on display-sorting with #79 which completely overhauls sorting across all aggregators, and implements things like: string, by-value, numeric, date-parsing, etc. This also standardizes the sorting (Right now, sorting is slightly different on different aggregators, which only adds to the confusion) You're welcome to check it out and see if it suits your needs (If not, let me know!) It's not quite ready to merge yet, I want to add the ability to sort rows and cols separately, as well as add documentation. |
I've checked out the sorting branch. Heatmaps for my use case (response latencies) work out of the box for me with the "smart" sorting method. Thanks heaps for the awesome work! The code is a bit hard for me to understand, eg. what does by-value sorting actually mean? Make sure you include that in the documentation! |
Glad it works for you! I'll definitely include definitions in the docs.. I haven't landed on the exact naming yet, so it might change once I merge. |
First off, great work with the heatmaps feature!
I've been using heatmaps for numerical data, in particular nginx response times. I usually convert them it integers in rare by matching eg
0.053
(seconds) with(\d+)\.(\d{3})
and then using the expression{sumi {multi {1} 1000} {3}}
to convert to milliseconds.I've found that the table and heatmap sort the column names as strings, and not numerically if possible. The results in meaningless heatmaps:
I made a small change to a local checkout of rare to basically test if the column headers could be converted to integers and then sort them numerically if they can:
The same heatmap is now much more meaningful:
Would you be interested in incorporating the above diff into rare?
The text was updated successfully, but these errors were encountered: