-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Border only top of barchart #5071
Comments
You'd probably need to change the draw method on the bar objects. https://github.com/chartjs/Chart.js/blob/master/src/elements/element.rectangle.js#L56 |
@etimberg I remember a PR about that feature, but can't find it. I think we should support: borderWidth: {
top: 1,
right: 0,
bottom: 0,
left: 0
} as we do for some padding options (could be the same for |
Agreed, I remember discussing that but I don’t think it was ever implemented. We should do it though |
That would be a very nice feature to include. Thanky for your help ! |
1 similar comment
That would be a very nice feature to include. Thanky for your help ! |
This simple dirty solution also did the job:
|
Closing as solved Please ask questions on StackOverflow: https://stackoverflow.com/questions/tagged/chart.js |
Is it possible to only draw a border on the top of a barchart like in this example:
The text was updated successfully, but these errors were encountered: