Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 基础设施图中的多y轴多直线系列_C#_Wpf_Infragistics - Fatal编程技术网

C# 基础设施图中的多y轴多直线系列

C# 基础设施图中的多y轴多直线系列,c#,wpf,infragistics,C#,Wpf,Infragistics,在基础设施图中是否有多条y轴多直线系列的规定?如果是,请使用适当的链接指导我。下面是一个如何使用Infragistics WPF控件实现这一点的示例。通过此链接: var DataChart = new XamDataChart(); var xAxis = new CategoryXAxis() { ItemsSource = data, Label = "Date" }; var yAxis1 = new NumericYAxis() { LabelLocation

在基础设施图中是否有多条y轴多直线系列的规定?如果是,请使用适当的链接指导我。

下面是一个如何使用Infragistics WPF控件实现这一点的示例。通过此链接:

var DataChart = new XamDataChart();

var xAxis = new CategoryXAxis()
{
    ItemsSource = data,
    Label = "Date"
};
var yAxis1 = new NumericYAxis()
{
    LabelLocation = AxisLabelsLocation.OutsideLeft
};
var yAxis2 = new NumericYAxis()
{
    LabelLocation = AxisLabelsLocation.OutsideRight
};
var series1 = new LineSeries()
{
    XAxis = xAxis,
    YAxis = yAxis2,
    ItemsSource=data,
    ValueMemberPath="Volume"
};
var series2 = new FinancialPriceSeries()
{
    XAxis = xAxis,
    YAxis = yAxis1,
    ItemsSource=data,
    CloseMemberPath="Close",
    OpenMemberPath="Open",
    HighMemberPath="High",
    LowMemberPath="Low"
};

DataChart.Axes.Add(yAxis1);
DataChart.Axes.Add(yAxis2);
DataChart.Axes.Add(xAxis);
DataChart.Series.Add(series1);
DataChart.Series.Add(series2);