fix (graph.graph component.legend) uses data state when component update()/redraw
style (component.legend) formatting and caching color var
refactor (examples.component-legend) needs datacollection to work