Showing 149 of 317 total issues
File d3.v3.js
has 9264 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
!function() {
var d3 = {
version: "3.4.1"
};
if (!Date.now) Date.now = function() {
Function brush
has 277 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.svg.brush = function() {
var event = d3_eventDispatch(brush, "brushstart", "brush", "brushend"), x = null, y = null, xExtent = [ 0, 0 ], yExtent = [ 0, 0 ], xExtentDomain, yExtentDomain, xClamp = true, yClamp = true, resizes = d3_svg_brushResizes[0];
function brush(g) {
g.each(function() {
var g = d3.select(this).style("pointer-events", "all").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)").on("mousedown.brush", brushstart).on("touchstart.brush", brushstart);
Function zoom
has 248 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.behavior.zoom = function() {
var view = {
x: 0,
y: 0,
k: 1
Function d3_locale_timeFormat
has 213 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_locale_timeFormat(locale) {
var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_days = locale.days, locale_shortDays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths;
function d3_time_format(template) {
var n = template.length;
function format(date) {
Function force
has 207 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.layout.force = function() {
var force = {}, event = d3.dispatch("start", "tick", "end"), size = [ 1, 1 ], drag, alpha, friction = .9, linkDistance = d3_layout_forceLinkDistance, linkStrength = d3_layout_forceLinkStrength, charge = -30, chargeDistance2 = d3_layout_forceChargeDistance2, gravity = .1, theta2 = .64, nodes = [], links = [], distances, strengths, charges;
function repulse(node) {
return function(quad, x1, _, x2) {
if (quad.point !== node) {
Function AgileistaGraphs
has 202 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var AgileistaGraphs = (function(){
"use strict";
var self = this ,
Function autosize
has 148 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.autosize = function (options) {
if (!this.length) {
return this;
}
Function treemap
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.layout.treemap = function() {
var hierarchy = d3.layout.hierarchy(), round = Math.round, size = [ 1, 1 ], padding = null, pad = d3_layout_treemapPadNull, sticky = false, stickies, mode = "squarify", ratio = .5 * (1 + Math.sqrt(5));
function scale(children, k) {
var i = -1, n = children.length, child, area;
while (++i < n) {
Function d3_geo_clipExtent
has 132 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_geo_clipExtent(x0, y0, x1, y1) {
return function(listener) {
var listener_ = listener, bufferListener = d3_geo_clipBufferListener(), clipLine = d3_geom_clipLine(x0, y0, x1, y1), segments, polygon, ring;
var clip = {
point: point,
Function bounds
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.geo.bounds = function() {
var λ0, φ0, λ1, φ1, λ_, λ__, φ__, p0, dλSum, ranges, range;
var bound = {
point: point,
lineStart: lineStart,
Function axis
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.svg.axis = function() {
var scale = d3.scale.linear(), orient = d3_svg_axisDefaultOrient, innerTickSize = 6, outerTickSize = 6, tickPadding = 3, tickArguments_ = [ 10 ], tickValues = null, tickFormat_;
function axis(g) {
g.each(function() {
var g = d3.select(this);
Function chord
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.layout.chord = function() {
var chord = {}, chords, groups, matrix, n, padding = 0, sortGroups, sortSubgroups, sortChords;
function relayout() {
var subgroups = {}, groupSums = [], groupIndex = d3.range(n), subgroupIndex = [], k, x, x0, i, j;
chords = [];
Function tree
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.layout.tree = function() {
var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
function tree(d, i) {
var nodes = hierarchy.call(this, d, i), root = nodes[0];
function firstWalk(node, previousSibling) {
Function brushstart
has 106 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function brushstart() {
var target = this, eventTarget = d3.select(d3.event.target), event_ = event.of(target, arguments), g = d3.select(target), resizing = eventTarget.datum(), resizingX = !/^(n|s)$/.test(resizing) && x, resizingY = !/^(e|w)$/.test(resizing) && y, dragging = eventTarget.classed("extent"), dragRestore = d3_event_dragSuppress(), center, origin = d3.mouse(target), offset;
var w = d3.select(d3_window).on("keydown.brush", keydown).on("keyup.brush", keyup);
if (d3.event.changedTouches) {
w.on("touchmove.brush", brushmove).on("touchend.brush", brushend);
Function quadtree
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.geom.quadtree = function(points, x1, y1, x2, y2) {
var x = d3_geom_pointX, y = d3_geom_pointY, compat;
if (compat = arguments.length) {
x = d3_geom_quadtreeCompatX;
y = d3_geom_quadtreeCompatY;
Function dsv
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.dsv = function(delimiter, mimeType) {
var reFormat = new RegExp('["' + delimiter + "\n]"), delimiterCode = delimiter.charCodeAt(0);
function dsv(url, row, callback) {
if (arguments.length < 3) callback = row, row = null;
var xhr = d3_xhr(url, mimeType, row == null ? response : typedResponse(row), callback);
Function drawBurndown
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drawBurndown = function(startDate, endDate, spRemaining, spComplete, spHours) {
$('#chart').html('');
var margin = {top: 20, right: 50, bottom: 30, left: 50},
width = 900 - margin.left - margin.right,
height = 350 - margin.top - margin.bottom,
Function d3_geo_clipCircle
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_geo_clipCircle(radius) {
var cr = Math.cos(radius), smallRadius = cr > 0, notHemisphere = abs(cr) > ε, interpolate = d3_geo_circleInterpolate(radius, 6 * d3_radians);
return d3_geo_clip(visible, clipLine, interpolate, smallRadius ? [ 0, -radius ] : [ -π, radius - π ]);
function visible(λ, φ) {
return Math.cos(λ) * Math.cos(φ) > cr;
Function tree
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tree(d, i) {
var nodes = hierarchy.call(this, d, i), root = nodes[0];
function firstWalk(node, previousSibling) {
var children = node.children, layout = node._tree;
if (children && (n = children.length)) {
Function remove
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function(node) {
if (node.N) node.N.P = node.P;
if (node.P) node.P.N = node.N;
node.N = node.P = null;
var parent = node.U, sibling, left = node.L, right = node.R, next, red;