<TelerikChart><ChartSeriesItems><ChartSeriesType="ChartSeriesType.Area"Name="Product 1"Data="@series1Data"><ChartSeriesLineStyle="@ChartSeriesLineStyle.Smooth"></ChartSeriesLine></ChartSeries><ChartSeriesType="ChartSeriesType.Area"Name="Product 2"Data="@series2Data"></ChartSeries></ChartSeriesItems><ChartCategoryAxes><ChartCategoryAxisCategories="@xAxisItems"></ChartCategoryAxis></ChartCategoryAxes><ChartTitleText="Quarterly revenue per product"></ChartTitle><ChartLegendPosition="Telerik.Blazor.ChartLegendPosition.Right"></ChartLegend></TelerikChart>
@code {
public List<object> series1Data = new List<object>() { 10, 2, 7, 5 };
public List<object> series2Data = new List<object>() { 5, 12, 8, 2 };
public string[] xAxisItems = new string[] { "Q1", "Q2", "Q3", "Q4" };
}
Regards,
Marin Bratanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.