[C#][UWP] How to display quarterly and yearly information in chart

6 posts, 0 answers
  1. Milan
    Milan avatar
    12 posts
    Member since:
    Mar 2016

    Posted 28 Apr Link to this post

    Hi team,

    I want to implement a chart with desired output as shown in the attached image file. Could you please help me resolve this issue asap.

    Regards

  2. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    419 posts

    Posted 28 Apr Link to this post

    Hi Milan,

    You cannot group axis labels, so you won't be able to have two rows of labels.

    However you can use the LabelDefinition's Template property, or even better, the TemplateSelector to show whatever you want for individual ticks.

    The TemplateSelector is just like any other normal XAML DataTemplateSelector, so you can use what you know already to show "Q1 2013" for each tick.

    Go here to see how to use the chart's LabelDefinition properties and configuration.

    Regards,
    Lance | Tech Support Engineer, Sr.
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Milan
    Milan avatar
    12 posts
    Member since:
    Mar 2016

    Posted 01 May Link to this post

    Hello,

    I tried to implement my scenario but I got some new issues where in, I want to display horizontal x-axis in bold at 0. Also, I want to reduce the space between two clusters. Please refer to the attached image.

    Regards

  4. Milan
    Milan avatar
    12 posts
    Member since:
    Mar 2016

    Posted 08 May Link to this post

    Hi,

    Is there anyone to help me out!!!!

    Regards

  5. Milan
    Milan avatar
    12 posts
    Member since:
    Mar 2016

    Posted 08 May Link to this post

    Hi,

    Is there anyone to help me out?

    Regards

  6. Ves
    Admin
    Ves avatar
    2914 posts

    Posted 11 May Link to this post

    Hi Milan,

    You can use GridLine Annotation to display bold line at zero. As for decreasing items space, you need to use the GapLength property of the axis. It accepts values between 0 and 1, where smaller values mean smaller gap.

    Best regards,
    Ves
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top