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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Padding within column chart and column width

Thread ID:

Created:

Updated:

Platform:

Replies:

102798 Mar 2,2012 04:08 PM UTC Mar 6,2012 06:57 AM UTC ASP.NET Web Forms (Classic) 2
loading
Tags: Chart
Richard Lythe
Asked On March 2, 2012 04:08 PM UTC

Hi

I'm trying to increase the width of columns within a column chart but having some problems.

I want to know how to decrease the white space between the walls of the inner chart area and the beginning of the chart columns themselves.

Image 1 of the attached file shows my chart with its default rendering. Image 2 shows what happens when I set the ColumnWidthMode property to "FixedWidthMode" and set the ColumnFixedWidth property to 20. The columns overlap and the first data set is appearing too far to the left.

Can anyoine assist?

Thanks.



Example_fe054628.zip

Richard Lythe
Replied On March 2, 2012 04:27 PM UTC

I forgot to say that the Chart is written in an MVC 3.0 controller.

Thanks.


Vijayabharathi K [Syncfusion]
Replied On March 6, 2012 06:57 AM UTC

Hi Richard,

Thanks for using Syncfusion products.

If your intention is to reduce the gap between column and chart area which was mentioned by you in your last updated screenshot, we suggest you to set range value to X-Axis for reduce the space. Please refer the below code snippet to achieve this,

[C#]

ChartModel.PrimaryXAxis.Range.Min = ChartModel.PrimaryXAxis.Range.Min + ChartModel.PrimaryXAxis.Range.Interval / 2;
ChartModel.PrimaryXAxis.Range.Max = ChartModel.PrimaryXAxis.Range.Max - ChartModel.PrimaryXAxis.Range.Interval / 2;

Please let us know if you have any concern.

Note:Please refer the attached screenshot for chart control.

Regards,
Vijayabharathi






ScreenShot_93a97b11.zip

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.

Warning Icon 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.Close Icon

;