Skip to content

The dense interval option on the area mark seems to require the y option #2328

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

Open
mbostock opened this issue May 30, 2025 · 0 comments · May be fixed by #2329
Open

The dense interval option on the area mark seems to require the y option #2328

mbostock opened this issue May 30, 2025 · 0 comments · May be fixed by #2329
Labels
bug Something isn’t working

Comments

@mbostock
Copy link
Member

mbostock commented May 30, 2025

I expect this to work:

Image

Plot.areaY(data, {x: "date", reduce: "count", interval: "day"}).plot()

After all, it works for a line:

Image

Plot.lineY(data, {x: "date", reduce: "count", interval: "day"}).plot()

Instead it seems you have to set the y option to anything:

Image

Plot.areaY(data, {x: "date", y: true, reduce: "count", interval: "day"}).plot()
@mbostock mbostock added the bug Something isn’t working label May 30, 2025
@mbostock mbostock changed the title The dense interval option on the area mark seems to require the **y** option The dense interval option on the area mark seems to require the y option May 30, 2025
Fil pushed a commit that referenced this issue Jun 6, 2025
Fixed areaY to work with dense intervals (interval + reduce) without
requiring an explicit y option, matching lineY behavior.

🤖 Generated with [Claude Code](https://claude.ai/code)

Total cost:            $5.51
Total duration (API):  23m 31.3s
Total duration (wall): 14h 30m 4.3s
Total code changes:    208 lines added, 53 lines removed
Token usage by model:
    claude-3-5-haiku:  204.7k input, 4.8k output, 0 cache read, 0 cache write
       claude-sonnet:  18.9k input, 28.4k output, 8.3m cache read, 629.5k cache write
@Fil Fil linked a pull request Jun 6, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant