Home > Blockchain >  Setting ChartComponent in Blazor Radzen for count of properties of each value
Setting ChartComponent in Blazor Radzen for count of properties of each value

Time:11-09

I have a

public IEnumerable<Project> Projects;

with projects having several properties, one of them being "projectStatus"

a project can have one of 5 status (open, closed, in progress, deleted, new)

I want to have a ChartComponent, that shows the amount of projects in each status.

however I don't know how to set this

                <RadzenChart>

                    <RadzenColumnSeries Data="@Projects" CategoryProperty="projectStatus" Title="Status" LineType="LineType.Dashed" ValueProperty="projectStatus.Count()">
                        <RadzenSeriesDataLabels Visible="true"/>
                    </RadzenColumnSeries>

                </RadzenChart>

I'm using as reference the documentation in Radzen Column Chart

  • Related