[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1556
  • Last Modified:

Mschart, How to change Axis Scale Divisions per label at runtime

hi,
It's amazing how such a component is so bad documented!!!
If you go to custom property, and if you go to Axis tab, you see divisions per label and divisions per tick, fine, I can change here, but what is the name of this function, I need to change it at runtime, but I cann't figure out what is its name!!!
thanks

0
dorock
Asked:
dorock
1 Solution
 
TimCotteeCommented:
mschart1.Plot.Axis (VtChAxisIdY ).CategoryScale.DivisionsPerTick

etc.

I agree though, documentation on this is pretty poor!
0
 
Erick37Commented:
From Books Online:

Private Sub Command1_Click()
'The following example sets the scaling attributes for a category axis.
    ' Sets scaling attributes for a category axis.
    'MSChart1.chartType = VtChChartType2dLine
    With MSChart1.Plot.Axis(VtChAxisIdX, 1).CategoryScale
        .Auto = False 'Sets manual scaling.
        .DivisionsPerLabel = 2 'Label appears every two divisions.
        .DivisionsPerTick = 2 'Ticks appear every two divisions.
        .LabelTick = True 'Labels displayed on top of Tick marks.
    End With
End Sub
0
 
dorockAuthor Commented:
thanks
Erick37, but Tim was first...

0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now