【发布时间】:2014-05-20 02:04:11
【问题描述】:
我想在我的图表中显示水平线。所以我使用的是 StripLine 但这条线没有出现在图表的前面。我该如何更改?
这是我的代码..
.aspx.cs
StripLine stripLine1 = new StripLine();
stripLine1.StripWidth = 0;
stripLine1.BorderColor = System.Drawing.Color.Orange;
stripLine1.BorderWidth = 4;
stripLine1.BorderDashStyle = ChartDashStyle.Solid;
stripLine1.IntervalOffset = 50;
stripLine1.BackColor = System.Drawing.Color.Orange;
Chart1.ChartAreas[0].AxisY.StripLines.Add(stripLine1);
【问题讨论】:
标签: c# asp.net visual-studio-2010 charts webforms