.net WPF工具箱图表上的辅助y轴

.net WPF工具箱图表上的辅助y轴,.net,wpf,silverlight,charts,.net,Wpf,Silverlight,Charts,我想在WPF工具箱图表中绘制两行序列。() 是否可以将一个数据系列的Y轴设置为辅助Y轴?是。轴类型具有一个位置属性,可用于指定其应显示在左侧或右侧(或顶部或底部)。可将位置属性用于轴定义。像这样: <charts:LinearAxis Orientation="Y" Title="Some (Units)" Minimum="0" Maximum="40" Interval="5" Location="Right"/> 这也可以是“左”、

我想在WPF工具箱图表中绘制两行序列。()
是否可以将一个数据系列的Y轴设置为辅助Y轴?

是。
类型具有一个
位置
属性,可用于指定其应显示在左侧或右侧(或顶部或底部)。

可将位置属性用于轴定义。像这样:

<charts:LinearAxis Orientation="Y"
    Title="Some (Units)"
    Minimum="0"
    Maximum="40"
    Interval="5"
    Location="Right"/>

这也可以是“左”、“上”、“下”或“自动”,自动是默认值,如果定义第二个轴,则默认为在左侧绘制一个轴,在右侧绘制第二个轴(至少在2010年2月的版本中)


希望这有帮助…

刚刚找到了一个简单的方法(但不容易找到!)

在第一个系列中(我的示例中是ColumnSerie),添加以下内容

<DVC:ColumnSeries.DependentRangeAxis >
    <DVC:LinearAxis Location="Left" Orientation="Y" />
</DVC:ColumnSeries.DependentRangeAxis> 
<DVC:LineSeries.DependentRangeAxis >
    <DVC:LinearAxis Location="Right" Orientation="Y" />
</DVC:LineSeries.DependentRangeAxis>

在第二个系列(LineSeries)中,添加以下内容

<DVC:ColumnSeries.DependentRangeAxis >
    <DVC:LinearAxis Location="Left" Orientation="Y" />
</DVC:ColumnSeries.DependentRangeAxis> 
<DVC:LineSeries.DependentRangeAxis >
    <DVC:LinearAxis Location="Right" Orientation="Y" />
</DVC:LineSeries.DependentRangeAxis>