observablehq / observablehq/plot
The tip mark should respect the associated scale’s (local) time zone, if present
Open
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 5.4k
- Forks
- 244
- PR merge metrics
- No merged PRs in 30d
Description
when using x: { type: "time", ... } the a axis ticks are using correct local timezone, but the tip: "x" is still showing with utc timezones,
Plot.plot({
color: { legend:true },
x: { type: "time", domain: [new Date(Date.UTC(2024,3,8,-8)), new Date] },
marks: [
Plot.rectY(
dataArticlesList,
Plot.binX({y:"count", fill:"count"}, {x:"created_at", interval: d3.timeHour, tip: "x"})),
Plot.ruleY([0]),
],
width,
})
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied Plot.plot reproduction using a time x scale, d3.timeHour, and tip: "x". Compare the tip’s displayed timezone with the associated scale’s local timezone and the axis ticks; done means the tip respects that local timezone when one is present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- d3, javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100