Changed downsampling to Largest-Triangle-Three-Buckets algorithm, auto-downsample based on graph size.
Fixed graph display when downsampling is turned off
Fixed hide legend button, set legend background color
Show graph data popup
Fixed metric autocomplete menu on tabs after the first one
Removed stray downsample call