app/components/histogram/HistogramDirective.js
Function timeHistogram
has 228 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function timeHistogram($rootScope, HeatMapSourceGenerator,
searchFilter, DateTimeService, NumberService) {
var directive = {
templateUrl: 'components/histogram/histogram.tpl.html',
restrict: 'EA',
Function link
has 219 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function link(scope, element, attr) {
var HistogramBars;
var vm = scope;
vm.barId = attr.barid;
Function makeHistogram
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeHistogram(histogram) {
var barsheight = 54;
var histogrambarsWidth = 350;
var paddingBar = 8;
Function setHistogram
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setHistogram(event, dataHistogram) {
if (!dataHistogram.counts.length) {
disableSlider(true);
return;
}