basic metricSelection support; very buggy
show legend again
update data on selection change
added TODO notes