This is a migrated thread and some comments may be shown as answers.

How to reduce amount of whitespace around chart?

1 Answer 212 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
DAVE
Top achievements
Rank 1
DAVE asked on 31 Dec 2014, 08:54 PM
By default charts have a lot of white space between the chart elements (that is, the axis labels on the left and bottom and the chart edge on the top and bottom) and the outside border of the chart control.  Padding and margins are all set to 0, 0, 0, 0.  What other properties can I modify to reduce the white space?

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 05 Jan 2015, 07:53 AM
Hi David,

Thank you for contacting us.

By default the chart has 40 pixels margin, it can be changed like this:
this.radChartView1.View.Margin = new Padding(2);

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ChartView
Asked by
DAVE
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or