8 Answers, 1 is accepted
Thanks for the question.
Please clarify what kind of date time axis you are using. If you are using the date-time categorical axis, you can simply filter your data so that it does not contain the unwanted days and then bind the chart to this filtered data.
I am looking forward to your reply.
Victor
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
EDIT : Sorry ! I've just found out categorical axis with filtered data is totally working ! many thanks , my bad...
I am using a DateTimeContinuousAxis. A categorical axis would not be very practical since a got hundreds of datapoints for different time values. Also, it's not just a matter of removing unwanted days, a also want to remove nights. That is, since my data goes from 9 AM to 17:30 PM every workday (sampled every fifth minute or so), i would also like my axis to represent this. I would guess this is not an uncommon scenario, e.g. displaying intraday financial data for the last week, without having two thirds of the axis represent night time (17:30 PM to 9 AM) values.
In Silverlight Toolkit charting it is possible to create an axis like this by overriding and defining your own axis, basically creating your own projection from value to coordinate, but as far as i can tell it is not possible using your charting components?!? Unfortunately Silverlight Toolkit does not meet our requirements performancewise for WP7 and therefor I'm investigation alternatives.
Thanks for writing.
From what you stated I understood the following: You need the behavior of the DateTimeContinuousAxis for the time-interval 9 AM - 17:30 PM for work days. You need to exclude non-work days and nights in order to avoid wasted screen space because of the time intervals that contain no data. This is actually a feature that we call irregular steps, however, it is not yet supported by our chart.
Please correct me if I misunderstood anything. If the behavior of the continuous axis is not critical to your app, please consider sending your application and we will try to modify it to use the categorical axis instead.
I am looking forward to your reply.
Victor
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I'm trying everything with the DateTimeCategoricalAxis, but with many many points, at irregular time intervals, it never gives us something good. Plus, sometimes we would like to display the points for example 2.00 at 12:36 between 12:30 and 1 PM which seems not possible with categorical axis that displays hours not half hour or exactly the datetime of our data, (12:36 in our case).
Should we better try to build a DateTimeContinuousAxis instead, filtering week end, trying to imitate the SeriesMapping available for SilverLight ?
As I mentioned, RadChart currently does not support irregular intervals. You can try implementing your scenario with DateTimeContinuosAxis and I will try to help you with any obstacles you may encounter.
I am looking forward to your reply.
Victor
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I wish we could use DateTimeContinuousAxis then. But how to filter week-ends ?
SeriesMapping used to filter for Silverlight isn't available for wp7. Would you have any other suggestions ?
Many thanks
Just add DateTimeComponent="Ticks" in your DateTimeCategoricalAxis. It will automatically bind to your datetime source. If your date sources don't contain week ends, the graphic will follow. that's all !
with all other datetimecomponent, you get weird results.