I am getting very large numbers to plot on Yaxis. My requirement is if I get 1000 it should convert in 1K,10000 should show 10K and 1000000 should show 1M and so on.How can I achieve this by using NSNumberFormatter? if not please provide any other alternative solution.I am using below code
NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];
axisSet.yAxis.labelFormatter = numberFormatter;
axisSet.yAxis.labelAlignment = CPTAlignmentRight;
axisSet.yAxis.majorGridLineStyle = gridLineStyle;
axisSet.yAxis.majorTickLength = 4.0f;
axisSet.yAxis.minorTicksPerInterval = 0.0;
axisSet.yAxis.labelOffset = 5.0;