add a hierarchical legend example