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

BorderOffset Not working #11843

Open
amankadamciq opened this issue Jul 27, 2024 · 3 comments
Open

BorderOffset Not working #11843

amankadamciq opened this issue Jul 27, 2024 · 3 comments

Comments

@amankadamciq
Copy link

Expected behavior

The Y Axis should show a dotted line when the dash is set in the config for the Y Axis.

Current behavior

The Y Axis does not show a dotted line when the dash is set in the config for the Y Axis.

Reproducible sample

https://codepen.io/leelenaleee/pen/WNyJXEe

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

v3.9.1

Browser name and version

No response

Link to your project

No response

@LeeLenaleee
Copy link
Collaborator

Chart.js v3 is not supported anymore, also a reproducible sample is required. You have provided the default template.
Please add a reproducible sample in V4

@amankadamciq
Copy link
Author

amankadamciq commented Aug 9, 2024

@LeeLenaleee this is the updated code and its chartjs v4

var ctx = document.getElementById("myChart");
var myChart = new Chart(ctx, {
type: 'line',
data: {
labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
datasets: [{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3]
}]
},
options: {
scales: {
y: {
border: {
color: 'blue',
borderWidth: 2,
dash: [2, 2]
},
}
}
}
});

@LeeLenaleee
Copy link
Collaborator

This is currently not fixable, the dash is now used for the gridlines instead of the border.

We can only fix this in V5 by splitting it up and moving the current dash to the grid namespace where it belongs and use this dash for the border

@LeeLenaleee LeeLenaleee added this to the Version 5.0.0 milestone Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants