开发者

ASP.NET Chart control keeps showing whitespace

开发者 https://www.devze.com 2022-12-26 14:00 出处:网络
I\'m using an asp.net chart control to display a pie chart, image below. http://i39.tinypic.com/ndt开发者_如何学JAVAzx1.png

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

精彩评论

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