Forum Discussion

midhun_e's avatar
midhun_e
Cloud Apps
06-25-2025
Solved

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 ...
  • steve's avatar
    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