-
Notifications
You must be signed in to change notification settings - Fork 759
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
chartjs-2.0 Hardcoded property "fill" in getDataSets #309
Comments
In my cshtml file, I added a tag named chart-fill
In the ChartJsFactory, I added the property in the scope:
In method getDataSets and getData, I added a fill parameter instead of the hardcoded value:
And finally, when calling getDataSets or getData, I add the scope property chartFill:
What do you think? |
`Fill` option can be set via Chart.js options and already default to `true`: https://github.com/nnnick/Chart.js/blob/v2.0-dev/docs/00-Getting-Started.md
Thanks. Agreed it should not be hardcoded. Looking at the 2.0 docs, it is possible to set the value via standard Chart.js options and it already defaults to https://github.com/nnnick/Chart.js/blob/v2.0-dev/docs/00-Getting-Started.md |
I removed all my modifications, updated to your last commit and set fill: false in default options of Chart.js Many thanks for your work! |
👍 |
Hi the correct link seems to be: |
The property fill is hardcoded to true in function getDataSets
Is it possible to convert this into an option?
The text was updated successfully, but these errors were encountered: