nnnick/Chart.js — pull request #137 by sgarbesi (2013-06-06 20:02:35+00:00)
Title: Line Point Hover Implementation, Styling and JavaScript Events

... hover colors for line points. Also changed the constructor so just the element is passed and not the context, otherwise you cannot attach the listener event.

This is something I did over the weekend.

I changed the constructor so that you have to pass the element rather than the context, and the code will automatically obtain the context from the element.

I had to do this otherwise I have no idea (code wise) what I need to bind the listener event to.

Now I knew doing this might go against the grain and won't be accepted, if it's not, then I will just simply make a spin off for myself and others to use, but I wanted to give it a shot to see if it would be accepted.

I also plan to implement this for Bars and other charts, just haven't gotten around to it yet.