# ASP.NET MVC Chart Wizard Overview

The Telerik UI Chart Wizard HtmlHelper for ASP.NET MVC is a server-side wrapper for the Kendo UI Chart Wizard widget.

The Chart Wizard lets you create and configure various chart visualizations by selecting different data from an external source or a particular [Grid](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/overview) 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.

* [Demo page for the Chart Wizard HtmlHelper](https://demos.telerik.com/aspnet-mvc/chartwizard)

## Initializing the Chart Wizard

The following example demonstrates how to define the Chart Wizard.

```Razor HtmlHelper
    @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);
        })
    )
```

```C# Controller
    public ActionResult Index()
    {
        var chartData = new List<Product>()
        {
            new Product { ProductID = 1, ProductName = "Calzone",  Quantity = 1 },
            new Product { ProductID = 2, ProductName = "Margarita", Quantity = 2 },
            new Product { ProductID = 3, ProductName = "Pollo Formaggio", Quantity = 5 }
        };
        return View(chartData);
    }
```

```C# Model
    public class Product
    {
        public int ProductID { get; set; }
        public string ProductName { get; set; }
        public int Quantity { get; set; }
    }
```

## Basic Configuration

The [DataSource](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/datasource/overview) 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.

```Razor HtmlHelper
    @(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>
```

```C# Controller
    public JsonResult Read([DataSourceRequest] DataSourceRequest request)
    {
        return Json(ProductsData().ToDataSourceResult(request));
    }

    private static List<Product> ProductsData()
    {
        return new List<Product>()
        {
            new Product { ProductID = 216321, ProductName = "Calzone", Quantity = 1 },
            new Product { ProductID = 546897, ProductName = "Margarita", Quantity = 2 },
            new Product { ProductID = 456231, ProductName = "Pollo Formaggio", Quantity = 1 }
        };
    }
```

```C# Model
    public class Product
    {
        public int ProductID { get; set; }
        public string ProductName { get; set; }
        public int Quantity { get; set; }
    }
```

## Functionality and Features

* [Data Binding](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/chartwizard/binding/overview)—The Chart Wizard supports local and remote data binding.
* [Export Options](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/chartwizard/export)—You can export the generated chart in different file formats.
* [Window Configuration](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/chartwizard/window-configuration)—Define the desired settings of the Window that holds the Chart Wizard.
* [Events](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/chartwizard/events)—The component emits a variety of events that allow you to implement custom functionality.
* [Accessibility](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/chartwizard/accessibility/overview)—The Chart Wizard is accessible for screen readers, supports WAI-ARIA attributes, and delivers [keyboard shortcuts](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/chartwizard/accessibility/keyboard-navigation) for faster navigation.

## Next Steps

* [Getting Started with the Chart Wizard](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/chartwizard/getting-started)
* [Basic Usage of the Chart Wizard HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/chartwizard)

## See Also

* [Using the API of the Chart Wizard for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/chartwizard/api)

* [Server-Side API of the Chart Wizard HtmlHelper](https://www.telerik.com/aspnet-mvc/documentation/api/chartwizard)

* [Client-Side API of the Chart Wizard](https://docs.telerik.com/kendo-ui/api/ui/chartwizard)
