Showing 436 of 436 total issues
Avoid deeply nested control flow statements. Open
Open
if (wrapper.added) {
renderer.buildText(wrapper);
}
Avoid deeply nested control flow statements. Open
Open
if (!hasSetSymbolSize) {
wrapper.symbolAttr(hash);
hasSetSymbolSize = true;
}
Avoid deeply nested control flow statements. Open
Open
if (path[i + 6] === path[i + 8]) {
path[i + 8] -= clockwise;
}
Avoid deeply nested control flow statements. Open
Open
if (!skipAttr) {
if (docMode8) { // IE8 setAttribute bug
element[key] = value;
} else {
attr(element, key, value);
Avoid deeply nested control flow statements. Open
Open
if (/(NaN| {2}|^$)/.test(value)) {
value = 'M 0 0';
}
Avoid deeply nested control flow statements. Open
Open
if (!tooLong || words.length === 1) { // new line needed
words = rest;
rest = [];
if (words.length) {
softLineNo++;
Avoid deeply nested control flow statements. Open
Open
if (radialReference) {
bBox = wrapper.getBBox();
cx += (radialReference[0] - bBox.x) / bBox.width - 0.5;
cy += (radialReference[1] - bBox.y) / bBox.height - 0.5;
sizex *= radialReference[2] / bBox.width;
Avoid deeply nested control flow statements. Open
Open
if (crosshairsOptions[i].dashStyle) {
attribs.dashstyle = crosshairsOptions[i].dashStyle;
}
Avoid deeply nested control flow statements. Open
Open
} else if (verticalAlign === 'bottom') {
if (!defined(margin[2])) {
chart.marginBottom = mathMax(
chart.marginBottom,
legend.legendHeight - legendY + legendMargin + spacing[2]
Avoid deeply nested control flow statements. Open
Open
for (name in attr) {
if (attr[name] === UNDEFINED) {
delete attr[name];
}
}
Function drawRect
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
drawRect: function (x, y, width, height, lineColor, fillColor) {
Avoid deeply nested control flow statements. Open
Open
} else if (!skipAttr) {
attr(element, key, value);
}
Avoid deeply nested control flow statements. Open
Open
if (path[i + 5] === path[i + 7]) {
path[i + 7] -= clockwise;
}
Avoid deeply nested control flow statements. Open
Open
if (wrapper.added) {
applyRadialGradient();
} else {
// We need to know the bounding box to get the size and position right
addEvent(wrapper, 'add', applyRadialGradient);
Avoid deeply nested control flow statements. Open
Open
if (stackMin < 0 && stackMax > 0) {
if (val < 0) {
stackRangesNeg[i] += Math.abs(val);
} else {
stackRanges[i] += val;
Avoid deeply nested control flow statements. Open
Open
if (!defined(margin[0])) {
chart.plotTop = mathMax(
chart.plotTop,
legend.legendHeight + legendY + legendMargin + spacing[0]
);
Avoid deeply nested control flow statements. Open
Open
for (i = 0; i < dataLength; i++) {
pt = data[i];
xData[i] = pt[0];
yData[i] = pt.slice(1, valueCount + 1);
}
Avoid deeply nested control flow statements. Open
Open
if (y[j] !== null) {
activeYData[activeCounter++] = y[j];
}
Avoid deeply nested control flow statements. Open
Open
while (slots[slotIndex] === null) { // make sure it is not taken
slotIndex++;
}
Avoid deeply nested control flow statements. Open
Open
if (!hasSVG && renderer.forExport) {
actualWidth = renderer.measureSpanWidth(tspan.firstChild.data, wrapper.styles);
}