Get legendsGraphic  the first time.