You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I calculate the top position of a pressed StackedBar? I have added ChartPressState, which can identify the pressed bar, but calculating the top was somewhat challenging for me. I tried to calculate it in different ways from the ChartPressState, but the position wasn't accurate in all cases.
Background Info/Attempts
Since I noticed 0 on Y axis was top of the canvas, I tried to find the minimum position from the stacked bars, hoping it would be the top-most bar, but it wasn't exactly the case. The goal was to position a Skia Circle at the top of stacked bars for the pressed row.
Question
How can I calculate the top position of a pressed StackedBar? I have added ChartPressState, which can identify the pressed bar, but calculating the top was somewhat challenging for me. I tried to calculate it in different ways from the ChartPressState, but the position wasn't accurate in all cases.
Background Info/Attempts
Since I noticed 0 on Y axis was top of the canvas, I tried to find the minimum position from the stacked bars, hoping it would be the top-most bar, but it wasn't exactly the case. The goal was to position a Skia Circle at the top of stacked bars for the pressed row.
The text was updated successfully, but these errors were encountered: