Update graph units display

 * Add unit display in y axis and legend
 * Fix `timeToRange` issue with negative durations
Add `edit` action on graphs