Can anyone please tell me how to write the labels on the x-y-axes on the graph? The ones that say "Time(s)" & "Speed (m/s)".
I am using System.Windows.Forms.DataVisualization.Charting.Chart
. There should be a simple property somewhere which I am missing or is it something more complicated?
Windows Forms is a Graphical User Interface(GUI) class library which is bundled in . Net Framework. Its main purpose is to provide an easier interface to develop the applications for desktop, tablet, PCs. It is also termed as the WinForms.
Now, in 2022, with increasing competition and the adoption of newer more modern technologies the popularity and usage of WinForms are at an all-time low.
Win Form has been used to develop many applications. Because of its high age (born in 2003), WinForm was officially declared dead by Microsoft in 2014.
I am using the charts control on the web and setting the X and Y axis titles are done in the following way.
I assume the API would be the same for winforms.
var chartArea = new ChartArea("MyChart");
...
chartArea.AxisX.Title = "Times(s)";
chartArea.AxisY.Title = "Speed (m/s)";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With