document multi-line tick format; improve format for custom ticks#1728
Merged
document multi-line tick format; improve format for custom ticks#1728
Conversation
mbostock
reviewed
Jun 27, 2023
docs/marks/axis.md
Outdated
| :::plot https://observablehq.com/@observablehq/plot-datawrapper-style-date-axis | ||
| ```js | ||
| Plot.plot({ | ||
| x: {tickSpacing: 60}, |
Member
There was a problem hiding this comment.
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?
Contributor
Author
There was a problem hiding this comment.
we could do
Plot.line(sftemp, Plot.windowY(7, {x: "date", y: "high"})).plot({y: {nice: true}})
mbostock
reviewed
Jun 27, 2023
Co-authored-by: Mike Bostock <[email protected]>
4745788 to
167a0dc
Compare
167a0dc to
e039fe1
Compare
mbostock
approved these changes
Jun 27, 2023
Fil
added a commit
that referenced
this pull request
Aug 21, 2023
* document multi-line tick format (ref: #1718, #1725) * Update docs/marks/axis.md Co-authored-by: Mike Bostock <[email protected]> * better formats for explicit intervals --------- Co-authored-by: Mike Bostock <[email protected]>
chaichontat
pushed a commit
to chaichontat/plot
that referenced
this pull request
Jan 14, 2024
…ervablehq#1728) * document multi-line tick format (ref: observablehq#1718, observablehq#1725) * Update docs/marks/axis.md Co-authored-by: Mike Bostock <[email protected]> * better formats for explicit intervals --------- Co-authored-by: Mike Bostock <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(ref: #1718, #1725)