-
Notifications
You must be signed in to change notification settings - Fork 6
Chart not drawn on client-side blazor in .netcore 3.0 #93
Comments
Can you try on the currently newest commit 8b074d0? |
This is the workaround I found: #18 (comment). I don't know what we can do to fix this... |
Thank you for the issue. This is a known issue. Details (as much as we know currently) can be found here. Closing this for now since AFAIK the problem isn't with our library but with json.net. If this is not correct and you know how we can fix the issue, please tell us :) @SeppPenner should we include a link to the known issues page somewhere? Maybe here? Or just in the readme? |
In both, I guess? Would make the most sense. |
@MindSwipe there are no diffs from the template source file in both commits @Joelius300 I think i would put it on the usage section on the main readme.md as an observation for those who will use blazor client-side |
@Joelius300 You should keep this open just for reference (That we don't forget to document it). |
This is now documented under https://github.com/Joelius300/ChartJSBlazor/wiki/Known-issues. I will update the readme as well. |
The correction stated in the post helped me. My problem was with the Syncfusion component "Schedule". Thank you! |
Interesting that this occurs with other vendor libraries as well. I didn't yet see this with Telerik yet. |
Btw this issue was related to the linker thing I deemed unnecessary, sorry about that. Using the linker is a workaround because the client-side version strips the DLLs in order to minimize the size of the payload sent to the client. Using the linker you can prevent it from removing this constructor which is probably only accessed via reflection and therefore it thinks it can safely remove it. We'll add the workaround back in in a future version (not in this repo of course). |
Describe the bug
Chart on client-side is not rendered and the following error is shown on the browser console
Which Blazor project type is your bug related to?
Which charts does this bug apply to?
Line Chart but i had not the time to test on them all
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The chart to be drawn unto the screen
Correction found
Searching a bit I found a solution on this link JamesNK/Newtonsoft.Json#2020, it seems to be a problem with
Newtonsoft.Json
but I'm not sure if it should be corrected by themThe text was updated successfully, but these errors were encountered: