Hi Mike,
Thanks for your interest in Syncfusion products.
It is possible to format the Axis label using the FormatLabel event which is fired when everthere is a change in the ChartAxis labels. This event will be fired even whenever there is a change in the axis labels values ( ie when the AxesRange changes etc that causes the labels to be redrawn). Please refer to the sample code snippet below.
Sample Code:this.chartControl1.PrimaryXAxis.FormatLabel += new ChartFormatAxisLabelEventHandler(PrimaryXAxis_FormatLabel);
this.chartControl1.PrimaryYAxis.FormatLabel += new ChartFormatAxisLabelEventHandler(PrimaryYAxis_FormatLabel);
}
void PrimaryYAxis_FormatLabel(object sender, ChartFormatAxisLabelEventArgs e)
{
e.Label = String.Format("{0:f3} mil", e.Value);
e.Handled = true;
}
void PrimaryXAxis_FormatLabel(object sender, ChartFormatAxisLabelEventArgs e)
{
e.Label = String.Format("{0:f2} unit", e.Value);
e.Handled = true;
}
I have attached a sample that illustrates the same in this link below.
http://websamples.syncfusion.com/samples/Chart.Windows/F76572/Sample1.htmKindly let us know if this meets your requirement. Thanks for your patience.
Regards,
Manohari.R