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:
var 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 prepare the data
page.Components.Add(chart);
report.Dictionary.Synchronize();

How it works. The chart object graph you build in code is identical to one designed visually, so it renders the same in the Avalonia viewer.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.