Solved

Change x-axis label in mschart

Posted on 2011-03-20
1
1,535 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now