[英]C#: System.Windows.Forms.DataVisualization.Charting.Chart Set Line Size
This is probably a really simple question but I am having a lot of trouble trying to figure out which property sets the line size on the Chart or Series class. 这可能是一个非常简单的问题,但我在尝试找出哪个属性设置Chart或Series类的行大小时遇到了很多麻烦。 The line is really narrow and hard to see.
这条线很窄,很难看。
How do I set the line size for my FastLine chart? 如何设置FastLine图表的线条大小 ?
Series set1 = new Series();
for (int i = 0; i < 10; i++)
{
set1.Points.addY(x);
}
set1.ChartType = SeriesChartType.FastLine;
set1.Color = Color.Green;
chart1.Series.Add(set1);
chart1.Invalidate();
Use Borderwidth and BorderStyle . 使用Borderwidth和BorderStyle 。
Series set1 = new Series();
for (int i = 0; i < 10; i++)
{
set1.Points.addY(x);
}
set1.BorderWidth = 10;
set1.BorderDashStyle = ChartDashStyle.Solid;
set1.ChartType = SeriesChartType.FastLine;
set1.Color = Color.Green;
chart1.Series.Add(set1);
chart1.Invalidate();
Border seems like a strange keyword for line width, but if you consider there are many types of graphs, not just fast line, it makes sense. 边框似乎是线宽的一个奇怪的关键字,但如果你认为有很多类型的图形,而不仅仅是快速线,这是有道理的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.