<RadzenStack class="rz-p-0 rz-p-md-6 rz-p-lg-12">
    <RadzenCard Variant="Variant.Outlined">
        <RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" Wrap="FlexWrap.Wrap">
            <RadzenStack Gap="0.25rem">
                <RadzenText TextStyle="TextStyle.Caption">Color Scheme</RadzenText>
                <RadzenSelectBar @bind-Value="colorScheme" TValue="ColorScheme" Size="ButtonSize.Small" Change="@(() => StateHasChanged())">
                    <Items>
                        <RadzenSelectBarItem Text="Pastel" Value="ColorScheme.Pastel" />
                        <RadzenSelectBarItem Text="Palette" Value="ColorScheme.Palette" />
                        <RadzenSelectBarItem Text="Mono" Value="ColorScheme.Monochrome" />
                        <RadzenSelectBarItem Text="Divergent" Value="ColorScheme.Divergent" />
                    </Items>
                </RadzenSelectBar>
            </RadzenStack>
        </RadzenStack>
    </RadzenCard>

    <RadzenSpiderChart ColorScheme="@colorScheme" Style="width: 100%; height: 500px;">
    <RadzenSpiderSeries TItem="SkillData"
                        Data="@aliceData"
                        CategoryProperty="@nameof(SkillData.Skill)"
                        ValueProperty="@nameof(SkillData.Score)"
                        Title="Alice" />
    <RadzenSpiderSeries TItem="SkillData"
                        Data="@bobData"
                        CategoryProperty="@nameof(SkillData.Skill)"
                        ValueProperty="@nameof(SkillData.Score)"
                        Title="Bob" />
    </RadzenSpiderChart>
</RadzenStack>

@code {
    ColorScheme colorScheme = ColorScheme.Pastel;

    class SkillData
    {
        public string Skill { get; set; }
        public double Score { get; set; }
    }

    IEnumerable<SkillData> aliceData = new SkillData[]
    {
        new SkillData { Skill = "Communication", Score = 90 },
        new SkillData { Skill = "Problem Solving", Score = 85 },
        new SkillData { Skill = "Teamwork", Score = 92 },
        new SkillData { Skill = "Leadership", Score = 78 },
        new SkillData { Skill = "Creativity", Score = 88 },
    };

    IEnumerable<SkillData> bobData = new SkillData[]
    {
        new SkillData { Skill = "Communication", Score = 75 },
        new SkillData { Skill = "Problem Solving", Score = 92 },
        new SkillData { Skill = "Teamwork", Score = 80 },
        new SkillData { Skill = "Leadership", Score = 88 },
        new SkillData { Skill = "Creativity", Score = 70 },
    };
}
