我有以下WPF contro l包含一个数据可视化图表(而这是后面的C# code)。我的问题是,无论我做什么,我都无法更改积分的工具提示。
我尝试寻找其他任务,但看到了不同的解决方案。一种将特定事件分配给图表,但我的LineChart没有这些事件。我尝试添加模板,但没有任何反应(我仍然看到相同的工具提示)
<DVC:Chart Canvas.Top="80" Canvas.Left="10" x:Name="LineChart" Title="Linea" Foreground="Black" Background="{DynamicResource Brush09}" BorderBrush="Transparent" PlotAreaStyle="{DynamicResource GridStyle1}" Margin="0,5,0,0">
<DVC:Chart.TitleStyle>
<Style TargetType="{x:Type DV:Title}">
<Setter Property="FontSize" Value="15" />
<Setter Property="FontFamily" Value="Segoe UI" />
<Setter Property="HorizontalAlignment" Value="Center" />
</Style>
</DVC:Chart.TitleStyle>
<DVC:Chart.LegendStyle>
<Style TargetType="{x:Type DV:Legend}">
<Setter Property="FontSize" Value="10" />
<Setter Property="FontFamily" Value="Segoe UI" />
<Setter Property="Margin" Value="15,0"/>
<Setter Property="Width" Value="{Binding LegendVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush09}"/>
<Setter Property="Foreground" Value="{StaticResource Brush08}" />
<Setter Property="Background" Value="{DynamicResource Brush09}" />
<Setter Property="Visibility" Value="Collapsed" />
</Style>
</DVC:Chart.LegendStyle>
<DVC:Chart.Axes>
<DVC:DateTimeAxis x:Name="xAxis" Orientation="X" Foreground="Black" FontFamily="Segoe UI" FontSize="10"/>
<DVC:LinearAxis x:Name="yAxis" Orientation="Y" Minimum="0" Foreground="Black" FontFamily="Segoe UI" FontSize="10">
</DVC:LinearAxis>
</DVC:Chart.Axes>
<DVC:LineSeries x:Name="SeriesColumn" DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding}" DataContext="{Binding}" Margin="0">
<DVC:LineSeries.Background>
<RadialGradientBrush Center="0.075,0.015" GradientOrigin="-0.1,-0.1" RadiusY="0.9" RadiusX="1.05">
<GradientStop Color="#FFB9D6F7"/>
<GradientStop Color="#FF284B70" Offset="1"/>
</RadialGradientBrush>
</DVC:LineSeries.Background>
</DVC:LineSeries>
</DVC:Chart>
我想要的是following result。我想将所有值都保留为两倍,但是如果值小于60,我希望工具提示显示“ number + s”,如果值大于60,我希望看到“ number + m number + s”可以吗?