Problems with histogram


#1

I have a series with values positives and negatives. I’d need to draw a column chart like the example here

http://stockcharts.com/school/data/media/chart_school/technical_indicators_and_overlays/moving_average_convergence_divergence_macd/macd-0-qqqqexam.png

Where the yaxis is centered on 0 and columns go up if positive and down if negative.

I tried a lot but I always get the columns with basement at the bottom of chart.

Any help?

Thanks


#2

SOLVED

Damn I’m so noob…  :zipper_mouth:

SChartColumnSeries *c = [SChartColumnSeriesnew];

c.baseline = [NSNumbernumberWithFloat:0.0f];