]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Skip all borders if borderSkipped === true (#10530)
authorJacco van den Berg <jaccoberg2281@gmail.com>
Sat, 30 Jul 2022 12:12:53 +0000 (14:12 +0200)
committerGitHub <noreply@github.com>
Sat, 30 Jul 2022 12:12:53 +0000 (08:12 -0400)
commit1fef75d990ccdb557f19d9be5e67f217d8b5c90d
treeb2f9a6f82c168d5691e1fcbf4aaeff0c0736a1e6
parenta31e1e59d6c33883b2932b422abaabf3a2340074
Skip all borders if borderSkipped === true (#10530)

* Skip all borders if borderSkipped === true

This will allow you to skip all borders (not just one side) if you set borderSkipped to boolean true and so allow you to have a consistent legend marker even for bars without borders. Reason is that even if same colored borders are set there are artifacts that make the bar look bad and also even with inflateAmount the bars do look good when big but when only a few pixel in size they start to look bad too so this was the only way for me to make it work so legends are looking good and bars too.

* fix failing test, update docs and typings

* update typing comment

Co-authored-by: Istvan Petres <pijulius@users.noreply.github.com>
docs/charts/bar.md
src/controllers/controller.bar.js
types/index.esm.d.ts