erossini / BlazorChartjs

Creates beautiful charts in Blazor using Chart.js. Library for NET6, NET7 and NET8. Source code and demo available.
https://www.puresourcecode.com/dotnet/blazor/blazor-component-for-chartjs/
MIT License
120 stars 44 forks source link

Support for customising legend labels. #55

Open legendarydrew opened 1 year ago

legendarydrew commented 1 year ago

Is your feature request related to a problem? Please describe. There is no ability to customise the appearance of a chart legend's labels, as there is no corresponding property in PSC.Blazor.Components.Chartjs.Models.Common.Legend.

Describe the solution you'd like I would like the ability to customise a chart's legend labels, through the Legend plugin. (e.g. to display circles instead of boxes for datasets.) It is not possible to do this, as far as I can tell, with the current release.

Describe alternatives you've considered none

Additional context https://www.chartjs.org/docs/3.9.1/configuration/legend.html#legend-label-configuration