GIBS-582 Added sample usage for generating legends