Showing 5 of 14 total issues
Function draw
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw(data) {
var bound,
entering,
events,
selection,
Function config
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
config(nameOrObject, value) {
var key;
var definition;
var _Chart = this;
Avoid deeply nested control flow statements. Open
Open
if (definition.hasOwnProperty('setter')) {
definition.value = definition.setter.call(definition, nameOrObject[key]);
} else {
definition.value = nameOrObject[key];
}
Avoid deeply nested control flow statements. Open
Open
if (definition.hasOwnProperty('constrain')) {
setPercentage();
}
Avoid too many return
statements within this function. Open
Open
return this;