You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, many thanks for sharing this very handy tool! However, I found the labels at different nesting levels are a bit too cozy together in an inverted chart. See image below (ignore the button please):
// set level size
- axis.groupSize(depth, tick.label.getBBox()[size]);
+ var somePadding = 0;
+ if (size === 'width') {
+ // space out a bit for inverted chart (with categories
+ // at the side) to fit nested category labels better
+ somePadding = 10;
+ }
+ axis.groupSize(depth, tick.label.getBBox()[size] + somePadding);
The rendering is better spaced (see image below). Since I suspect this is not the right fix it I'll leave it to the experts, instead of submitting a pull request. Thank you again!
First, many thanks for sharing this very handy tool! However, I found the labels at different nesting levels are a bit too cozy together in an inverted chart. See image below (ignore the button please):
http://postimg.org/image/ersnz0gc1/
With the following change:
The rendering is better spaced (see image below). Since I suspect this is not the right fix it I'll leave it to the experts, instead of submitting a pull request. Thank you again!
http://postimg.org/image/e0zxt8dyp/
The text was updated successfully, but these errors were encountered: