-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Make line properties scriptable #6128
Make line properties scriptable #6128
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.
Just have one minor comment. looks good!
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.
Nice work @janelledement!
I know it's a lot of work but I would change a few things in the unit tests. I would first make sure no element (line/point) are cut by setting layout padding. Else, some tests are useless (e.g. border cap). And I would make the scriptables simpler (no reduce()
), easier to read and maintain.
Background:
This PR introduces scriptable capability to these line options:
Testing:
Wrote fixture tests for all the line options listed above.
Updated a test in plugin.filler.tests.js: 'should ignore invalid values'. (This test formerly listed functions as an ignored value for 'fill').
Documentation:
Updated the line chart documentation to acknowledge that these line options are also scriptable.
Updated the line sample to demonstrate scriptable background color.