-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Composite chart not clipping children #1488
Comments
Took me a while to repro this - turns out it only happens if the composite chart is initialized dynamically with a I think the child charts should be referencing the clipPath URL of the parent. This works when the parent is named. The problem is in _chart.anchorName = function () {
var a = _chart.anchor();
if (a && a.id) {
return a.id;
}
if (a && a.replace) {
return a.replace('#', '');
}
return 'dc-chart' + _chart.chartID();
}; In this case anchor Would you please try this fix, in if (dc.instanceOfChart(parent)) {
_anchor = parent.anchor();
if(_anchor.children) // is _anchor a div?
_anchor = '#' + parent.anchorName();
_root = parent.root();
_isChild = true;
} else if (parent) { The idea is that, if we detect that |
Eh... I'm an idiot, I pushed the fix to #1491 (You were absolutely right btw, your small change fixed it.) |
this also tests dynamic, anonymous divs for #1488
Individual charts
The bars and the datapoints are clipped when needed.


Composite
Potential cause
Wrong

clipPath
referred.The text was updated successfully, but these errors were encountered: