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

Message ListMessage List     Post MessagePost Message

  How can I skip empty intervals
Posted by Barsuk Alexey on Sep-04-2013 19:26
Attachments:
Hi, everybody.
From the picture below you can see my trouble. This big empty interval on a graph ... it is
bad. How can I skip empty intervals? (uses chart director, of course)
__________.png

  Re: How can I skip empty intervals
Posted by Peter Kwan on Sep-05-2013 00:15
Hi Barsuk,

The chart currently accurately reflect the date/time of your data. There are date/time gaps because your data have date/time gaps.

Are you drawing a financial chart? In normal financial charts, the x-axis does not represent date/time. It represents trading sessions.

To see that, you may notice that the date/time in a financial chart are rather "random" and "unpredictable". They represent trading date/time which is different for every stock exchange in the world, and are unpredictable because they can be affected by natural disasters (such as a hurricane stopping the trading) or other events.

In fact, the date/time are not needed at all to draw financial chart. They do not determine the position of the elements (the position of the elements are always equally spaced regardless of the date/time). They also are not need in computing any technical indicators. The date/time are purely for human reading (just like names).

If you are creating a financial chart using an XYChart object, the x-axis should be configured with the date/time as labels, using Axis.setLabels or Axis.setLabels2. A date/time x-axis should not be used (no setDateScale). There is also no need to provide x-coordinates for the data points (no Layer.setXData). Without the x-coordinates, ChartDirector will plot the data based on their positions in the data array, which is normally how a financial chart should be plotted.

Hope this can help.

Regards
Peter Kwan