Added data attributes that allow to easily select legend elements and labels through jQuery