Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Wed Apr 19, 2023 8:16 am

Hi,

I'm using Spire.Presentation 8.3.2. Is there a way for us to create chars with null category and series labels?

Thanks!

boncyrus
 
Posts: 20
Joined: Wed Mar 01, 2023 10:01 am

Wed Apr 19, 2023 8:19 am

I tried populating by assigning empty string but I don't think it's working

Code: Select all
chart.ChartData[0, 1].Text = "";
chart.Categories.CategoryLabels = chart.ChartData["A2", "A2"];


can you please guide on how to create charts with null series and category

thankss!

boncyrus
 
Posts: 20
Joined: Wed Mar 01, 2023 10:01 am

Wed Apr 19, 2023 10:27 am

Hi,

Thanks for your feedback.
You can refer to the following code to set the category label to be null.
Code: Select all
//Hide axis
chart.PrimaryCategoryAxis.IsVisible = false;

As for setting series labels, could you provide a screenshot to show your desired effect? Thanks in advance.

Best Regards,
Herman
E-iceblue support team
User avatar

Herman.Yan
 
Posts: 115
Joined: Wed Mar 08, 2023 2:00 am

Wed Apr 19, 2023 4:02 pm

We don't want to hide the axis by using the `chart.PrimaryCategoryAxis.IsVisible` property, we can't modify any of the chart properties, we simply want to add a empty string to the cell. It's possible to do this in PowerPoint.

empty category label.png

boosted_d16
 
Posts: 34
Joined: Wed Apr 19, 2023 11:41 am

Thu Apr 20, 2023 8:15 am

Hi,

Thanks for your feedback.
I did notice that the chart didn't update accordingly after setting " chart.ChartData[1, 0].Text = """. I have logged this issue into our tracking system with the ticket SPIREPPT-2243, our Dev team will do further investigation and fixing. Once there is any update, we will keep you informed. Sorry for the inconvenience caused.

Best Regards,
Herman
E-iceblue support team
User avatar

Herman.Yan
 
Posts: 115
Joined: Wed Mar 08, 2023 2:00 am

Tue Jun 06, 2023 9:43 am

Hello,

Thanks for your patience.
Glad to inform that we just released Spire.Presentation Pack Hotfix Version:8.6.0 which fixed the issue of SPIREPPT-2243, please download it from the following links to test.
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.Presentation/8.6.0

And starting from this version, the code for applying the license key has been changed to
Code: Select all
//Spire.Presentation version 8.6.0 above
Spire.Presentation.License.LicenseProvider.SetLicenseKey("your license key");

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1271
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.Presentation