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

Method to change stack order of elements #33

Closed
yanofsky opened this issue Mar 10, 2015 · 7 comments
Closed

Method to change stack order of elements #33

yanofsky opened this issue Mar 10, 2015 · 7 comments

Comments

@yanofsky
Copy link
Contributor

Is there a way to assign the stacking order of elements?

So far i've had to mod the source code or call a send to back routine in an afterRender function

@heavysixer
Copy link
Owner

Hi @yanofsky can you give me an example of what you are asking for?

@yanofsky
Copy link
Contributor Author

There doesn't appear to be a way to put the axis or custom defined features below the other features http://jsfiddle.net/ah6pax13/

Whereas you can place the line on top of the columns by changing their location in the mixins array this doesn't work for an axis or custom features.

I don't think there needs to be a stacking method, as long as the order of the mixins array is used as a proxy.

@heavysixer
Copy link
Owner

ok this is interesting. Let me play with this and get back to you. Thank you for providing an example for me.

@heavysixer
Copy link
Owner

Ok so i've updated your fiddle. If you apply the custom feature to the selection instead of the container then you can use the index property of the mixin feature:

http://jsfiddle.net/k226svbz/

@yanofsky
Copy link
Contributor Author

Is that supposed to work on axes as well? I can't seem to get that to work.

@heavysixer
Copy link
Owner

You are correct that it doesn't work for the feature. Let me investigate.

@heavysixer
Copy link
Owner

You should now be able to apply index values to the axes http://jsfiddle.net/qsfwx18k/

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

2 participants