ASP.NET chart management continues to show spaces

I am using the asp.net chart control to display a pie chart, the image below.

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

I cannot find a property (I assume there should be a property) to get rid of the spaces surrounding the graph. Does anyone know how to do this? I feel like I tried everything ...

+3
source share
1 answer

Try setting up ChartArea , for example:

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

This speaks both of the plot area and the plot plot, it will start in the upper left corner and will go 100% for the width and height.

+3
source

Source: https://habr.com/ru/post/1740154/


All Articles