C #: System.Windows.Forms.DataVisualization.Charting.Chart Set row size

This is probably a very simple question, but I have a lot of problems trying to figure out which property sets the line size on the Chart or Series . The line is very narrow and hard to reach.

How to set line size for my FastLine chart?

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(); 
+7
source share
1 answer

Use Borderwidth and 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(); 

Borderline seems like an odd keyword for line width, but if you think that there are many types of charts, and not just a fast line, that makes sense.

+8
source

All Articles