C# 使用动态数据显示(D3)生成多Y轴图形

C# 使用动态数据显示(D3)生成多Y轴图形,c#,wpf,xaml,plot,dynamic-data-display,C#,Wpf,Xaml,Plot,Dynamic Data Display,在过去的一周里,我读了太多的材料,尝试了太多的东西,但我没有取得任何进展 我有一个主窗口MainWindowView,它有如下定义的复选框: <CheckBox IsChecked="{Binding Path=ocv_checkbox, Mode=TwoWay}" Margin="0, 0, 0, 2" Content="OCV"/> <CheckBox IsChecked="{Binding Path=battery_temperature_checkbox, Mode=T

在过去的一周里,我读了太多的材料,尝试了太多的东西,但我没有取得任何进展

我有一个主窗口MainWindowView,它有如下定义的复选框:

<CheckBox IsChecked="{Binding Path=ocv_checkbox, Mode=TwoWay}" Margin="0, 0, 0, 2" Content="OCV"/>
<CheckBox IsChecked="{Binding Path=battery_temperature_checkbox, Mode=TwoWay}" Margin="0, 0, 0, 2" Content="Battery Temperture"/>
<CheckBox IsChecked="{Binding Path=slope_checkbox, Mode=TwoWay}" Margin="0, 0, 0, 2" Content="Slope"/>
在我的GraphWindowView.xaml中,它显然只有两个轴。如果可能的话,我想添加一个使用代码隐藏的

谢谢,,
Rich

如果要添加多个Y轴,请选择InjectedPlotter对象。对于每种类型的数据英寸、加仑…,您将需要一个注入式绘图仪,并将其作为子项添加到图表绘图仪中。当一种数据的所有行都被禁用时,如果未选中复选框,只需隐藏插入的绘图仪。您必须使用正确的轴注入绘图仪链接每条线

<d3:ChartPlotter Name="plotter" Margin="10,10,20,10">
    <d3:ChartPlotter.HorizontalAxis>
        <d3:HorizontalIntegerAxis Name="dateAxis"/>
    </d3:ChartPlotter.HorizontalAxis>
    <d3:ChartPlotter.VerticalAxis>
        <d3:VerticalIntegerAxis Name="countAxis"/>
    </d3:ChartPlotter.VerticalAxis>

    <d3:Header FontFamily="Arial" Content="{Binding ElementName=ThisGraphWindowInstance, Path=title}"/>
    <d3:VerticalAxisTitle FontFamily="Arial" Content="{Binding ElementName=ThisGraphWindowInstance, Path=yAxis}"/>
    <d3:HorizontalAxisTitle FontFamily="Arial" Content="{Binding ElementName=ThisGraphWindowInstance, Path=xAxis}"/>
</d3:ChartPlotter>