-
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
Enable scale title stroke (12092) #12130
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?
…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. |
|
@asmenezes TBH, not sure if an image based test works here. We have a way of spriting text during tests to handle browser inconsistencies so I suspect it doesn't actually exercise the stroke code |
|
@etimberg Thanks for the info. I have been thinking about this and I am not sure if I can think of any other way to test that the stroke has actually been drawn. I did consider a test similar to the many that resolve like the example below. However I don't know if that tests if the stroke color and width were actually used, or if they were just added as properties. Do you know if that sort of test is sufficient or I should find another way to do it? Thanks. |
|
@asmenezes I think that test would be sufficient here |
|
@etimberg Thanks. |
The merge-base changed after approval.
The merge-base changed after approval.
The merge-base changed after approval.
The merge-base changed after approval.
|
@asmenezes it seems like something is not working right, it automatically dismisses reviews. |
|
@LeeLenaleee should be all synced up now |
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