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

Message ListMessage List     Post MessagePost Message

  XY chart is displaied in day, but zooming cannot go to the hour
Posted by Eric on Jan-29-2013 22:58
Hi,

I have data every 15 min which are automatically displaied with tick every day. If I want to zoom in order to see what happened during a day, I would like that the tick of the hour appear and I can see for each hour.

But, the zoom does not go belong day. No tick for hour appear.

How can I set the zooming or the datescale so that I will be able to see this.

Best will even be to have the every 6 hours displaied on the xy chart as sub-tick with the tick of the day.

What is the code to use to do that?

Best regards,

Eric

  Re: XY chart is displaied in day, but zooming cannot go to the hour
Posted by Peter Kwan on Jan-29-2013 23:56
Hi Eric,

If you are using a real date/time x-axis (configured using setDateScale), and you let ChartDirector automatically determine the tick increment, ChartDirector should put suitable number of labels on the x-axis. If your date scale spans only a few hours, ChartDirector should use hourly labels.

Note that by default, the maximum zoom in ratio is 0.01 (100x zoom). This is configurable using the setZoomInWidthLimit method or ZoomInWidthLimit property (depending on the programming language edition of ChartDirector you are using). If you have 1000 days or data, and you would like to zoom to hourly scale, it means you need to set the zoom in limit to 1 / (1000 * 24.0) instead of the default 0.01.

Hope this can help.

Regards
Peter Kwan