CppChase
CppChase

Reputation: 917

CorePlot CPTAxisLabelingPolicyAutomatic and NSDate

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

Answers (1)

Eric Skroch
Eric Skroch

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

Related Questions