MSChart control - setting Y-axis values

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?
deanw041997Asked:
Who is Participating?
 
TimCotteeHead of Software ServicesCommented:
Use this to define the format of labels on the Y-Axis

MSChart1.Plot.Axis(VtChAxisIdY).Labels(1).Format = "0.0"
0
 
Éric MoreauSenior .Net ConsultantCommented:
With mschart1.Plot.Axis(VtChAxisIdY).Labels(1)
   .VtFont.Name = "Arial"
   .VtFont.Size = 8
   .Format = "### ##0.0"
End With
0
 
deanw041997Author Commented:
thanks - works great
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.