Date format on an axis - arrange


#1

Hello!

I’m using a DateTimeAxis for my xAxis. It currently displays the date for each.

Here’s code I’m using.

NSDateFormatter *formatter = (NSDateFormatter*)_chart.xAxis.labelFormatter.formatter;
    [formatter setDateFormat:@"d"];

However, I’m having a trouble to find out to customize my chart to look like this.

How can I provide an unique format for the leftmonst label along x-axis(setDateFormat:@“d/M”) ?

Thanks in advance.

Regards,

Maya


#2

Hi Maya,

We do not support styling the labels individually, so you would have to specify the format for all labels.

You can find the list of all possible format string entries for iOS7 on http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns


#3

Hi tkelly,

I also met the same problem.Could you please give me a simple example?

Thanks

Regards,

p31415