I'am trying to implement (onDataSelect) for p-chart like showing in the documentation (https://www.primefaces.org/primeng/showcase/#/chart)
The graph is working perfect, but nothing append when I click in my chart
HTML:
<p-chart #chart type="line" [data]="data" [options]="chartOptions" (onDataSelect)="selectData($event)"></p-chart>
TS:
selectData(event) {
console.log('display',event)
}
Thanks for your help, maybe with a complete example
(onDataSelect) with p-chart not working
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
What is your chart.js version?
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Please try with 2.7.x while we check out the 2.9.x compatibility.
hi,
It works perfectly with 2.7. and also with 2.9 .....
Sorry, it was a misunderstanding on the triggering of the event. My graph is with areas. It is necessary to click on the upper line of the area.
The point is therefore closed. Thank you
It works perfectly with 2.7. and also with 2.9 .....
Sorry, it was a misunderstanding on the triggering of the event. My graph is with areas. It is necessary to click on the upper line of the area.
The point is therefore closed. Thank you
Kind Regards
François
François
-
- Information
-
Who is online
Users browsing this forum: No registered users and 7 guests