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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

69953 Nov 20,2007 02:27 AM Nov 21,2007 09:32 AM ASP.NET Web Forms (Classic) 1
loading
Tags: Chart
JyothiKumar
Asked On November 20, 2007 02:27 AM

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

Melba Winshia [Syncfusion]
Replied On November 21, 2007 09:32 AM

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



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;