tags:

views:

48

answers:

1

Hi,

I'm using an asp.net chart control to display a pie chart, image below.

http://i39.tinypic.com/ndtzx1.png

I can't find the property (I assume there must be a property) to get rid of the whitespace surrounding the chart. Does anyone know how to? I feel like I've tried everything...

+1  A: 

Try adjusting the ChartArea, like this:

area.Position = New ElementPosition(0, 0, 100, 100);
area.InnerPlotPosition = New ElementPosition(0, 0, 100, 100);

This tells both the chart area and plot area it to start at the upper left and go 100% for width and height.

Nick Craver
Beautiful! Works perfectly; many thanks.
tuseau