Add onclick option

I added the option when you click on a data point. I haven't found a way to test it effectively :(