Does XlsIO provide to format number values in data label in the - 10.2.0.56 version?
Hi
Anibal,
Yes,
format number values in data labels is available in our latest version 13.4. We
have prepared a simple sample as per your scenario in the following link.
Kindly try this sample and let us know if it helps.
Also
you could refer the following code sample to set the number format for the data
labels using XlsIO.
Sample
Link:
http://www.syncfusion.com/downloads/support/directtrac/general/ze/XlsIO_Sample-1228247968
Code
Sample:
(chart.Series[0].DataPoints.DefaultDataPoint.DataLabels
as ChartDataLabelsImpl).IsValue
= true; (chart.Series[0].DataPoints.DefaultDataPoint.DataLabels
as ChartDataLabelsImpl).NumberFormat
= "0.0%"; |
Regards,
Ishwarya
N
Hi
Anibal,
Yes,
you must enable IsCustomNumberFormat property to set the number format for data
labels in Excel 97- 2003. The following code example illustrates this behavior.
Code
Example:
(chart.Series[0].DataPoints.DefaultDataPoint.DataLabels
as ChartDataLabelsImpl).IsValue
= true; (chart.Series[0].DataPoints.DefaultDataPoint.DataLabels
as ChartDataLabelsImpl).NumberFormat
= "0.0%"; (chart.Series[0].DataPoints.DefaultDataPoint.DataLabels
as ChartDataLabelsImpl).TextArea.ChartAI.IsCustomNumberFormat = true; |
We
have shared the sample for your reference which can be downloaded from
following link.
Sample
Link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/XlsIO_Sample-1031951893
Please
try this sample and let us know if it helps.
Regards,
Ishwarya
N
Hi Anibal,
Thank you for your update. Please let us know if you need
further assistance on this.
Regards,
Ishwarya N