Hi Xialong,
You can place the chart inside a scrollable panel and resize the chart inside using the following code:
nChartControl1.Panels.Clear();
nChartControl1.BackgroundStyle.FrameStyle.Visible = false;
NLegend legend = new NLegend();
legend.UseAutomaticSize = true;
nChartControl1.Panels.Add(legend);
legend.Mode = LegendMode.Manual;
legend.Location = new Nevron.GraphicsCore.NPointL(0, 0);
for (int i = 0; i < 10; i++)
{
NLegendItemCellData licd = new NLegendItemCellData();
licd.Text = "Legend Item " + i.ToString();
legend.Data.Items.Add(licd);
}
nChartControl1.Document.Calculate();
nChartControl1.Document.RecalcLayout(nChartControl1.View.Context);
nChartControl1.Width = (int)legend.ContentArea.Width;
nChartControl1.Height = (int)legend.ContentArea.Height;
Hope this helps - let us know if you meet any problems.
Best Regards,
Nevron Support Team