Reorganized creation of Raphael elements to support association of datapoint elements. Legend now working as well.