1
在Infragistics圖中是否有任何規定具有多個y軸的多行系列?如果是,請引導我與適當的鏈接。Infragistics圖中有多個y軸的多行系列
在Infragistics圖中是否有任何規定具有多個y軸的多行系列?如果是,請引導我與適當的鏈接。Infragistics圖中有多個y軸的多行系列
下面是如何使用Infragistics WPF控件完成該操作的示例。來自此鏈接:https://www.infragistics.com/help/wpf/datachart-multiple-axes
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);