public GetAxisLabelEventHandler GetAxisLabel
Remarks
An Event is triggered for each Axis Label painted. There are two different uses for GetAxisLabel:
1) : Axis Labels are Values. Is this case, the Series parameter will be nil, and the ValueIndex will be -1.
2) : Axis Labels are Series points. The Series parameter will be a valid Series, and the ValueIndex will be the current Series point position. You can change the LabelText referred parameter for drawing a different Axis Label.
Example
[C#]
private void WebChart2_GetAxisLabel(object sender, Steema.TeeChart.GetAxisLabelEventArgs e)
{
//example to show manipulation of the Axis Label Text at output time
if ((Steema.TeeChart.Axis)sender==WebChart2.Chart.Axes.Bottom)
{
switch (e.LabelText.Substring(e.LabelText.Length-1,1))
{
case "0": e.LabelText="init. 0"; break;
case "1": e.LabelText=e.LabelText+"st"; break;
case "2": e.LabelText=e.LabelText+"nd"; break;
case "3": e.LabelText=e.LabelText+"rd"; break;
default: e.LabelText=e.LabelText+"th"; break;
}
}
}
See Also
TChart Class | TChart Members | Steema.TeeChart Namespace