GetAxisLabel Event

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
rossmc
Newbie
Newbie
Posts: 57
Joined: Wed Apr 08, 2009 12:00 am

GetAxisLabel Event

Post by rossmc » Fri Feb 25, 2011 7:37 am

Hi

I'm trying to use the GetAxisLabel event to do some basic modification of my labels. However, I have multiple series plotted on the chart. One on right axis, one on left axis, and then some additional custom axis.

The question is, in the GetAxisLabel event, is there a way to tell which axis raised the event? So in the code for the event I can check which axis is currently having it's labels drawn?

Thanks

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: GetAxisLabel Event

Post by Yeray » Fri Feb 25, 2011 10:28 am

Hi rossmc,

You could check the "sender" parameter:

Code: Select all

        void tChart1_GetAxisLabel(object sender, Steema.TeeChart.GetAxisLabelEventArgs e)
        {
            if (sender == tChart1.Axes.Left)
                // do something
            else if (sender == tChart1.Axes.Right)
                //do something else
        }
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply