@namespace Connected.Components

@inherits UIComponent

<CascadingValue Value="@this" IsFixed="true">
    <div @attributes="CustomAttributes" class="@Classname" dir="ltr">
        @if (ChartType == ChartType.Donut)
        {
            <Donut InputData="@InputData" @bind-SelectedIndex="@SelectedIndex" InputLabels="@InputLabels"></Donut>
        }
        @if (ChartType == ChartType.Pie)
        {
            <Pie InputData="@InputData" @bind-SelectedIndex="@SelectedIndex" InputLabels="@InputLabels"></Pie>
        }
        @if (ChartType == ChartType.Line)
        {
            <Line ChartSeries="@ChartSeries" @bind-SelectedIndex="@SelectedIndex" XAxisLabels="@XAxisLabels"></Line>
        }
        @if (ChartType == ChartType.Bar)
        {
            <Bar ChartSeries="@ChartSeries" @bind-SelectedIndex="@SelectedIndex" XAxisLabels="@XAxisLabels"></Bar>
        }
    </div>
</CascadingValue>

