midhun_e
06-25-2025Cloud Apps
How to capture clicked metric value from a Pie Chart using Compose SDK?
Hi everyone, I'm embedding a Sisense dashboard using the Compose SDK (@sisense/sdk-ui) in my React app. I can render widgets using WidgetById and everything looks fine visually. What I'm trying to ...
- 06-26-2025
Hi midhun_e​
WidgetById has a prop named onDataPointClick, it should do what you want.
onDataPointClick={(point: DataPoint ) => { console.log('Data Point Clicked:', point.categoryValue); }}
Let us know if it works for you
Thanks
Steve