A chart can be built entirely in code and placed on a report page at run time — no template required.

Build the chart. Create the report and page, then a StiChart with its area and series, and add it to the page:
report = new StiReport();

// Create a page and add it to the report
var page = new StiPage { /* margins, size */ };
report.Pages.Clear();
report.Pages.Add(page);

// Build the chart, its Gantt area and a series
var chart = new StiChart { EditorType = StiChartEditorType.Simple };
chart.Area = new StiGanttArea { /* axes & grid styling */ };
chart.Series.Add(new StiGanttSeries { /* values & titles */ });

// Place the chart on the page and render
page.Components.Add(chart);
report.Dictionary.Synchronize();
report.Show();

How it works. The chart object graph you build in code is identical to one designed visually, so it renders, prints and exports the same way.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.