0
MS 차트 조정. 동적 차트를 성공적으로 그리지 만 차트에 선 (노란색)을 그릴 필요가 있습니다. 어떻게 (노란색) 선을 그릴 것입니다. X와 Y 값이 있습니다. 여기 MSChart를 사용하여 스트라이프 라인을 대각선으로 그리는 방법은 무엇입니까?
MS 차트 조정. 동적 차트를 성공적으로 그리지 만 차트에 선 (노란색)을 그릴 필요가 있습니다. 어떻게 (노란색) 선을 그릴 것입니다. X와 Y 값이 있습니다. 여기 MSChart를 사용하여 스트라이프 라인을 대각선으로 그리는 방법은 무엇입니까?
은 당신이 재생할 수있는 예입니다
// we create a general LineAnnotation, ie not Vertical or Horizontal:
LineAnnotation lan = new LineAnnotation();
// we use Axis scaling, not chart scaling
lan.IsSizeAlwaysRelative = false;
lan.LineColor = Color.Yellow;
lan.LineWidth = 5;
// the coordinates of the starting point in axis measurement
lan.X = 3.5d;
lan.Y = 0d;
// the size:
lan.Width = -3.5d;
lan.Height = 5.5d;
// looks like we need an anchor point, no matter which..
lan.AnchorDataPoint = yourSeries.Points[0];
// now we can add the LineAnnotation;
chart1.Annotations.Add(lan);
는'LineAnnotation' 것 같은데 .. – TaW