Stacked column chart


#1

Hello,

i have a stacked bar chart, and i was tring to selected a column of the stacked series.

Is there a way to do it ? 

My current plan is make a drawing on top of the column but i am having problems getting the column width


#2

If i could get the with of the bar i should be able to make a drawing with coregraphics on top of the bar … :§


#3

Hi Moonlace,

You can select a each column in a stacked column chart by putting each Column DataPoint into its own series.

The following code will make the selected column turn black:

columnSeries.stackIndex = @0;
columnSeries.selectionMode = SChartSelectionSeries;

columnSeries.selectedStyle.areaColor = [UIColor blackColor];
columnSeries.selectedStyle.areaColorGradient = [UIColor blackColor];

Let me know how you get on.

Kind Regards,
Andrew Polkinghorn


#4

if i set earch DataPoint into its own series they will not stack I am right ? 


#5

They will still stack, so long as the x-values are the same