ng-echarts icon indicating copy to clipboard operation
ng-echarts copied to clipboard

How to get the value of selected area?

Open chenshenglong126 opened this issue 7 years ago • 1 comments

For example,in a map (type='china '), when I clicked a province , how can I get the name of the province selected?

chenshenglong126 avatar Apr 18 '17 02:04 chenshenglong126

like this

       $scope.mapConfig.event = [{click:onClick}];
       
       function onClick(params){
            console.log(params.name);
        };

liekkas avatar May 02 '17 13:05 liekkas