Solved

MSChart control - setting Y-axis values

Posted on 2000-03-09
3
2,219 Views
Last Modified: 2013-12-25
I have a VB 6.0 application where I'm using the MSChart control.  I set the value scale maximum to my max value and the value scale major division to 25 for the y-axis and the control automatically puts the scale for the divisions on the y-axis.  The scale has values to the third decimal place.  I do not need this much accuracy.  Is there a way I can format the scale so that the scale values only go to one decimal place?
0
Comment
Question by:deanw041997
3 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 100 total points
ID: 2600757
Use this to define the format of labels on the Y-Axis

MSChart1.Plot.Axis(VtChAxisIdY).Labels(1).Format = "0.0"
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 2600759
With mschart1.Plot.Axis(VtChAxisIdY).Labels(1)
   .VtFont.Name = "Arial"
   .VtFont.Size = 8
   .Format = "### ##0.0"
End With
0
 

Author Comment

by:deanw041997
ID: 2601565
thanks - works great
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how can i unlock a picture file that was loaded in a picturebox in visual c#? 4 84
MsgBox 4 45
VB6 ListBox Question 4 30
Excel Automation VBA 19 25
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
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…

914 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

15 Experts available now in Live!

Get 1:1 Help Now