ASP.NET Core Chart Wizard Overview
The Telerik UI Chart Wizard TagHelper and HtmlHelper for ASP.NET Core are server-side wrappers for the Kendo UI Chart Wizard widget.
The Chart Wizard lets you configure the visual representation in various charts by selecting different data from an external source or a particular Grid data.
The component has a user-friendly interface that allows you to specify the chart type and its elements, such as series, axes, chart area, title, legend, and more. When you configure the desired chart, you can export it to PDF, SVG, or PNG files.
Initializing the Chart Wizard
The following example demonstrates how to define the Chart Wizard.
@model List<Product>
@(Html.Kendo().ChartWizard<Product>()
.Name("chartwizard")
.BindTo(Model)
.DataColumns(columns =>
{
columns.Add().Field(f => f.ProductName).Title("Product Name");
columns.Add().Field(f => f.Quantity);
})
)
Basic Configuration
The DataSource component offers the most versatile data binding approach. To connect the Chart Wizard to a data set retrieved from a remote endpoint, configure the DataSource
and specify the Model properties in the DataColumns
configuration.
The following example demonstrates the basic configuration of the Chart Wizard bound to remote data.
@(Html.Kendo().Button()
.Name("open-wizard")
.Icon("chart-column-clustered")
.Content("Open Chart Wizard")
.Events(ev=>ev.Click("onClick"))
)
@(Html.Kendo().ChartWizard<Product>()
.Name("chartwizard")
.DataSource(dataSource => dataSource
.Read(read => read.Action("Read", "ChartWizard"))
)
.DataColumns(columns =>
{
columns.Add().Field(f => f.ProductName).Title("Product Name");
columns.Add().Field(f => f.Quantity);
})
.Window(window => window.Visible(false))
)
<script>
function onClick() {
$("#chartwizard").data("kendoChartWizard").open();
}
<script>
Functionality and Features
- Data Binding—The Chart Wizard supports local and remote data binding.
- Export Options—You can export the generated chart in different file formats.
- Window Configuration—Define the desired settings of the Window that holds the Chart Wizard.
- Events—The component emits a variety of events that allow you to implement custom functionality.
- Accessibility—The Chart Wizard is accessible for screen readers, supports WAI-ARIA attributes, and delivers keyboard shortcuts for faster navigation.
Next Steps
-
Basic Usage of the Chart Wizard HtmlHelper for ASP.NET Core (Demo)
-
Basic Usage of the Chart Wizard TagHelper for ASP.NET Core (Demo)