Column Chart - How to select a specific bar in a specific Serie


#1

Hello,

I spent a few hours to find how to select a specific column (a bar in a ColumnChart) but I didn’t find. (I’ve look in the previous topics, but nothing about this problem)
I tried with the method toggleSelectionForRadialPoint but the method is never called… Whatever the configuration I set in my SChartColumnSeries.
I succeeded with the toggleSelectionForSeries but it don’t do what I need…

I also tried by forcing the SChartInternalDataPoint.selected to YES but nothing happend.

Is there a way to do it?

Thanks in advance!


#2

Hi Nuklehon!

You’re almost there, there’s one other selection method - sChart:toggledSelectionForPoint:inSeries:atPixelCoordinate: is what you’re looking for :slight_smile:

You’ll need to set the column series’ selectionMode property to SChartSelectionPoint for this to fire.

Let me know if this does the trick!

Rob


#3

Hi Rob,

I switched to another project so… I’ll keep you informed when I come back to this issue…

Thank you!

See you soon.


#4

Working ! Thanks a lot Rob!


#5

Hi,

Is there a way to highlight the selected column in SChartColumnSeries? I want to select a single column, not the entire series.

Thanks,
Povilas