为什么我的这段代码不起作用？/// <summary> /// 添加计算分隔线 /// </summary> /// <param name="x"></param> public void AddDataIndicatorLines4() { var values = new ChartValues<double> { _QCDataLine.line1SD }; var labels = new[] { "3SD" }; var lineSeries = new LineSeries { Title = "Line Series", Values = values, PointGeometrySize = 0, StrokeThickness = 4, Fill = System.Windows.Media.Brushes.Transparent, Stroke = System.Windows.Media.Brushes.Red, DataLabels = true, LabelPoint = point => $"{labels[point.Key]} ({point.Y})", }; cartesianChart1.Series.Add(lineSeries); } There should be exactly 2 paragraphs separated by the markdown divider: ***.
user