Solved

MSChart control - setting Y-axis values

Posted on 2000-03-09
3
2,267 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 70

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

733 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