开发者

ASP.NET Chart control keeps showing whitespace

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

http://i39.tinypic.com/ndt开发者_如何学JAVAzx1.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...


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜