ngx-echarts
ngx-echarts copied to clipboard
(chartClick) not fired when clicking on line graph
(chartClick) works fine for barGraphs, but does not get fired for line charts. What can be the issue? <div echarts [options]="chartOption" (chartInit)="onChartInit($event)" (chartClick)="chartClicked()"></div>
chartInit gets fired alright but not chartClick.
@sc-anisej As echarts official document suggests, it is triggered when mouse clicks on certain component. For example, you can click the bars in the demo chart and take a look at the console.
@xieziyu Thanks for your response. Is there a way i can get the parameters of x and y coordinates when i click on a point in the line graph(Here the line being the component)?
If you add a symbol like 'triangle' rather than 'none', the event can be triggered when clicking over it and yes! on a line series :)