-
Notifications
You must be signed in to change notification settings - Fork 187
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 multi-line tick format; improve format for custom ticks #1728
Conversation
docs/marks/axis.md
Outdated
|
||
:::plot https://observablehq.com/@observablehq/plot-datawrapper-style-date-axis | ||
```js | ||
Plot.plot({ | ||
x: {tickSpacing: 60}, |
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.
This example is a little less compelling having to customize the tick settings. (Presumably, ticks: 30
or ticks: d3.utcMonth.every(3)
would produce equivalent output?) Maybe that’s fine, but maybe there’s a dataset with a smaller domain that would produce multi-line ticks by default, resulting in a simpler example?
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.
we could do
Plot.line(sftemp, Plot.windowY(7, {x: "date", y: "high"})).plot({y: {nice: true}})
Co-authored-by: Mike Bostock <mbostock@gmail.com>
4745788
to
167a0dc
Compare
167a0dc
to
e039fe1
Compare
…ervablehq#1728) * document multi-line tick format (ref: observablehq#1718, observablehq#1725) * Update docs/marks/axis.md Co-authored-by: Mike Bostock <mbostock@gmail.com> * better formats for explicit intervals --------- Co-authored-by: Mike Bostock <mbostock@gmail.com>
(ref: #1718, #1725)