-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Place labels inside chart #877
Comments
That's not possible at the moment unfortunately. @CalvinFernandez I can turn this issue into a feature request if you like. |
@etpinard is this the correct place for feature requests? I wasn't sure -- If you would like I can submit a PR for this |
Yes. Absolutely.
that would be amazing. |
deleting all +1s. |
First, hi, I'm new to contributing so I wanted to run this idea by you if that's ok. I've created a basic implementation for this locally by adding a field in yaxis called ticklabelalignment which can be set to "inside" or "outside". If it is "inside" then you need to make some changes in axes.js (see image below). This is similar to what you suggested in #883 for the tickanchor. It would not cover positioning the label above or below the tick though (#1882), its only for the horizontal alignment but we could do something similar for the vertical alignment. This seems to work well with left or right y-axis and subplots. |
As I understand these changes aren't in the current version? (I'm working with 1.40, using As this is a much needed change for mobile (maximizing screen real estate utilization), I'd very much like to see this feature. Many apps use this: @etpinard There seems to be a solution (or at least partially, for horizontal alignment, which is the most important one in most use cases), which from the looks of it does not pose a high risk for conflicts, can this please be verified and merged to the master branch? |
@rms95 Yes they aren’t in the current version. I haven’t merged my change to master. You’re welcome to try out my version of it with that alignment flag though! |
I looked at the /dist/plotly.min.js file in your latest commit files, though that doesn't seem to include the new code. |
Any update on this feature?? It would be great to have label alignment on the y axis |
Closed by #5275 |
Is it possible to place labels inside chart the way they appear on the Y axis above? It seems like axis labels could support an 'inside' and 'outside' designation the same way they're implemented with ticks.
The text was updated successfully, but these errors were encountered: