|
Group: Forum Members
Posts: 61,
Visits: 35
|
Hi,
Should have waited 5 min before my last port. Previously I been have advised that I can for the graph to recalculate itself, using that it seems to be working, it is not perfect but the best what I could do just now, so it might just do. This is the code:
private void nChartControl1_SizeChanged(object sender, EventArgs e) { nChartControl1.Document.Calculate(); nChartControl1.Document.RecalcLayout(nChartControl1.View.Context);
NPointF p = nChartControl1.Charts[0].PlotArea.LeftBottom; Console.WriteLine("Chart X: " + p.X + "Chart Y: " + p.Y); panel2.Location = new Point(Convert.ToInt32(p.X), Convert.ToInt32(p.Y)); }
Thank you for your help Daniel
|