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
GetAxisLabel Event
Re: GetAxisLabel Event
Hi rossmc,
You could check the "sender" parameter:
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |