When looking at a graph with a lot of metrics (e.g. menu_users_submenu_mem, which on my system has 20+ lines), it’s hard to figure out which metric is which, mainly because visually distinguishing between similar colors gets progressively harder when there’s more than 7.
If the legend could be sorted to match the order of the metrics in the graph, that would help a lot.
Ideally, if the legend was to the right of the graph, the lines could roughly line up with the corresponding entry in the legend, at least until there’s too many entries in the legend to fit. At that point, a ‘top-ten’ (or ‘top-N’, or ‘bottom-N’) function might be needed.