We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Is There Any Property To Increase Horizontal Space Between Legend Items

Thread ID:

Created:

Updated:

Platform:

Replies:

117653 Nov 24,2014 07:39 AM Nov 26,2014 08:19 AM Windows Forms 3
loading
Tags: Chart
Amit
Asked On November 24, 2014 07:39 AM

Hi,
 
My Company is Using syncfusion chart dll for generating chart ,but we have requirement to increase space between legends items ,we have set lots of property but nothing found to increase space.
 
Please suggest which property we can set to increase space between two legends item.
 
Please refer attached screen shot.
 
Regards
 
Amit Saxena
 
Analec Infotech Pvt Ltd
 
Gurgaon India

Attachment: SpaceRequired_e0f5df0e.zip

Jayavigneshwaran [Syncfusion]
Replied On November 25, 2014 06:15 AM

Hi,
 
My Company is Using syncfusion chart dll for generating chart ,but we have requirement to increase space between legends items ,we have set lots of property but nothing found to increase space.
 
Please suggest which property we can set to increase space between two legends item.
 
Please refer attached screen shot.
 
Regards
 
Amit Saxena
 
Analec Infotech Pvt Ltd
 
Gurgaon India

Attachment: SpaceRequired_e0f5df0e.zip

Hi Amit,

Thanks for using Syncfusion product.

We have analyzed your query with our sample.

The space between the legend items can be increased/decreased by using the below code.

[CS]

this.chartControl1.Legend.Visible = true;

this.chartControl1.Legend.Spacing = 50; // specifies the space between the legend items

 

And you can also specify the below for customizing the legend width and height

[CS]

this.chartControl1.Legend.Visible = true;

this.chartControl1.Legend.ItemsSize = new Size(30,40); // Specifies the width and height of legend item

 

Please find the chart sample in below link whose spacing between legend item is increased

http://www.syncfusion.com/downloads/support/directtrac/132165/WindowsFormsApplication10793559520.zip

 Also kindly refer the below link on customizing the legend for any assistance

http://help.syncfusion.com/ug/windows%20forms/documents/chartlegendandlegend.htm

 

Please let me know if you have any concern.

 Thanks,

Jayavigneshwaran


Amit
Replied On November 25, 2014 08:04 AM

Hi,
 
My Company is Using syncfusion chart dll for generating chart ,but we have requirement to increase space between legends items ,we have set lots of property but nothing found to increase space.
 
Please suggest which property we can set to increase space between two legends item.
 
Please refer attached screen shot.
 
Regards
 
Amit Saxena
 
Analec Infotech Pvt Ltd
 
Gurgaon India

Attachment: SpaceRequired_e0f5df0e.zip

Hi Amit,

Thanks for using Syncfusion product.

We have analyzed your query with our sample.

The space between the legend items can be increased/decreased by using the below code.

[CS]

this.chartControl1.Legend.Visible = true;

this.chartControl1.Legend.Spacing = 50; // specifies the space between the legend items

 

And you can also specify the below for customizing the legend width and height

[CS]

this.chartControl1.Legend.Visible = true;

this.chartControl1.Legend.ItemsSize = new Size(30,40); // Specifies the width and height of legend item

 

Please find the chart sample in below link whose spacing between legend item is increased

http://www.syncfusion.com/downloads/support/directtrac/132165/WindowsFormsApplication10793559520.zip

 Also kindly refer the below link on customizing the legend for any assistance

http://help.syncfusion.com/ug/windows%20forms/documents/chartlegendandlegend.htm

 

Please let me know if you have any concern.

 Thanks,

Jayavigneshwaran


Hi Jayavigneshwaran ,
 
I have used same property to increase spacing between legends but when i use this my chart area size has been decreased .
 
Please suggest i do not decreased chart arae size .

 

Regards

 

Amit Saxena


Jayavigneshwaran [Syncfusion]
Replied On November 26, 2014 08:19 AM

Hi,
 
My Company is Using syncfusion chart dll for generating chart ,but we have requirement to increase space between legends items ,we have set lots of property but nothing found to increase space.
 
Please suggest which property we can set to increase space between two legends item.
 
Please refer attached screen shot.
 
Regards
 
Amit Saxena
 
Analec Infotech Pvt Ltd
 
Gurgaon India

Attachment: SpaceRequired_e0f5df0e.zip

Hi Amit,

Thanks for using Syncfusion product.

We have analyzed your query with our sample.

The space between the legend items can be increased/decreased by using the below code.

[CS]

this.chartControl1.Legend.Visible = true;

this.chartControl1.Legend.Spacing = 50; // specifies the space between the legend items

 

And you can also specify the below for customizing the legend width and height

[CS]

this.chartControl1.Legend.Visible = true;

this.chartControl1.Legend.ItemsSize = new Size(30,40); // Specifies the width and height of legend item

 

Please find the chart sample in below link whose spacing between legend item is increased

http://www.syncfusion.com/downloads/support/directtrac/132165/WindowsFormsApplication10793559520.zip

 Also kindly refer the below link on customizing the legend for any assistance

http://help.syncfusion.com/ug/windows%20forms/documents/chartlegendandlegend.htm

 

Please let me know if you have any concern.

 Thanks,

Jayavigneshwaran


Hi Jayavigneshwaran ,
 
I have used same property to increase spacing between legends but when i use this my chart area size has been decreased .
 
Please suggest i do not decreased chart arae size .

 

Regards

 

Amit Saxena


Hi Amit,

Sorry for the inconvenience caused.

Currently the behavior is when the legend spacing increased size of the chart area is decreased if it is placed on top/bottom position of chart.


This can be resolved by progressive increase in legend spacing. Now Legend.Spacing is set to 10

[CS]

this.chartControl1.Legend.Visible = true;

this.chartControl1.Legend.Spacing = 10;

 

This can be also resolved by placing the legend inside the chart area

[CS]

this.chartControl1.Legend.Visible = true;

this.chartControl1.Legend.Position = ChartDock.Top;

 this.chartControl1.LegendPlacement = ChartPlacement.Inside


Please let me know if you have any concern.

 

Thanks,

Jayavigneshwaran


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;