RadChart CustomGridLine X or Y Axis label?

5 posts, 0 answers
  1. Pieter
    Pieter avatar
    1 posts
    Member since:
    Feb 2011

    Posted 27 Sep 2011 Link to this post

    Hi there

    I am currently using a CustomGridLine in one of my charts and have some questions about this object
     
    1) Can a CustomGridLine display its correponding y-Axis value as a label on my chart?
    2) Is it possible to bring the CustomGridLine to the "front" of the chart. I have a Bar Series and I would like the GridLine to be displayed on top.

    Thanks
    Pieter
  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 30 Sep 2011 Link to this post

    Hi Pieter,

    1) Could you please elaborate a bit more on this? Sending us a sample image of what you want to achieve will be very helpful for us to provide you with a proper suggestions.
    2) Currently showing the Annotations above the RadChart is not supported out-of-the-box. However to achieve it you should retemplate the default ChartArea style as shown here. You may find this discussed in our forum post.

    Greetings,
    Evgenia
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. Michael
    Michael avatar
    72 posts
    Member since:
    Mar 2007

    Posted 11 Oct 2011 Link to this post

    Hi Evgenia

    I need your help on this matter:
    Currently I must create a report with an embedded Chart which must display horizontal gridlines (corresponding to Y axis) for certain values (not major or minor gridlines!). Please see attached file.

    Short explanations: on X axis: time, on Y axis: weight (kg)

    After one working day I couldn't find any solution.
    Any help will be appreciated (an example would be great).

    Thanks a lot!!
    Dan
  4. Michael
    Michael avatar
    72 posts
    Member since:
    Mar 2007

    Posted 11 Oct 2011 Link to this post

    PS:

    The project is made in WPF.
    Thanks
    Dan
  5. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 14 Oct 2011 Link to this post

    Hi Dan,

    You can use our Annotations (Custom GridLine or CustomLine) to achieve your scenario. For example if you want to have an Average line which should cross the average point in your data, you should find this average point in your data. If your datasource is a List for example or any generic you may use a LINQ Aggregator function to find the average amongst your elements.

    Also as a side note - I would like to ask you to post your future questions in their corresponding Product forum. Since your question is related to RadChart for WPF - I suggest that we continue our further comunication on this there or in a new formal Support thread.

    All the best,
    Evgenia
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top