Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

borderSkipped "middle" option does not work well with empty datasets

Open zawodskoj opened this issue 2 years ago • 2 comments

Expected behavior

Bottom borders should have a radius when using borderSkipped: "middle" even if there's no dataset below (or the dataset is empty)

Current behavior

image Bottom border was drawn without radius

Reproducible sample

https://codesandbox.io/s/eloquent-sammet-xix55o?file=/App.tsx

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

v3.7.1

Browser name and version

No response

Link to your project

No response

zawodskoj avatar Mar 18 '22 12:03 zawodskoj

What should this do if there's only a single dataset? Right now borderSkipped: 'middle' hides the border as well

etimberg avatar Apr 03 '22 20:04 etimberg

I think this should show the border radius regardless of the number of datasets

zawodskoj avatar Apr 10 '22 21:04 zawodskoj