Skip to content
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

'bar chart: borderSkipped not working. #3293

Closed
romanovma opened this issue Sep 12, 2016 · 7 comments
Closed

'bar chart: borderSkipped not working. #3293

romanovma opened this issue Sep 12, 2016 · 7 comments

Comments

@romanovma
Copy link

romanovma commented Sep 12, 2016

borderSkipped not working. Set it to top but top border still visible.
Please see JSBin: https://jsbin.com/xihovibego/edit?html,js,output

@etimberg
Copy link
Member

@romanovma looks like this can only be set on all elements at the moment. Work around: https://jsbin.com/muxoxodoro/1/edit?html,js,output

@romanovma
Copy link
Author

romanovma commented Sep 12, 2016

@etimberg, actually I want to show only the left border of the bar so setting borderSkipped for rectangle won't work for me as it doesn't allow to use array.
What do you mean by set on all elements? May be this can be a workaround in my case..
Many thanks.

@etimberg
Copy link
Member

I meant apply to all datasets rather than per dataset. I don't think there is a good way to only draw the left border. You might have to override Chart.elements.Rectangle.prototype.draw

@romanovma
Copy link
Author

OK, got you, thanks.

@simonbrunel
Copy link
Member

Could be a new feature: borderWidth: [0, 0, 0, 1] // trbl

bokysan added a commit to bokysan/Chart.js that referenced this issue May 16, 2017
bokysan added a commit to bokysan/Chart.js that referenced this issue May 17, 2017
@bokysan bokysan mentioned this issue May 17, 2017
@etimberg etimberg added this to the Version 2.7 milestone May 21, 2017
@simonbrunel simonbrunel modified the milestone: Version 2.7 Sep 10, 2017
@bwk123
Copy link

bwk123 commented Dec 14, 2018

I want to be able to control the four sides of the border width. I wonder if this issue will be fixed. @simonbrunel , @etimberg Any update? Thanks.

@etimberg
Copy link
Member

4 sided control of border width was added in #6077 and released in Chart.js v2.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

4 participants