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

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
kingken
Newbie
Newbie
Posts: 9
Joined: Mon Apr 30, 2007 12:00 am

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

Post by kingken » Tue Jun 24, 2008 5:50 am

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]

kingken
Newbie
Newbie
Posts: 9
Joined: Mon Apr 30, 2007 12:00 am

I've sent you a pic

Post by kingken » Tue Jun 24, 2008 6:04 am

I've sent you a picture to your upload page.
I want to hide the moved bars' y axes label ( not all )

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jun 25, 2008 8:47 am

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;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

kingken
Newbie
Newbie
Posts: 9
Joined: Mon Apr 30, 2007 12:00 am

I want to hide partly y axes's label

Post by kingken » Thu Jun 26, 2008 4:00 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 26, 2008 7:18 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply