krispo / angular-nvd3

AngularJS directive for NVD3 reusable charting library (based on D3). Easily customize your charts via JSON API.
http://krispo.github.io/angular-nvd3
MIT License
1.29k stars 377 forks source link

Chart - Bar - Dispatch - elementClick not working in iOS #627

Open mr-bobz opened 7 years ago

mr-bobz commented 7 years ago

Hi,

I am building a web app which uses angular-nvd3 Historical Bar Chart. It is awesome, except that I can't select a bar in iOS. It works fine in Android, Desktop etc.

$scope.chartOptions = {
    chart: {
        bars:{
            dispatch: {
                elementClick: function(element){
                     console.debug("elementClick:",arguments);
                }
            }
        }
    }
}

Is this a known issue? Is there any workaround to make it work in iOS? Tried both Chrome and native browser.