Window "C # form window". Axis axis on the X and Y axes

Can someone tell me how you write labels on the xy axis in the graph. Those that say "Time (s)" and "Speed ​​(m / s)."

I am using (System.Windows.Forms.DataVisualization.Charting.Chart). Should there be some simple property that I am missing or is it something more complex?

enter image description here

+7
source share
1 answer

I am using chart management on the Internet, and setting the X and Y axis headers is as follows.

I assume that the API will be the same for winforms.

var chartArea = new ChartArea("MyChart"); ... chartArea.AxisX.Title = "Times(s)"; chartArea.AxisY.Title = "Speed (m/s)"; 
+22
source

All Articles