基本上我有一个包含多个条形系列的图表。所有系列的独立值都相同。因此,图表的 xaxes 以堆叠的相同独立值呈现。
如果我想让所有系列(第一个除外)xaxes 的标签不可见,我该如何在 xaml 声明中做到这一点?
任何人都可以在这方面给我帮助吗?
更新:
我遇到了以下代码的示例:
<toolkit:Chart x:Name="myChart" Width="600" Height="400">
<toolkit:LineSeries
Title="Tasks"
ItemsSource="{Binding}"
IndependentValueBinding="{Binding Month}"
DependentValueBinding="{Binding Task}">
</toolkit:LineSeries>
<toolkit:LineSeries
Title="Benefits"
ItemsSource="{Binding}"
IndependentValueBinding="{Binding Month}"
DependentValueBinding="{Binding Benefits}">
</toolkit:LineSeries>
<toolkit:Chart.Axes>
<toolkit:LinearAxis Orientation="Y" Location="Left" Title="First" />
<toolkit:LinearAxis Orientation="Y" Location="Right" Title="Second" />
</toolkit:Chart.Axes>
</toolkit:Chart>
如果您绘制上面的代码,您将看到两个系列都将基于左侧的 Y 值。我们如何更改它,以便将第一个系列绘制在左侧的 Y 值上,将第二个系列绘制在右侧的 Y 值上。
那可能吗?
谢谢。