ChartJs.Blazor | Brings Chartjs charts to Blazor | Chart library
kandi X-RAY | ChartJs.Blazor Summary
kandi X-RAY | ChartJs.Blazor Summary
This is a Blazor library that wraps Chart.js. You can use it in both client- and server-side projects. Don't know what Blazor is? Read this.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ChartJs.Blazor
ChartJs.Blazor Key Features
ChartJs.Blazor Examples and Code Snippets
Community Discussions
Trending Discussions on ChartJs.Blazor
QUESTION
I am trying to follow this example from mariusmuntean/ChartJs.Blazor :
https://github.com/mariusmuntean/ChartJs.Blazor
The code runs but I am getting this error:
...InvalidOperationException: Object of type 'Project.Shared.Chart' does not have a property matching the name '@Config'.
ANSWER
Answered 2021-May-07 at 13:24After several trials I came to a fact that it should be written this way:
QUESTION
is it possible to reduce or even turn off the animation speed at the usage of the ChartJs.Blazor's BarChart component in Blazor? I have found this NuGet package to be very useful, but I don't see how would it be possible to turn off the animation whenever I update my BarChart. For the easier overlook, here is a simplified version that I am testing on now:
...ANSWER
Answered 2020-Mar-28 at 13:06I'm one of the co-authors of the ChartJs.Blazor library.
In order to disable the animations, you have to set the animation duration to 0 wherever possible. This is documented in the chart.js-docs performance-section.
You can already set the BarOptions.ResponsiveAnimationDuration
and the BarOptions.Hover.AnimationDuration
to 0
but currently we're missing the BarOptions.Animation
option. There is a pull request open but not merged/released yet.
I will fix this before the next nuget-release. If you need it right now, you can subclass the BarOptions
class and add the Animation
property (of type Animation
) yourself. Then use your subclass instead of the original BarOptions
and you can set YourBarOptions.Animation.Duration
to 0
as well.
If you don't manage to do that, write a comment; I can included the code you need but please try it yourself first :)
I have fixed it and released a new version. Release-1.1.0 is published and available on nuget.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ChartJs.Blazor
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page