This is a migrated thread and some comments may be shown as answers.

Only display day time data?

8 Answers 74 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mattias
Top achievements
Rank 1
Mattias asked on 23 Apr 2012, 10:51 AM
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?

8 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 24 Apr 2012, 08:35 AM
Hello Mattias,

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 >>

0
Anna
Top achievements
Rank 1
answered on 25 Apr 2012, 11:54 AM
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...
0
Mattias
Top achievements
Rank 1
answered on 27 Apr 2012, 08:07 AM
Thanks for your reply!

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.
0
Victor
Telerik team
answered on 02 May 2012, 10:43 AM
Hello Mattias,

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 >>

0
Anna
Top achievements
Rank 1
answered on 16 May 2012, 05:26 PM
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 ?

0
Victor
Telerik team
answered on 17 May 2012, 08:33 AM
Hi Anna,

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 >>

0
Anna
Top achievements
Rank 1
answered on 21 May 2012, 10:46 AM
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
0
Anna
Top achievements
Rank 1
answered on 21 May 2012, 01:25 PM
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.
Tags
Chart
Asked by
Mattias
Top achievements
Rank 1
Answers by
Victor
Telerik team
Anna
Top achievements
Rank 1
Mattias
Top achievements
Rank 1
Share this question
or