kyper-data / python-highcharts

A simple translation layer between Python and Javascript for Highcharts projects (highcharts, highmaps, and highstocks).
MIT License
393 stars 190 forks source link

Point event fix #30

Closed peculiarism closed 6 years ago

peculiarism commented 7 years ago

Hi,

I'm in the process of implementing click events on points in a scatter graph, however I'm getting this error:

Option Type Mismatch: Expected: <class 'highcharts.highcharts.common.Events'>

Looking through the source code this seems like it may be an easy fix, as the way I'm formatting the options is like so:

'point': {
                            'events': {
                                'click': 'function(e) {console.log("Hello!" + e)}'
                            },
                        }

Let me know if this isn't the case, it would be great to get this fixed ASAP :)

ksolan commented 6 years ago

Sorry for the much delayed reply! Just getting back to github.

Thanks for the fix -- it does look like an oversight on our part.