fix (graph.graph component.legend) uses data state when component update()/redraws

Checks the data source Id to see if the data is inactive before updating or redrawing components when new data is added to the graph.