Skip to content
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

Better one-dimensional cell defaults #347

Merged
merged 4 commits into from
May 1, 2021
Merged

Better one-dimensional cell defaults #347

merged 4 commits into from
May 1, 2021

Conversation

mbostock
Copy link
Member

Plot.cellX and Plot.cellY didn’t seem very useful (compared to Plot.cell), so how about this?

Plot.cellX(simpsons.map(d => d.imdb_rating))

Screen Shot 2021-04-30 at 3 56 42 PM

It’ll work even better when we fix #74.

@mbostock mbostock requested a review from Fil April 30, 2021 22:57
@mbostock
Copy link
Member Author

I have a similar question as to whether we should change Plot.dotX and Plot.dotY — shouldn’t they work like Plot.lineX and Plot.lineY?

@Fil
Copy link
Contributor

Fil commented May 1, 2021

I think Plot.dotX works fine to get a 1-d plot and get a sense of a simple distribution?
Capture d’écran 2021-05-01 à 05 22 26

@Fil
Copy link
Contributor

Fil commented May 1, 2021

If stroke is a channel, shouldn't fill default to undefined?

@Fil
Copy link
Contributor

Fil commented May 1, 2021

need to update README

@mbostock
Copy link
Member Author

mbostock commented May 1, 2021

Okay, I’ll leave dot as-is.

@mbostock mbostock merged commit cc8fec2 into main May 1, 2021
@mbostock mbostock deleted the mbostock/cell1 branch May 1, 2021 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hide tick labels when an ordinal x or y has a high-cardinality domain.
2 participants