@pjackson28 should `$legendGraphic` and `$legend` just be appended in a single call here?