jeudi 2 avril 2015

WinForms pie chart area size within chart control

I have a pie chart. The problem is that no matter how big I set the size of the chart control itself, the chartArea (the pie itself) remains the same:


enter image description here


If I try to manipulate the Postition of the chartArea like this:



chart2.ChartAreas["area2"].Position.Auto = false;
chart2.ChartAreas["area2"].Position.Y = 10;
chart2.ChartAreas["area2"].Position.Height = 60;


then I get this:


enter image description here


So the question is obviously is whether I can modify the size of the chartArea within the chart. For example it would be great to set it to 80%.


Aucun commentaire:

Enregistrer un commentaire