converter applied to x-axis labels

2 posts, 0 answers
  1. Fabio
    Fabio avatar
    2 posts
    Member since:
    Aug 2013

    Posted 07 Nov 2013 Link to this post

    I have a categorical chart where X values are enum.
    By default chart shows as x-axis labels the name of enum value.

    Is it possible to insert a converter so that the label is automatically converted to a custom (localized) string?
  2. Yavor
    Admin
    Yavor avatar
    401 posts

    Posted 12 Nov 2013 Link to this post

    Hi Fabio,

    You can use a custom LabelTemplate in order to add a converter for your axis labels. Here is how:
    <telerik:CategoricalAxis.LabelTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Converter={StaticResource myConverter}}" />
        </DataTemplate>
    </telerik:CategoricalAxis.LabelTemplate>

    Hope this helps!

    Regards,
    Yavor
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top