Solved

Change x-axis label in mschart

Posted on 2011-03-20
1
1,615 Views
Last Modified: 2012-06-27
Hi,

I created Line chart using MSChart in Visual studio 2010.
Displayed Quater data in x-axis as below.


      |
1000      _
      |
      |
900      _
      |
      |            Here my graph displays correctly.
800      _
      |
      |
600      _
      |
      |
400      _
      |
      |
200      _
      |
      |
0      -------|---------|--------|--------|-------|---------|--------|--------|-------|-------|------
           03/2006   06/2006  09/2006  12/2006  03/2007  06/2007  09/2007  12/2007  3/2008  6/2008      etc.,



i need to show only years in x-axis label and remaing quaters should be point in between years, as below.


      |
1000      |
      _
990      |
      |
980      _
      |
      |
970      _
      |
      |
960      _
      |
      |
950      _
      |
      |            Here my graph displays.
940      _
      |
      |
930      _
      |
      |
920      _
      |
      |
910      _
      |
      |
900-----|---|---|---|---|---|---|---|---|---|---|---|---|---
      |
      2006               2007           2008             2009   etc.,


There should not be any change in graph.
 
could you please help me.


0
Comment
Question by:kravindra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 19

Accepted Solution

by:
Shahan Ayyub earned 500 total points
ID: 36276929
Hi!

You should check AxisLabel OR LabelStyle.Format properties.
Have a look at this link:
http://msdn.microsoft.com/en-us/library/dd456628.aspx
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Where is this file? 3 33
Amazon S3 .Net error 5 44
Need help with a query 14 40
Send parameters via datatable ajax call 4 15
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question