Solved

MSChart COntrol - Set the x-axis Min and Max for a date range

Posted on 2004-10-08
4
1,360 Views
Last Modified: 2013-12-26
Hello -

I am plotting a group of data points on a MsChart line graph.  The problem I am having is that the x-axis displays the date assoicated with each data point.  When I go over a certain amount to datapoints the x-axis becomes a glob of un-readble dates.  Does anyone know how to set it to only display say every 6th date etc or do automatic scaling

Thanks,
Gigglick
0
Comment
Question by:gigglick
  • 2
  • 2
4 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 100 total points
Comment Utility
?

MSChart1.Plot.Axis(VtChAxisIdX).ValueScale.Auto = True
0
 
LVL 5

Author Comment

by:gigglick
Comment Utility
Hello -

I justtried the line of code and it didn't not change anything.

0
 
LVL 26

Expert Comment

by:EDDYKT
Comment Utility
Or

MSChart1.Plot.Axis(VtChAxisIdX).ValueScale.Auto = True
mschart1.Refresh
0
 
LVL 5

Author Comment

by:gigglick
Comment Utility
Sorry EDDYKT -

Your first answer was correct.  I had a line of code later tha was overriding it.
Thanks so much!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 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

12 Experts available now in Live!

Get 1:1 Help Now