swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.28k stars 1.15k forks source link

Radar chart does not fire select event for any data point #1092

Open namanpatel6 opened 5 years ago

namanpatel6 commented 5 years ago

I'm submitting a ... (check one with "x")

Current behavior An ngx chart fires an 'onSelect' event when a data point is selected. The radar chart is not exhibiting this behavior despite the event being documented in the official documentation.

Expected behavior radar chart should fire 'onSelect' event on selecting a data point.

What is the motivation / use case for changing the behavior? To execute custom logic when a data point is selected

Please tell us about your environment: Windows 10, angular, ngx-charts dependency

akramaskar commented 4 years ago

Up! Same problem here!

Framework: Angular 5 @swimlane/ngx-charts": "^7.0.1

HTML File: ` <ngx-charts-polar-chart [view]="view" [scheme]="colorScheme" [legend]="legend" [showXAxisLabel]="showXAxisLabel" [showYAxisLabel]="showYAxisLabel" [xAxis]="xAxis" [yAxis]="yAxis" [xAxisLabel]="xAxisLabel" [yAxisLabel]="yAxisLabel" [results]="multi" (select)="onChartSelect($event)"

TS file: onChartSelect(event) { console.log(event); }`