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

(chartClick) not fired when clicking on line graph

Open sc-anisej opened this issue 5 years ago • 3 comments

(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 avatar Apr 24 '19 05:04 sc-anisej

@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 avatar Apr 24 '19 06:04 xieziyu

@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)?

sc-anisej avatar Apr 24 '19 07:04 sc-anisej

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 :)

EvaristoPerez avatar Jul 08 '21 01:07 EvaristoPerez