Ported LegendSample to Storyboard