Fixes for id attar + add click attr for callback.
First of all - with the latest version of jqplot this directive is not working for me, because it call $(element).jqplot, but according to official jqplot's documentation there is only one appropriate way - $.jqplot('elemente's id' ....); Second - I have added chart-click attribute to pass a function that will be called when event 'jqplotDataClick' is fired.
Smth wrong with Travis, but definitely, that is not my fault.
I will fix these Travis errors tonight - other than these minor issues I've commented on, I like this PR, and am willing to merge this and tag a new release when this is tidied up.
There should be a test added for the binding of the callback as well, to test that it properly sets the correct binding and unsets the old binding.
Any time this fix will be finalized and committed ?