Jump to content
Software FX Community

Problem with axis label fonts on pie chart - ChartFX Client Server

User (Legacy)

Recommended Posts

Regarding: ChartFX 5.1 Client Server with Visual Basic 6.0

I would like to adjust the font of the Axis Labels on a Pie chart, but can't

get the font size to change. If I run the code shown below (for a Bar

chart), the font size change works fine. But, if I change the Gallery to

Pie, the labels change back to a smaller size. Any ideas?

One more issue, page 52 of the ChartFX Programmer's Guide in the section

titled Axis Labeling, says that labels are set using the .Label property of

the Axis object, but I can't get this to work either--I just get the default

numbers. Changing to KeyLabel (as shown in the code below) does work. Do I

need to do something else to make the .Label property array work?

Thanks for your help,


With ChartFX1

.Gallery = BAR

'.Gallery = PIE


.ValueEx(0, 0) = 70

.ValueEx(0, 1) = 90

.ValueEx(0, 2) = 99

.ValueEx(0, 3) = 80

.ValueEx(0, 4) = 60


.Axis(AXIS_X).LabelAngle = 90

.Axis(AXIS_X).KeyLabel(0) = "Albert"

.Axis(AXIS_X).KeyLabel(1) = "Betty"

.Axis(AXIS_X).KeyLabel(2) = "Carl"

.Axis(AXIS_X).KeyLabel(3) = "Doug"

.Axis(AXIS_X).KeyLabel(4) = "Elaine"

.Axis(AXIS_X).Font.Size = 15

End With

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...