We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

show text at all Y-values in Box and whisker chart

Hi,

I want to display text at all Y-values in a Box and Whisker Chart as displayed in the attached file (as the text in red color, that values represents the different positions of whisker chart)

I was added the ponts to the chart as:
chartControl1.Points.Add(1, 4, 12, 20, 26, 36);

Any suggestions will be praised



Box and Whisker.zip

1 Reply

MW Melba Winshia Syncfusion Team November 21, 2007 02:32 PM UTC

Hi Jyothi,

Thank you for your interest in Syncfusion Products.

If your intention is to display text at the y values in a chart, it can be achieved by enabling the ChartStyleInfo.DisplayText property.

[c#]

void series1_PrepareStyle(object sender, ChartPrepareStyleInfoEventArgs args)
{
if (series != null)
{

args.Style.Text = string.Format("{0}", series.Points[args.Index].YValues[0]);

//Display text
args.Style.DisplayText = true;
args.Style.TextOrientation = ChartTextOrientation.Up;

}
}


Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/Chart.Web/5.2.0.25/38858/main.htm

Please try this and let me know if this helps.

Thanks,
Melba



Loader.
Live Chat Icon For mobile
Up arrow icon