Fixed legend coloring.
Added clicking the bars to pick a time.