-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Revise flags of rangebreak pattern #4653
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
Changes from 3 commits
84e54e4
918abca
0bf5ceb
d82db2e
c0e4104
94f8ef8
ee2d07a
8cc498e
db38ce9
5e4ad36
2d2e627
a333acb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -279,22 +279,22 @@ module.exports = { | |
pattern: { | ||
valType: 'enumerated', | ||
// TODO could add '%H:%M:%S' | ||
values: ['%w', '%H', ''], | ||
values: ['day of week', 'time of day', ''], | ||
dflt: '', | ||
role: 'info', | ||
editType: 'calc', | ||
description: [ | ||
'Determines a pattern on the time line that generates breaks.', | ||
'If *%w* - Sunday-based weekday as a decimal number [0, 6].', | ||
'If *%H* - hour (24-hour clock) as a decimal number [0, 23].', | ||
'These are the same directive as in `tickformat`, see', | ||
'https://github.com/d3/d3-time-format#locale_format', | ||
'If *day of week* - Sunday-based weekday as a decimal number [0, 6].', | ||
'If *time of day* - hour (24-hour clock) as a decimal number [0, 23].', | ||
'*day of week* and *time of day* are similar to *%w* and *%H* directives', | ||
'applied in `tickformat`, see https://github.com/d3/d3-time-format#locale_format', | ||
'for more info.', | ||
'Examples:', | ||
'- { pattern: \'%w\', bounds: [6, 0], operation: \'[]\' }', | ||
'- { pattern: \'day of week\', bounds: [6, 0] }', | ||
' breaks from Saturday to Monday (i.e. skips the weekends).', | ||
'- { pattern: \'%H\', bounds: [17, 8] }', | ||
' breaks from 5pm to 8am (i.e. skips non-work hours).' | ||
'- { pattern: \'time of day\', bounds: [16, 8] }', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems reasonable (to me) to set |
||
' breaks from 4pm to 8am (i.e. skips non-work hours).' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. from 6pm to 9am ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I reverted the |
||
].join(' ') | ||
}, | ||
|
||
|
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.
Does this PR implement the default operation?
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.
No. Those changes would be done in a separate PR.