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

Message ListMessage List     Post MessagePost Message

  Set DateTime interval
Posted by Mousumi on May-30-2012 22:36
Hiiii,

How can I set interval in dateTime xaxis scale ..
I want to set 5 days interval in scale.

Please kindly help me...

  Re: Set DateTime interval
Posted by Peter Kwan on May-31-2012 02:33
Hi Mousumi,

You can use Axis.setDateScale. For example, in Java:

c.xAxis().setDateScale(startTime, endTime, 5 * 86400);

The 5 * 86400 means 5 days (1 day has 86400 seconds). The startTime and endTime are the date/time object for the programming language, which for Java is java.util.Date objects. (You may look up "Date/Time Specification" from the ChartDirector documentation index for details.)

Hope this can help.

Regards
Peter Kwan