Question

I'm using core plot in my project.I have a requirement to add "$" as prefix in Y axis label using CPTAxisLabelingPolicyAutomatic.Please guide me how to do this?
One more issue with labelling policy.
if i use CPTAxisLabelingPolicyAutomatic then i'm getting UI like image enter image description here
As you can see the y label are on graph.Anything i'm missing?
In the above image i need to alternate x axis lines.How can i do it?

Was it helpful?

Solution

Configure the labelFormatter on the y-axis to add the currency symbol. NSNumberFormatter gives you many options.

You need to add padding on the plot area frame to leave room for the labels, e.g., graph.plotAreaFrame.paddingLeft = 50.0;.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top