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

stackOffsetDiverging #96

Closed
mbostock opened this issue Mar 7, 2017 · 1 comment
Closed

stackOffsetDiverging #96

mbostock opened this issue Mar 7, 2017 · 1 comment

Comments

@mbostock
Copy link
Member

mbostock commented Mar 7, 2017

A bit like the stackOffsetNegative here:

https://bl.ocks.org/mbostock/b5935342c6d21928111928401e2c8608

But I think this could be improved as follows: make two passes over the data, first dealing with any negative values, and second dealing with positive (or zero) values. Both passes are done using the passed in order, so it won’t require any specific ordering of series, and it also won’t require that series be either exclusively-negative or exclusively-positive. Instead each column is processed independently, with all negative values stacked below zero and all positive values stacked above zero. But within negative values and within positive values, the specified order is observed.

@mbostock
Copy link
Member Author

mbostock commented Mar 7, 2017

Related #95.

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