Solved

Change x-axis label in mschart

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

695 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