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

Include axis orientation in dimensions information #325

Open
tdudgeon opened this issue Sep 9, 2016 · 2 comments
Open

Include axis orientation in dimensions information #325

tdudgeon opened this issue Sep 9, 2016 · 2 comments

Comments

@tdudgeon
Copy link

tdudgeon commented Sep 9, 2016

The dimensions() function nicely provides lots of information about charts axes and I'm using this to persist settings between sessions. But I find that the orientation of the axis (min to max or max to min, which is set by double clicking on the header) is not included in this information and so if any axes are inverted this info is not persisted and gets reset.

So:

  1. would it be possible to include this information in future
  2. is there a way to get this info and an event to know when it is changed?
@syntagmatic
Copy link
Owner

Whatever the flip axis code currently does, it should do this: reverse the domain of the scale on the axis. This information would be persisted as part of the scale, eliminating the need for an array of flipped or inverted axes (or an extra property on the dimension object).

@timelyportfolio
Copy link
Contributor

ref #265 (comment)

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