User (Legacy) Posted March 11, 2002 Report Share Posted March 11, 2002 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 More sharing options...
Software FX Posted March 11, 2002 Report Share Posted March 11, 2002 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.