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

chore(bug): fix vertical offset line chart issue #32

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

1egoman
Copy link
Contributor

@1egoman 1egoman commented Jun 7, 2018

If a vertical offset was defined, this would cause overlays and rules to
be offset upward by the number of pixels included in the offset. Fixed
by applying the inverse offset to all y axis values.

Before:
screen shot 2018-06-07 at 3 47 16 pm

After:
screen shot 2018-06-07 at 3 46 46 pm

If a vertical offset was defined, this would cause overlays and rules to
be offset upward by the number of pixels included in the offset. Fixed
by applying the inverse offset to all y axis values.
@1egoman 1egoman requested review from bredfield and guscost June 7, 2018 19:47
Copy link
Contributor

@guscost guscost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what "vertical offset" means in this context, will have to look into it.

@1egoman
Copy link
Contributor Author

1egoman commented Jun 14, 2018

@guscost Look for verticalBaselineOffset in https://github.com/DensityCo/charts/blob/trunk/src/charts/line-chart/README.md for a graphic.

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