Is there a way to have the datetime on the X-axis compressed for null values. For instance, we might have values for 8:00 9:00 10:00 and 18:00. The graph plots X-axis points between 10:00 and 18:00 even though there is no actual data for this time period, creating an erroneous straight line between these two points on the graph. Is there a way to eliminate this gap?
Thanks,
Mark
Compress time on X-axis when no data present
-
- Newbie
- Posts: 10
- Joined: Wed May 12, 2004 4:00 am
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi Mark,
Welcome -> Previous version -> New Features -> Series -> Candle -> Axis Label No Weekends
You can use a technique similar to the one outlined in the TeeChart Pro AXv6 Features Demo under:Is there a way to have the datetime on the X-axis compressed for null values. For instance, we might have values for 8:00 9:00 10:00 and 18:00. The graph plots X-axis points between 10:00 and 18:00 even though there is no actual data for this time period, creating an erroneous straight line between these two points on the graph. Is there a way to eliminate this gap?
Welcome -> Previous version -> New Features -> Series -> Candle -> Axis Label No Weekends
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
-
- Newbie
- Posts: 10
- Joined: Wed May 12, 2004 4:00 am
Thank you for your response, however, this example does not help us since we are loading hundreds of data points from an html data source, and we have no idea how large the gaps in time are going to be. Here is an example of a piece of the data:
38217,979167.16.''
38217,982639.21.''
38217,986111.31.''
38217,993056.16.''
38218,422917.22.''
38218,426389.26.''
38218,440278.18.''
38218,443750.21.''
Notice the larger than usual gap between 38217,993056 and 38218,422917
For some reason the control is putting in datetime values between these two times on the X-axis even though there is no data, creating an erroneous straight line between the two points.
Any suggestions?
Thanks,
Mark
38217,979167.16.''
38217,982639.21.''
38217,986111.31.''
38217,993056.16.''
38218,422917.22.''
38218,426389.26.''
38218,440278.18.''
38218,443750.21.''
Notice the larger than usual gap between 38217,993056 and 38218,422917
For some reason the control is putting in datetime values between these two times on the X-axis even though there is no data, creating an erroneous straight line between the two points.
Any suggestions?
Thanks,
Mark
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi Mark,
Have you had a look at ISeries.AddNullXY() (see help for details)?Notice the larger than usual gap between 38217,993056 and 38218,422917
For some reason the control is putting in datetime values between these two times on the X-axis even though there is no data, creating an erroneous straight line between the two points.
Any suggestions?
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/