|
@@ -523,7 +523,7 @@ function barChartBuilder(element, options, isTimeline) {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if ($(element).width() < 300){
|
|
|
|
|
|
|
+ if ($(element).width() < 300 && typeof _chart.showLegend != "undefined"){
|
|
|
_chart.showLegend(false);
|
|
_chart.showLegend(false);
|
|
|
}
|
|
}
|
|
|
_chart.transitionDuration(0);
|
|
_chart.transitionDuration(0);
|