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

Move axis title outside chart #883

Closed
markov00 opened this issue Jul 18, 2018 · 5 comments
Closed

Move axis title outside chart #883

markov00 opened this issue Jul 18, 2018 · 5 comments

Comments

@markov00
Copy link
Contributor

Currently the axis titles are drawn inside the chart like in the following example:
screen shot 2018-07-18 at 09 40 35

I don't see a way to move the axis title outside the chart like in this chart:
screen shot 2018-07-18 at 09 42 58

Is there anything I can do to move/translate the axis title outside the chart?

@mcnuttandrew
Copy link
Contributor

There's been some questions about this type of thing before #542. I've been thinking that the API for the axis title is kinda overloaded (eg there a bunch of tags to place the label in various positions), and maybe we should introduce a new component something like , which could

  • accept a percentage or tag word (bottom-middle, top-left)
  • and an orientation.
  • It would probably be html component rather than an svg, (though it could probably be pretty easily implemented as both)
  • For generality could make the label inside of the axes component use it

It would allow users to put titles on their chair in general, and just provide more options for annotations.

Thoughts?

@dooleyb1
Copy link

Would strongly welcome this change also. Any advancements on this?

@mcnuttandrew
Copy link
Contributor

I ended up implementing a ChartLabel component, I'll put out a PR for it sometime later today. It has roughly the features I described above!

@dooleyb1
Copy link

Sounds good, cheers Andrew!

@mcnuttandrew
Copy link
Contributor

Now available!! Resolving

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants