Flot graphs now working with legend