ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Another date format question
Posted by raj on Dec-13-2012 19:14
Question about intelligent handling of date formats. Because my date points are always variable I use $layer->setXData($labels) - Perl. I notice when there are lots of data points over a reasonable duration, ChartDirector does the right thing - labels are 09/2012, 10/2012, 11/2012, etc ie mm/yyyy. But when the range is short I get eg 11/14/2012, 11/15/2012, 11/16/2012, etc ie mm/dd/yyyy (which is not the correct format for European dates). I know I can use $c->xAxis()->setDateScale3("{value|dd-mm-yyyy}") to force dd/mm/yyyy format, but it then overrides the previously OK mm/yyyy format on the datasets with wider date ranges.

Is there any way I can keep the existing "intelligent" auto-formatting (ie dd/mm/yyyy over short range and mm/yyyy over longer range), but set default date format to European intead of American? No offense to Americans, it's just not the normal date format over here :)

  Re: Another date format question
Posted by raj on Dec-13-2012 20:37
Update: just found something which seems to do the trick in the ChartDirector docs zoomscrolltrackweb.htm under "Configure axis scale and labelling". With some juggling of formats I have pretty much exactly what I wanted. ChartDirector rocks :)