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
close icon

Value labels on a Chart

I have a chart object in my worksheet and I want to be able to display or not display the data labels. I also want to be able to set the position of the data label.

These are the Office.Interop enums that I use. Are there any similar enums in Syncfusion.

Excel.XlDataLabelsType.xlDataLabelsShowValue
Excel.XlDataLabelsType.xlDataLabelsShowNone

Excel.XlDataLabelPosition.xlLabelPositionCenter

1 Reply

MW Melba Winshia Syncfusion Team November 9, 2006 08:23 AM UTC

Hi David,

1) Use the following code snippets to set the Value labels on a Chart.

[C#]

//Setting the Value labels on a Chart.
IChartDataLabels labels = serieOne.DataPoints.DefaultDataPoint.DataLabels;
labels.IsValue = true;

Here is the sample for your reference:

Format_datalabel.zip


2) Currently we do not have support to set the position of the data label. I have created a feature request regarding this with our development team.

Please track the status of this feature through the following

http://www.syncfusion.com/support/features/xlsio/Default.aspx?ToDo=view&questId=1349

Please let me know if you have any other questions.

Thanks,
Melba


Loader.
Live Chat Icon For mobile
Up arrow icon