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.

Thu Aug 05, 2021 8:48 am

Hi,

Is it possible to set the chart border color and thickness?

ChartBorder.JPG


Thanks for your feedback!

Grts,
Laurent

ltilquin
 
Posts: 14
Joined: Thu Apr 22, 2021 8:11 pm

Thu Aug 05, 2021 10:01 am

Hi,

Thanks for your inquiry.
Please refer to the code below to set the chart border color and thickness. If there is any question, please feel free to write back.
Code: Select all
            if (shape is IChart)
            {
                IChart chart = shape as IChart;
                chart.GridLine.FillType = FillFormatType.Solid;
                chart.GridLine.SolidFillColor.Color = Color.Red;
                chart.GridLine.Width = 3;
            }

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Thu Aug 05, 2021 10:39 am

Hi Annika,

Thanks for your reply.
Is it also possible to make the corners straight in stead of round?
In PowerPoint there is an option Rounded Corners.

Thanks for your feedback!

Grts,
Laurent

ltilquin
 
Posts: 14
Joined: Thu Apr 22, 2021 8:11 pm

Fri Aug 06, 2021 3:57 am

Hello,

Thank you for your feedback.
Sorry the Rounded Corners feature is not published now, I have submitted the requirment to our Dev team, once the feature is available, I will inform you.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Fri Aug 06, 2021 8:55 am

Hi Annika,

Thanks for your quick response.
I look forward to your update.

Grts,
Laurent

ltilquin
 
Posts: 14
Joined: Thu Apr 22, 2021 8:11 pm

Wed Aug 18, 2021 7:03 am

Hi Annika,

Any news about the update ?

Thanks in advance for your feedback!

Regards,
Laurent

ltilquin
 
Posts: 14
Joined: Thu Apr 22, 2021 8:11 pm

Wed Aug 18, 2021 11:48 am

Hello,

Thanks for your follow-up.
Your issue has been resolved. Once the new version is available, I will inform you immediately.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Wed Aug 18, 2021 12:00 pm

OK, thanks a lot!

Regards,
Laurent

ltilquin
 
Posts: 14
Joined: Thu Apr 22, 2021 8:11 pm

Fri Aug 20, 2021 9:08 am

Hello,

Thanks for your patience.
Glad to inform you that we just released Spire.Presentation Pack Hotfix Version:6.8.3 which implements the right-angle setting of the chart border, please download it from the following links to test on your side.
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.Presentation/6.8.4
Code: Select all
            Presentation presentation = new Presentation();
            presentation.LoadFromFile(filePath);
            IShape shape = presentation.Slides[0].Shapes[0];

            if (shape is IChart)
            {
                IChart chart = shape as IChart;
                //Set border properties
                chart.Line.FillType = FillFormatType.Solid;
                chart.Line.SolidFillColor.Color = Color.Red;
                chart.Line.Width = 3;

                //Set to a right Angle
                chart.BorderRoundedCorners = false;
            }
            //Save the document
            presentation.SaveToFile("output.pptx", FileFormat.Pptx2013);

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Fri Aug 20, 2021 9:44 am

Hi Annika,

The Rounded Corners feature works as expected!

Thank you very much for the quick response and support!

Regards,
Laurent

ltilquin
 
Posts: 14
Joined: Thu Apr 22, 2021 8:11 pm

Fri Aug 20, 2021 12:05 pm

Hello,

You're welcome.
If you have other questions about using Spire.Presentation in the future, please feel free to contact us.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.Presentation