Jump to content
Software FX Community

Clear X-axis labels


User (Legacy)

Recommended Posts

Dear Sir,

What is the correct VB6 code to clear the x-axis labels.

ChartFX1.Axis(AXIS_X).ClearLabels doesn't work.

Currently I can only set it by doing: "Right click chart" - Properties -

Axes - Details - Labels - Show Labels (unselected).

Or in code: ChartFX1.Axis(AXIS_X).Label(0) = "", which is rather unusal.

Best regards, Arnoud

Link to comment
Share on other sites

It works on my side. I did:

ChartFX1.Legend(0) = "Label 1"

And then, later:

ChartFX1.Axis(AXIS_X).ClearLabels

And I got numbers on the X-Axis again (as it was before setting the Legend

property)

Do you want you labels to be empty or to be null, there is a difference,

when they are null (no labels) numbers will be shown in its place, when they

are empty ("") then nothing will be shown.

If you want nothing to be shown, you need to assign Legend(0) = ""

--

FP

Software FX, Inc.

post-2107-13922392360875_thumb.jpg

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...