* graph: fix tooltip unit when legend isn't shown, #10311 * fix broken tests (updateLegendValues() function)