public Form1() { InitializeComponent(); _chartInfo = new ChartInfo(new List <SeriesInfo> { GenerateSeries(1) }); _report = new ChartReport(); var panel = new XRDesignPanel { Dock = DockStyle.Fill }; Controls.Add(panel); panel.OpenReport(_report); _report.SetDataSource(_chartInfo); }
public void SetDataSource(ChartInfo chart) { DataSource = chart; CreateReport(); }