Add a listener to the chart