Only display day time data?

9 posts, 0 answers
  1. Mattias
    Mattias avatar
    2 posts
    Member since:
    Apr 2012

    Posted 23 Apr 2012 Link to this post

    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?
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 24 Apr 2012 Link to this post

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

  3. DevCraft banner
  4. Anna
    Anna avatar
    4 posts
    Member since:
    Apr 2012

    Posted 25 Apr 2012 Link to this post

    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...
  5. Mattias
    Mattias avatar
    2 posts
    Member since:
    Apr 2012

    Posted 27 Apr 2012 Link to this post

    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.
  6. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 02 May 2012 Link to this post

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

  7. Anna
    Anna avatar
    4 posts
    Member since:
    Apr 2012

    Posted 16 May 2012 Link to this post

    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 ?

  8. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 17 May 2012 Link to this post

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

  9. Anna
    Anna avatar
    4 posts
    Member since:
    Apr 2012

    Posted 21 May 2012 Link to this post

    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
  10. Anna
    Anna avatar
    4 posts
    Member since:
    Apr 2012

    Posted 21 May 2012 Link to this post

    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.
Back to Top
DevCraft banner