Showing 207 of 537 total issues
Function ordinal
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ordinal(range) {
var index = map$1(),
domain = [],
unknown = implicit;
Function DragEvent
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function DragEvent(target, type, subject, id, active, x, y, dx, dy, dispatch) {
Function add
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function add(tree, x, y, d) {
if (isNaN(x) || isNaN(y)) return tree; // ignore invalid points
var parent,
node = tree._root,
Function circle$1
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function circle$1() {
var center = constant$12([0, 0]),
radius = constant$12(90),
precision = constant$12(6),
ring,
Function selection_data
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function selection_data(value, key) {
if (!value) {
data = new Array(this.size()), j = -1;
this.each(function(d) { data[++j] = d; });
return data;
Function arc
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
arc: function(x, y, r, a0, a1, ccw) {
x = +x, y = +y, r = +r;
var dx = r * Math.cos(a0),
dy = r * Math.sin(a0),
x0 = x + dx,
Function pie
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function pie(data) {
var i,
n = data.length,
j,
k,
Function PathContext
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PathContext(context) {
var pointRadius = 4.5;
var stream = {
point: point,
Function x$3
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function x$3(x) {
var strength = constant$6(0.1),
nodes,
strengths,
xz;
Function linePoint
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function linePoint(x, y) {
var v = visible(x, y);
if (polygon) ring.push([x, y]);
if (first) {
x__ = x, y__ = y, v__ = v;
Function token
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function token() {
if (I >= N) return EOF; // special case: end of file
if (eol) return eol = false, EOL; // special case: end of line
// special case: quotes
Function y$3
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function y$3(y) {
var strength = constant$6(0.1),
nodes,
strengths,
yz;
Function histogram
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function histogram(data) {
var i,
n = data.length,
x,
values = new Array(n);
Function interpolate$2
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function interpolate$2(a, b) {
var x0 = a[0] * radians,
y0 = a[1] * radians,
x1 = b[0] * radians,
y1 = b[1] * radians,
Function exports
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(svgContainer, getRandom) {
var width = svgContainer.attr('width');
var height = svgContainer.attr('height');
var lineFunction = d3.line()
.x(function(d) { return d.x; })
Function 2
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./index.js":5,"d3":6}],2:[function(require,module,exports){
'use strict';
var getColor = require('../helpers/colors');
module.exports = function(svg, getRandom) {
Function exports
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(svgContainer, getRandom) {
var width = svgContainer.attr('width');
var height = svgContainer.attr('height');
var lineFunction = d3.line()
.x(function(d) { return d.x; })
Function exports
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(seed, options) {
if (options && options.global === true) {
options.global = false;
Math.random = module.exports(seed, options);
options.global = true;
Function calendar
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function calendar(year, month, week, day, hour, minute, second, millisecond, format) {
Function encloseN
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function encloseN(L, B) {
var circle,
l0 = null,
l1 = L.head,
l2,