The following code shows how to synchronize the ranges of the x axes as well as how to align the charts left panels:
Synchronize the axis range:
// make axes master slave chart1.Axis(StandardAxis.PrimaryX).Slaves.Add(chart2.Axis(StandardAxis.PrimaryX)); chart2.Axis(StandardAxis.PrimaryX).Slaves.Add(chart1.Axis(StandardAxis.PrimaryX));
Align the charts:
// align the charts NSideGuideline guideline = new NSideGuideline(PanelSide.Left); guideline.Targets.Add(chart1); guideline.Targets.Add(chart2); nChartControl1.Document.RootPanel.Guidelines.Add(guideline);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.