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

Format a CategoricalAxis-specific style

1 Answer 63 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Gtelerik
Top achievements
Rank 1
Gtelerik asked on 25 May 2020, 09:04 PM

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.

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 28 May 2020, 12:22 PM

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.
Tags
ChartView
Asked by
Gtelerik
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or