# Using ChartWizard State with the Chart Component

## Environment

<table>
    <tbody>
        <tr>
            <td>Product Version</td>
            <td>13.0.0</td>
        </tr>
        <tr>
            <td>Product</td>
            <td>Progress® KendoReact ChartWizard</td>
        </tr>
    </tbody>
</table>

## Description

I want to use the ChartWizard component to generate chart configurations and then display the resulting chart using the Chart component. How can I use the ChartWizard state to control the Chart?

This KB article also answers the following questions:

* How do I connect ChartWizard state to a Chart component?
* How can I use `createState` to initialize a chart configuration?
* How do I use the ChartWizard state object with Chart component props?

## Solution

The ChartWizard component generates a `ChartWizardState` object that contains all the configuration needed to render a Chart. You can use this state object to control the Chart component by spreading its properties and mapping its arrays to the appropriate Chart child components.

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/chart-wizard/use-state-with-chart/source.txt)

## See Also

* [ChartWizard Overview](https://www.telerik.com/kendo-react-ui/components/chart-wizard/)
* [ChartWizard API](https://www.telerik.com/kendo-react-ui/components/chart-wizard/api/ChartWizard/)
* [Chart Component Documentation](https://www.telerik.com/kendo-react-ui/components/charts/)
* [createState API](https://www.telerik.com/kendo-react-ui/components/chart-wizard/api/createState/)
