-
Notifications
You must be signed in to change notification settings - Fork 12k
Enable scale title stroke (12092) #12130
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add a test for this?
src/core/core.scale.js
Outdated
let strokeWidth = title.strokeWidth; | ||
let strokeColor = title.strokeColor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let strokeWidth = title.strokeWidth; | |
let strokeColor = title.strokeColor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change should be made
src/core/core.scale.js
Outdated
strokeColor: strokeColor, | ||
strokeWidth: strokeWidth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we only use it here it is not necesarry to put it in a separate variable.
strokeColor: strokeColor, | |
strokeWidth: strokeWidth | |
strokeColor: title.strokeColor, | |
strokeWidth: title.strokeWidth |
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 4.1.0 to 4.2.0. - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](pnpm/action-setup@v4.1.0...v4.2.0) --- updated-dependencies: - dependency-name: pnpm/action-setup dependency-version: 4.2.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…zes/Chart.js into enable-scale-title-stroke rebase
Added an image based test. Let me know if that's not the appropriate way to do it. |
Added Stroke Color and Width to Cartesian scale options, and pass them to drawTitle() so they can be used on the titles for Cartesian scales
Example: https://codepen.io/asmenezes/pen/zxrzaEx