How to reduce gap between legends on charts?

Technical support for Presentation

Moderator: iceblue support

How to reduce gap between legends on charts?

Postby jellar » Mon Feb 20, 2017 3:47 pm

I have tried using below code but no luck.

Code: Select all
chart.ChartLegend.EntryTextProperties[0].LineSpacing = 0;
jellar
 
Posts: 7
Joined: Mon Feb 13, 2017 1:25 pm

Re: How to reduce gap between legends on charts?

Postby Betsy.jiang » Tue Feb 21, 2017 4:02 am

Dear jellar,

Thanks for your inquiry.
I am afraid that there is no direct way to set the gap between legends. But you can change it by setting the legend height or width. Please try to use following code:
Code: Select all
chart.ChartLegend.Height = 200;
chart.ChartLegend.Width = 100;

Hope this can helps. And if there is any question, please let me know and provide us more information.

Sincerely,
Betsy
E-iceblue support team
User avatar
Betsy.jiang
 
Posts: 1538
Joined: Tue Sep 06, 2016 8:30 am

Re: How to reduce gap between legends on charts?

Postby jellar » Wed Feb 22, 2017 8:53 am

Thank you Betsy.
jellar
 
Posts: 7
Joined: Mon Feb 13, 2017 1:25 pm

Re: How to reduce gap between legends on charts?

Postby Betsy.jiang » Wed Feb 22, 2017 9:06 am

Dear jellar,

Thanks for the feedback.
Please feel free to contact us any time if you need further help.

Sincerely,
Betsy
E-iceblue support team
User avatar
Betsy.jiang
 
Posts: 1538
Joined: Tue Sep 06, 2016 8:30 am


Return to Spire.Presentation

Who is online

Users browsing this forum: No registered users and 0 guests