mariusmuntean / ChartJs.Blazor

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

Chart does not show #20

Closed martinmichaelsen closed 4 years ago

martinmichaelsen commented 5 years ago

Running the NugetDemo1.Demo does not show the BubblesChart. The reason for this perhaps simple complaint is that I cannot for the life of me get a simple Blazor App to display a simple ChartJS.Blazor chart. So I tried the above Demo project and it demonstrates the same problem. The large sample does work however but I cannot see why and what the difference might be. My claim is. A new Blazor app with the Nuget Pack and the edits in _ViewImports cannot display any chart.

realbronto commented 5 years ago

Had the same problem, see my PR for the solution: https://github.com/mariusmuntean/ChartJs.Blazor/pull/19

SeppPenner commented 5 years ago

If I was you, I would take a look at https://github.com/Joelius300/ChartJSBlazor. This project is maintained at least.

Joelius300 commented 4 years ago

The workaround for the client-side blazor issue described in the readme (using a ReferenceConverter variable) solves the same issue as the linker added in #19 but in a less nice way (additional unused variable(s)). I didn't understand it when I started to work on the library again but I'm almost certain now that the linker would be the better approach to solve this issue. Therefore I think we should pick this issue back up, implement it in our samples and add instructions to the readme as well as the getting-started page.

CC @mariusmuntean

Joelius300 commented 4 years ago

This issue was resolved and the linker is now in use again (was closed in #53). The solution to this issue is also described in the readme.