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

Separate labels from domain for ordinal axis #1

Closed
botanize opened this issue Oct 24, 2016 · 0 comments
Closed

Separate labels from domain for ordinal axis #1

botanize opened this issue Oct 24, 2016 · 0 comments
Assignees

Comments

@botanize
Copy link
Owner

The d3.scales.ordinal axis will only allow each label to appear in a single location. Repeated labels are plotted to the same location instead of in the order supplied.

Solve this by separating the labels from the domain. The value passed to d3.scale.ordinal.domain will be 1:length(labels), d3.axis.tickValues gets labels.

See issue talgalili#67 on project repo

@botanize botanize self-assigned this Oct 24, 2016
botanize pushed a commit that referenced this issue Oct 26, 2016
botanize pushed a commit that referenced this issue Oct 26, 2016
botanize pushed a commit that referenced this issue Oct 26, 2016
botanize pushed a commit that referenced this issue Oct 26, 2016
botanize pushed a commit that referenced this issue Oct 26, 2016
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

No branches or pull requests

1 participant