How to show the labels on xaxis in full date format


Hi shinobi team,

Iam creating the chart with xaxis as SChartAxisTypeDateTime ,iam giving xvalue as datae in the format “yyyy-MM-dd” but while showing on xaxis it is coming as jan1,jan2and soon like that but i need to display 2012-05-06 please help me as soon as possible.

Thanks & Regards



Hi Anurag,

Have a look at the labelFormatter property on the SChartAxis. This property is of type SChartTickLabelFormatter which is a wrapper for an NSFormatter appropriate to your data (e.g NSDateFormatter or NSNumberFormatter).

Setting a properly set up formatter on your axis will allow you to get your tick labels looking how you want them.



Thank you jan for your quick response