Page 1 of 1

How to hide the Y axes label when I move the ganttbar

Posted: Tue Jun 24, 2008 5:50 am
by 9644954
I used a drag point in the ganttbar to move the bar vertically, but when I moved the bar vertically, I found a problem. the single bar will move a line together which has a y axes label. Now I want to move the single bar without showing its horizontal line and y axes label. Do you have any way to solve this problem.
Note: you must show me the original horizontal lines and y axes labels[/url]

I've sent you a pic

Posted: Tue Jun 24, 2008 6:04 am
by 9644954
I've sent you a picture to your upload page.
I want to hide the moved bars' y axes label ( not all )

Posted: Wed Jun 25, 2008 8:47 am
by narcis
Hi kingken,

In that case you can try setting left axis labels like this:

Code: Select all

			tChart1.Axes.Left.Labels.Style = Steema.TeeChart.AxisLabelStyle.Value;

I want to hide partly y axes's label

Posted: Thu Jun 26, 2008 4:00 am
by 9644954
For example, I have two bars which are showed in the gantt chart, now when I moved one bar, I want to hide this bar's y axes label but still show another bar's label

Posted: Thu Jun 26, 2008 7:18 am
by narcis
Hi kingken,

Do you have any label setting on your application? You could use GetAxisLabel or GetNextAxisLabel events for customizing displayed labels. You can set those which you don't want to display to an empty string. Another alternative would be using custom labels as shown in the All Features\Welcome!\Axes\Labels\Custom labels example in the features demo, available at TeeChart's program group.