-
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
Document new time options #4592
Conversation
8def8c5
to
8567242
Compare
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.
Thanks, just a few adjustments :)
docs/axes/cartesian/time.md
Outdated
| `unit` | `String` | `false` | If defined, will force the unit to be a certain type. See [Time Units](#time-units) section below for details. | ||
| `stepSize` | `Number` | `1` | The number of units between grid lines. | ||
| `minUnit` | `String` | `'millisecond'` | The minimum display format to be used for a time unit. | ||
| `scales.distribution` | `String` | `linear` | How data is plotted. Valid options are `linear` and `series`. [more...](#scale-distribution) |
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.
It's confusing to prefix root options with scale.
, it looks like scale.*
, ticks.*
and time.*
are all at the same level.
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.
I would remove Valid options are linear and series.
to keep the table shorter: it's detailed in the more
link.
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.
done
docs/axes/cartesian/time.md
Outdated
| `stepSize` | `Number` | `1` | The number of units between grid lines. | ||
| `minUnit` | `String` | `'millisecond'` | The minimum display format to be used for a time unit. | ||
| `scales.distribution` | `String` | `linear` | How data is plotted. Valid options are `linear` and `series`. [more...](#scale-distribution) | ||
| `scale.bounds` | `String` | `data` | Determines the scale bounds. Valid options are `data` and `ticks`. [more...](#scale-bounds) |
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.
I would remove Valid options are data and ticks.
, it's detailed in the more
link.
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.
done
docs/axes/cartesian/time.md
Outdated
| `minUnit` | `String` | `'millisecond'` | The minimum display format to be used for a time unit. | ||
| `scales.distribution` | `String` | `linear` | How data is plotted. Valid options are `linear` and `series`. [more...](#scale-distribution) | ||
| `scale.bounds` | `String` | `data` | Determines the scale bounds. Valid options are `data` and `ticks`. [more...](#scale-bounds) | ||
| `ticks.source` | `String` | `auto` | How ticks are generated. Valid options are `auto`, `data, and `labels`. [more...](#ticks-source) |
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.
Same
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.
done
docs/axes/cartesian/time.md
Outdated
|
||
This property controls the data distribution along the scale: | ||
|
||
* 'linear': data are spread according to their time (distances can vary) |
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.
I would format values as code:
`'linear'`
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.
done
docs/axes/cartesian/time.md
Outdated
|
||
This property controls the scale boundary strategy (bypassed by min/max time options) | ||
|
||
* `data`: make sure data are fully visible, labels outside are removed |
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.
Values are strings:
`'data'`
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.
done
0bdb8f1
to
90d2c5b
Compare
@etimberg could you give this one a look? thanks! |
This PR includes the updates introduced in #4595