Hello,
Assumed we have a chart with NumericXAxis nd NumericYAxis. Let's say the Y value changes between 0 and 100.
Is there any possibility to replace standard YAxis labels with literal aliases such as "Top" by 90, "Standard" by 40 and "Poor" by 25?
Thank you.
Bonitz.
Hello Bonitz,
Thank you for the feedback. I am glad that you have found a solution to your issue. Please do not hesitate to contact us if you have any questions.
Here is a workaround.
1. Define new axis style.
<Style x:Key="AxisStyle" TargetType="ig:Axis"> <Setter Property="Label"> <Setter.Value> <DataTemplate> <TextBlock Text="{Binding Item, Converter={StaticResource AxisConverter}}"/> </DataTemplate> </Setter.Value> </Setter> </Style>
2. Set axis style in code behind.
RegardsBonitz
Hello Gergana,
thank you for reply. The solution works wery nice.
Is it possible to set the value converter to axis Label in code behind if i add axes dynamically?
Regards
Bonitz
Hello bonitz,
Thank you for the feedback. Please do not hesitate to le t me know if you have any further questions on the matter.
thank you.