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;
.
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
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?
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;
.