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

Fix vertical lines for ordinal charts #696

Merged
merged 1 commit into from
Dec 3, 2014

Conversation

jcamins
Copy link
Contributor

@jcamins jcamins commented Sep 8, 2014

Charts using ordinal scales on the x axis with .renderVerticalGridLines
set did not work because ordinal scales do not have a .ticks function.
This patch checks for the existence of a .ticks function on the x scale
before trying to use it when rendering vertical lines, and if there isn't
one uses the scale's domain.

Charts using ordinal scales on the x axis with .renderVerticalGridLines
set did not work because ordinal scales do not have a .ticks function.
This patch checks for the existence of a .ticks function on the x scale
before trying to use it when rendering vertical lines, and if there isn't
one uses the scale's domain.
@gordonwoodhull gordonwoodhull modified the milestone: v2.0 Sep 29, 2014
@gordonwoodhull gordonwoodhull merged commit 4e68ca8 into dc-js:master Dec 3, 2014
gordonwoodhull added a commit that referenced this pull request Dec 3, 2014
gordonwoodhull added a commit that referenced this pull request Dec 3, 2014
@gordonwoodhull
Copy link
Contributor

Thanks @jcamins!

added a simple test and merged

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.

2 participants