This was working fine when I was maximizing the form and everything
this.chart1.ChartAreas.Add(chartArea1);
this.chart1.Dock = System.Windows.Forms.DockStyle.Fill;
How can I set a relative size for the first and second chartareas (maybe the first chart area fills 3/4s of the page and the sceondary one fills a quarter of the whole area) and ensure that the chart size changes accordingly when the form is maximized or resized?
Dim chartArea1Height As Single = 3/4 * 100 '%
Dim chartArea2Height As Single = 100 - chartArea1Height
chartArea1.Position = New ElementPosition(0, 0, 100, chartArea1Height)
chartArea2.Position = New ElementPosition(0, chartArea1Height, 100, chartArea2Height)
No comments:
Post a Comment