Solved

MSChart control - setting Y-axis values

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

759 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

20 Experts available now in Live!

Get 1:1 Help Now