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

Message ListMessage List     Post MessagePost Message

  y axis time, time as data
Posted by Jozin on Jan-05-2011 20:30
Hi, I want to draw a bar graph that displayes time(minutes, seconds).
Id like y axis to display labels  - 1:00 min, 2:00 min,... or just numbers could be enough.
But Id like bar labels, to be in such format( ie. 3:45, 15:27,....). Is it possible?
Thanks
Josef

  Re: y axis time, time as data
Posted by Peter Kwan on Jan-06-2011 00:01
Hi Jozin,

If you have less than 60 minutes, you may use {value|nn:ss} to format the number. Note that nn is from 00 to 59, which means you cannot display more than 60 minutes using this format (eg. you cannot have something like 5013:44).

For the y-axis scale, if you are using auto-scaling, and using a numeric scale, the scale can be something like 0, 100, 200, ..... You can format it using {value|nn:ss} with Axis.setLabelFormat, and it will become 00:00, 01:40, 03:20, ... Note that the labels spacing may not be exact minutes. If you want the label spacing to be at exact minutes, you would need to tell ChartDirector to use a date/time scale (use Axis.setDateScale, Axis.setDateScale2 or Axis.setDateScale3) for the y-axis.

Hope this can help.

Regards
Peter Kwan

  Re: y axis time, time as data
Posted by Jozin on Jan-11-2011 19:26
Thank you  very much for quick answer.