We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd883a9 commit 27214a4Copy full SHA for 27214a4
src/bar-chart.js
@@ -42,6 +42,7 @@ dc.barChart = function (parent, chartGroup) {
42
43
44
_chart.type = _type;
45
+
46
dc.override(_chart, 'rescale', function () {
47
_chart._rescale();
48
_barWidth = undefined;
@@ -92,9 +93,10 @@ dc.barChart = function (parent, chartGroup) {
92
93
94
95
function getCharts() {
- if (parent instanceof Object) {
96
- if (parent.children() instanceof Array) {
97
- return parent.children().filter(function (chart) {
+ if (dc.instanceOfChart(parent) && typeof parent.children === 'function') {
+ var children = parent.children();
98
+ if (children instanceof Array) {
99
+ return children.filter(function (chart) {
100
return chart.type === _type;
101
});
102
}
0 commit comments