Clicking on an item in the plot legend should trigger the selection of the corresponding curve.
#1135