您能帮我设置笛卡尔图表从0开始吗?我有一条线和条形图。我无法将Y轴设置为0,因为我不需要-50值。
ChartValues<ObservablePoint> List1Point = new ChartValues<ObservablePoint>();
ChartValues<ObservablePoint> List2Point = new ChartValues<ObservablePoint>();
for (var i = 0; i <= 100; i++)
{
List1Point.Add(new ObservablePoint(numbers1[i], numbers2[i]));
}
for (var j = 0; j < 3; j++)
{
List2Point.Add(new ObservablePoint(numbers3[j], numbers4[j]));
}
cartesianChart1.Series = new SeriesCollection
{
new LineSeries
{
Values = List1Point,
PointGeometry = null,
AreaLimit = 0
},
new LineSeries
{
Values = List2Point,
PointGeometry = null,
LineSmoothness = 0,
AreaLimit = 0
}
};