Hello, I am hoping that you can help me here. We have a situation where we are using your Silverlight Chart control and displaying some information. In this case we want to turn off the point labels for certain points. Is there a way for us to do this? Or is there a way to position the label such that it is behind one of the bars?
Thanks in advance
MacKenzie
5 Answers, 1 is accepted
I'm afraid that you can not turn off labels for certain points out-of-the-box. You can either turn off labels for the entire visual series or you could use MVVM like approach to do this. The latter is clearly demonstrated with the bar series of our online "Meteo Chart" example.
Greetings,
Velin
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items.
Here is my Template sample, MacKenzie
<
Style x:Key="ChartSeriesItemLabelStyle" TargetType="chart:SeriesItemLabel">
<Setter Property="Template" >
<Setter.Value>
<ControlTemplate TargetType="chart:SeriesItemLabel">
<Canvas>
<TextBlock x:Name="PART_TextContainer"
Canvas.Top="{TemplateBinding TextContainerCanvasTop}"
Canvas.Left="{TemplateBinding TextContainerCanvasLeft}"
VerticalAlignment="Stretch"
TextAlignment="Center"
FontStyle="Italic"
Text="{TemplateBinding Content}"
Foreground="{TemplateBinding Foreground}" />
</Canvas>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
I'm afraid that this is not supported by the control out of the box. You could again use the MVVM approach to set custom foreground color but you will need to handle this by hand.
All the best,
Velin
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items.
Thanks again
MacKenzie
Could you, please, elaborate a bit further on what the problem is and why the result is different from what you expected. Also, it would be great if you provide a screenshot and/or a sample project. Thanks.
Greetings,
Velin
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items.