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);