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>