This is what I use:
NSDecimal plotPoint[2]; CPXYPlotSpace *xySpace = (CPXYPlotSpace *)space; [xySpace plotPoint:plotPoint forPlotAreaViewPoint:point]; NSlog(@"plotPoint = %@, %@", [[NSDecimalNumber decimalNumberWithDecimal:plotPoint[CPCoordinateX]] intValue], [[NSDecimalNumber decimalNumberWithDecimal:plotPoint[CPCoordinateY]] doubleValue]);
I would suggest that you can change CPXYPlotSpace to CPPlotSpace, and on my chart the plot space is CPXYPlotSpace, so the plotPoint: forPlotAreaViewPoint method takes an array of 2 NSDecimal values.
Also on my graph, the x values ββare integers, and the y values ββare doubled.
source share