You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Adjust documentation, that it's the offset in axis direction.
Add optionTicks.labelOffset to labelY in core.scale.js's draw-method.
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)
Expected Behavior
In the docs
labelOffset
is described as: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:
Current Behavior
Label is moving left/right on horizontal axis and not at all on a vertical axis.
Possible Solution
optionTicks.labelOffset
tolabelY
in core.scale.js'sdraw
-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
The text was updated successfully, but these errors were encountered: