Hi Samir,
You can able to achieve your requirement by using LabelCreated event in ChartAxis. Please refer the following code snippet for your reference.
Code snippet:
privatevoid YAxis_LabelCreated(object sender, ChartAxisLabelEventArgs e)
{
double labelValue = Convert.ToDouble(e.LabelContent);
if (labelValue <= 2)
e.LabelContent = "VeryLow - " + e.LabelContent;
elseif (labelValue > 3 || labelValue <= 4)
e.LabelContent = "Low - " + e.LabelContent;
elseif (labelValue > 5 || labelValue <= 6)
e.LabelContent = "Medium - " + e.LabelContent;
elseif (labelValue > 7 || labelValue <= 8)
e.LabelContent = "High - " + e.LabelContent;
elseif (labelValue >= 9 || labelValue <= 10)
e.LabelContent = "VeryHigh - " + e.LabelContent;
}
|
Please download the sample from following location.
Please let us know, if you need further assistance on this.
Regards,
Parthiban S