Only display day time data?

Mattias

I want to be able to exclude nights and weekends i my charts but can't find a way. I will only recieve data during work hours and therefor, when I display a chart for the last week only one third of available screen width will be occupied with acctual data, see primitive sample provided. Is there a way to exclude certain periods or any way to create a custom axis?

Victor

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.

Regards,
Victor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Anna

I have the same problem and I'd like the date-time categorical axis not to display specific days. For example display days : 04/19 ; 04/20 ; 04/23... can we just get rid of some days in the date time categorical axis ? otherwise which axis should we use or how to customize ?Thanks !
EDIT : Sorry ! I've just found out categorical axis with filtered data is totally working ! many thanks , my bad...

Mattias

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.

Victor

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.

All the best,
Victor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Anna

I have exactly the same issue.
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 ?

Victor

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.

Greetings,
Victor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Anna

Ok thanks for your reply
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

Anna

Ok so we finally made it work very easily.
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.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.