added legend panel option. Only responds to bubble chart at the moment