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

[BUG] labelOffset not working for vertical axis #3

Open
Blacklotus45 opened this issue Mar 2, 2017 · 2 comments
Open

[BUG] labelOffset not working for vertical axis #3

Blacklotus45 opened this issue Mar 2, 2017 · 2 comments
Assignees

Comments

@Blacklotus45
Copy link
Owner

Blacklotus45 commented Mar 2, 2017

Expected Behavior

In the docs labelOffset is described as:

Distance in pixels to offset the label from the centre point of the tick (in the y direction for the x axis, and the x direction for the y axis).
Note: this can cause labels at the edges to be cropped by the edge of the canvas

From the docs, I expect the label to move left/right if I set a non-zero value for labelOffset of a vertical axis, and up-down for a horizontal axis.

Just from the variable name I would expect opposite behaviour:

in the y direction (up/down) for the y axis, and the x direction (right/left) for the x axis

Current Behavior

Label is moving left/right on horizontal axis and not at all on a vertical axis.

Possible Solution

  1. Adjust documentation, that it's the offset in axis direction.
  2. Add optionTicks.labelOffset to labelY in core.scale.js's draw-method.

Steps to Reproduce (for bugs)

See http://codepen.io/anon/pen/JEmaBY

Context

We tried to to accomplish labels between the tick lines in a bubble chart.
The labels of the vertical axis were rotated by 90° (text parallel to y-axis)

Environment

@cagdasgerede
Copy link

Orijinal repodaki issueya link koyar misiniz?

@cagdasgerede
Copy link

ok

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

3 participants