Reputation: 917
I just want to know if it is possible to use NSDate and labelFormatter for axislabels while using CPTAxisLabelingPolicyAutomatic?
Thanks in advance
Upvotes: 0
Views: 68
Reputation: 27381
It works fine, although the automatic labeling algorithm doesn't know about the dates, so it won't split the axis into "nice" date intervals like days or weeks. You will probably want to use CPTTimeFormatter
or CPTCalendarFormatter
as the labelFormatter
.
Upvotes: 1