LABEL for X and Y Axis
-
Hi All, I am using a Chart control in VS 2010 .Can any one help me which property of this control allow me to Name my X and Y axis. The Values are defined by for instance Series("Test").XValueMember. I would like to name my X axis as 'Hour' and Y axis as 'Revenue' Can you advice please? Many thanks
-
Hi All, I am using a Chart control in VS 2010 .Can any one help me which property of this control allow me to Name my X and Y axis. The Values are defined by for instance Series("Test").XValueMember. I would like to name my X axis as 'Hour' and Y axis as 'Revenue' Can you advice please? Many thanks
Hi, the Chart Control provided by MS and integrated in VS2010 has some very good examples that show how to use them. Please see: http://code.msdn.microsoft.com/mschart[^] There is also a small tutorial available here: http://blogs.msdn.com/b/alexgor/archive/2008/11/05/creating-small-charts-with-microsoft-chart-control.aspx[^]
-
Hi, the Chart Control provided by MS and integrated in VS2010 has some very good examples that show how to use them. Please see: http://code.msdn.microsoft.com/mschart[^] There is also a small tutorial available here: http://blogs.msdn.com/b/alexgor/archive/2008/11/05/creating-small-charts-with-microsoft-chart-control.aspx[^]
-
Thanks for your reply.All i wanted was how to name my X axis as for instance 'Product' and my Y axis 'Sales'. The link you have sent doesnt explain include this topic. Please advice. Thanks
Hi, Here is a piece of code that does exactly what you want:
// Set axis title Chart1.ChartAreas\["ChartArea1"\].AxisX.Title = "Chart Axis";
I copied it from a sample found here (source code is available on that site): http://quickstart.xs4all.nl/samples/code/chart/default.aspx[^]
-
Hi, Here is a piece of code that does exactly what you want:
// Set axis title Chart1.ChartAreas\["ChartArea1"\].AxisX.Title = "Chart Axis";
I copied it from a sample found here (source code is available on that site): http://quickstart.xs4all.nl/samples/code/chart/default.aspx[^]
Thanks So much for your help.Its Much appreciated.Sorry to mention another Problem i have is to Put a $ sign in fromt of the Y axis. .Series("Revenue").IsValueShownAsLabel = True I have to show numbers that are in $ Sign? How could i do that? When i do the formatting on the Numbers i get a problem with the layout of the Graph. Could you please advice? Thanks