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:


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


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) = ""



Software FX, Inc.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...