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);
        }
Ejemplo n.º 2
0
 public void SetDataSource(ChartInfo chart)
 {
     DataSource = chart;
     CreateReport();
 }