-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of ChartJs.Blazor outside Razor/Blazor #78
Comments
Thanks for contacting us! This is actually something that has bugged me for a long time. It's also related to the namespace chaos that's currently in place. I think it would make sense to split it into two projects, This would also mean that we could finally simplify the namespaces in the project. I propose to use I'm not sure on the namespaces, please tell me your ideas if you have any :) This is definitely a (breaking) change worth making. However, we need to do it after #70 otherwise there'll be a lot of merge conflicts. The other PRs also play into this but they have less changes and need some work anyway. Please comment if you have anything to say :) |
Hi Joel, Thanks for taking the time for the extensive answer :-) Yes, the namespacing and naming for the Blazor components makes total sense to me! I'm just wondering, would you need the dependency on Best regards, |
That's fair. I just thought that if we move all the model classes to a different project and adjust the namespaces, we'd still have some |
I've known this for longer but I'll say it here publicly now. There's another project similar to ours specifically made for asp.net core MVC called ChartJSCore. You should check out if that meets your requirements. Once ChartJs.Blazor is fixed up (fix all the errors, add all the missing properties) and the project is split into two (probably Although I've not spoken to the people in charge, I think it would be great to merge both of these libraries to As of right now, this is just an idea. I want to make it absolutely clear that I have not spoken to either the creator of Our library is not ready yet for a consolidation like that but when the time comes, I'll make sure to reach out and try to realize this. For now, check out ChartJSCore and see if it meets your requirements better since you're working in MVC. |
Describe the feature request
For one of my projects I would love to generate ChartJS configuration in JSON-format. However, I'm not using Blazor; I would like to return the JSON data from an MVC controller. Looking at this library it does exactly what I need and 95% of the code could be used without a dependency on Microsoft.AspNetCore.Components.Web.
Which charts does this feature request apply to?
(All charts)
Describe the solution you'd like
Would it be possible to split this project into two packages - one for the Blazor-specific code and one that could be reused in various other settings?
Describe alternatives you've considered
I considered writing a library like this myself, until I found the great work you did ;-)
Additional context
The text was updated successfully, but these errors were encountered: