How would you make the the serial chart change whenever a different layer is selected; just like the map and legend changes when a layer is selected.