mariusmuntean / ChartJs.Blazor

Brings Chart.js charts to Blazor
https://www.iheartblazor.com/
MIT License
691 stars 152 forks source link

Sample code on github doesn't work with v1.1.0 #124

Closed smasonuk closed 4 years ago

smasonuk commented 4 years ago

When using the v1.1.0 on nuget, and using the example code on the main page, I get a compilation error that it cant find the class 'Chart'. This class isn't in the assembly. I believe the v.1.1.0 on nuget is probably an older version and the documentation relates to the newer version? image

Which Blazor project type is your bug related to?

client

Which charts does this bug apply to?

Only tried PieChart.

To Reproduce

To get it working I have to use ChartJsPieChart instead.

Expected behavior

No compilation errors

SeppPenner commented 4 years ago

I would say in the nuget version, this is still named ChartJsPieChart. (I have looked into the binary file only quickly).

grafik

@Joelius300 can give you more information for sure :)

Joelius300 commented 4 years ago

You're both absolutely correct. Thanks for the detailed issue. This issue is a better version of #113 :)

Ps. Feel free to tell us your opinion in the linked issue. I'm not sure if it would be better to have the samples on github use the latest release.