-
Notifications
You must be signed in to change notification settings - Fork 96
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
Problems with isInverted when sorted in reverse order and dynamic Area #25
Comments
Good find. There are several problems going on in here.
I will have to look into this more deeply to figure out what is going on. I'll attempt to get to it this coming weekend, but no guarantees. |
Thanks for response. I wouldn't mind trying to help if I could, but I don't understand the bottomBase calculation. |
I clearly have not worked on this. With the changes slated for v0.7, I am going to switch to height-based calculations, which should help resolve the behaviors being experienced here. |
@Jackpohare This should be resolved now. Here is an example: http://jsfiddle.net/2xxLbqzL/2/ Note that if the |
This excellent d3 addon seems perfect for a need I have to do a simple pyramid. However, I need the biggest at bottom and going up in decreasing order with dynamic area such that the top is a triangle.
When I do that it seems to miscalculate areas and ends up with NaN in the path (from the calculation of bottomBase for last (now highest) data point.
I tried to understand why but could.
This is the options and the sort I add to the basic example on usage page:
var options = { bottomWidth: 0, isInverted:true, dynamicArea:true };
The text was updated successfully, but these errors were encountered: