通过下面的代码绘制一个rect可以不受放大缩小影响
- private void Flexchart_SymbolRendering(object sender, C1.WPF.Chart.RenderSymbolEventArgs e)
- {
- if (((Point)e.Item).X == 3000)
- {
- e.Engine.SetFill(new SolidColorBrush(Colors.Red));
- e.Engine.SetStroke(new SolidColorBrush(Colors.Red));
- e.Engine.SetStrokeThickness(2000);
- e.Engine.DrawRect(e.Point.X - 5, e.Point.Y, 10, chart.PlotRect.Bottom- e.Point.Y);
- }
- }
复制代码 |