Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Wed Dec 06, 2023 8:21 pm

Within a line chart I want to format the number value in the label. I am looping through the series. What object/property do I need to use to format this value?

foreach (ChartSerie cs in chart.Series)
{
cs.DataLabels.NumberFormat = "#,##0"; <- this does not do it for me..
}

jrobinsontx
 
Posts: 2
Joined: Wed Dec 06, 2023 8:04 pm

Thu Dec 07, 2023 3:57 am

Hi,

Thank you for your inquiry.
Please offer the following information to help us do further investigation. Thank you in advance.
1)Your input excel file and your desired effect screenshots or files ,you can attach here or send it to us via email([email protected]).
2)Application type, such as Console App( .NET Framework 4.8 ).
3)Your test environment, such as OS info (E.g. Windows 10, 64-bit).

Sincerely,
Ula
E-iceblue support team
User avatar

Ula.wang
 
Posts: 282
Joined: Mon Aug 07, 2023 1:38 am

Return to Spire.XLS