Joelius300 / ChartJSBlazor

This library is a modification of the awesome ChartJs.Blazor library by mariusmuntean. It's supposed to add more functionality to the LineChart and generally make the library more complete.
Other
40 stars 6 forks source link

Fix function defaults (onClick & generateLabels) #70

Closed Joelius300 closed 5 years ago

Joelius300 commented 5 years ago

Fixes https://github.com/Joelius300/ChartJSBlazor/issues/65

Use a function to determine what the default onClick handler should be. It tries to find a specific one for the chart-type and falls back to the global one if it doesn't. Same goes for the generateLabels function.

The updated js-file has been copied to the sample project as well since it's still linked statically at the moment.