Hi Victor,
We could not replicate the problem - the code we tested with was:
private void Form1_Load(object sender, EventArgs e)
{
nChartControl1.Panels.Clear();
for (int i = 0; i < 3; i++)
{
NDockPanel dockPanel1 = new NDockPanel();
dockPanel1.Margins = new NMarginsL(10, 10, 10, 10);
dockPanel1.PositionChildPanelsInContentBounds = true;
dockPanel1.Size = new NSizeL(new NLength(30, NRelativeUnit.ParentPercentage), new NLength(30, NRelativeUnit.ParentPercentage));
dockPanel1.Dock = DockStyle.Top;
NDockPanel dockPanel2 = new NDockPanel();
dockPanel2.Dock = DockStyle.Fill;
NLabel label = new NLabel();
label.Text = "this is my label";
label.Dock = DockStyle.Top;
dockPanel2.ChildPanels.Add(label);
NCartesianChart chart = new NCartesianChart();
chart.Dock = DockStyle.Fill;
NBarSeries bar = new NBarSeries();
bar.Values.Add(10);
bar.Values.Add(20);
bar.Values.Add(30);
chart.Series.Add(bar);
dockPanel2.ChildPanels.Add(chart);
NLegend legend = new NLegend();
dockPanel2.ChildPanels.Add(legend);
dockPanel1.ChildPanels.Add(dockPanel2);
nChartControl1.Panels.Add(dockPanel1);
chart.DisplayOnLegend = legend;
}
nChartControl1.Controller.Tools.Add(new NSelectorTool());
nChartControl1.Controller.Tools.Add(new NOffsetTool());
}
A few questions:
1. Is this layout similar / identical to the one you use
2. What is the version of the control you're currently using?
Best Regards,
Nevron Support Team