Page 1 of 1

GetAxisLabel Event

Posted: Fri Feb 25, 2011 7:37 am
by 13052926
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

Re: GetAxisLabel Event

Posted: Fri Feb 25, 2011 10:28 am
by yeray
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
        }