Format a CategoricalAxis-specific style

2 posts, 0 answers
  1. Evangelista
    Evangelista avatar
    3 posts
    Member since:
    Mar 2011

    Posted 25 May Link to this post

    Hi,

    i need to format the style of a specific category. The categories represent months of the year. According to the current month, the category for this current month should be in bold font.

  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2445 posts

    Posted 28 May Link to this post

    Hi,

    To achieve your requirement you can use the LabelStyle or LabelTemplate property of the axis. This way you can set the FontWeight property of the corresponding element based on a condition. One way to do this is to use an IValueConverter.

    Regards,
    Martin Ivanov
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top