Page 1 of 1
Discontinuous DateTime X axis points
Posted: Tue Jan 18, 2005 11:09 pm
by 8884073
I have points from 10am to 12pm, and then 2pm to 4pm, and also some whole days are missing (weekends, holidays, some others).
Right now, every day I get a long line from 12pm to 2pm. What I'd like to see is 2pm right next to 12pm, as if time just suddenly went from 12:00pm to 2:00pm.
I am using the native C# version of TeeChart
Posted: Wed Jan 19, 2005 6:57 am
by Marjan
Hi.
One way to simulate this is to use the same trick we did in the "Remove weekends" example in TeeChart .NET demo. Especially, check the Candle_NoWeekends.cs unit. A similar approach can be used in your case.
Posted: Wed Jan 19, 2005 4:19 pm
by 8884073
just to verify my understanding of the code...
what is done here is you turn off dates, and then you add the X values as consecutive ints, and just relabel the points at the bottom to be the dates that are relevant.
Posted: Thu Feb 24, 2005 7:30 pm
by 8884073
this solution is not satisfactory as if i have 2 series sharing an axis, their numbers wont match up if their 'off' times do not match.
any other ideas?
ideally, i could just add points and tell the axis to not use the mandatory axis to not use the values to position, but to use the order they were added in (or their position in an array after sorting) as their location on the axis.