Hi, Im using WPF Chart control and want to show the value near each of node on line. There many examples how to show value in a tooltip, thats cool. But I need to show value permanently. Right now I have a style like below:
<charting:LineSeries Name="ChartOne" DependentValuePath="Value" IndependentValuePath="Time" Title="Chart One"><charting:LineSeries.DataPointStyle><Style TargetType="charting:LineDataPoint"><Setter Property="Template"><Setter.Value><ControlTemplate TargetType="charting:LineDataPoint"><Grid Opacity="1" Width="40"><ToolTipService.ToolTip><StackPanel Margin="3"><TextBlock Text="{TemplateBinding FormattedDependentValue}" Foreground="Black" Width="auto" Height="auto" Margin="2"/></StackPanel></ToolTipService.ToolTip><Grid Background="DimGray" Width="40" ><Rectangle Width="20" Fill="{TemplateBinding Background}" Stroke="Black"/><Grid Margin="0 -20 0 0" HorizontalAlignment="Center" VerticalAlignment="Top"><TextBlock Text="{TemplateBinding FormattedDependentValue}" Margin="2"/></Grid></Grid></Grid> </ControlTemplate></Setter.Value></Setter></Style></charting:LineSeries.DataPointStyle></charting:LineSeries>
Its include Tooltip. Also there rectangle and label with needed information. When I run my program, I can see rectangle and first few pixels of the value. I cant see whole number. How it can be done? Thanks
Aleksey