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
116 stars 44 forks source link

Line and Labels #44

Closed Hamsavani-J closed 1 year ago

Hamsavani-J commented 1 year ago

I have checked the line and labels chart, and I tried it but on the webpage, it shows a line with labels like 65, 59, 91, etc. But when I tried with the code you have given in linesimplelabel.razor, It doesn't show any label. I'm getting lines without labels like this:

Screenshot 2023-05-08 192108

Is the code you have given correct, does it show the lines with the label, or do have to do anything else to get the labels?

Please let me know @erossini

erossini commented 1 year ago

Did you add the script chartjs-plugin-datalabels in your index.htm?

Hamsavani-J commented 1 year ago

I didn't add that one. Sorry and Thank you so much.