myems-admin/js/plugins/flot/curvedLines.js
Function init
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init(plot) {
plot.hooks.processOptions.push(processOptions);
//if the plugin is active register processDatapoints method
Function calculateCurvePoints
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function calculateCurvePoints(datapoints, curvedLinesOptions, yPos) {
var points = datapoints.points, ps = datapoints.pointsize;
var num = curvedLinesOptions.curvePointFactor * (points.length / ps);
Function processDatapoints
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function processDatapoints(plot, series, datapoints) {
var nrPoints = datapoints.points.length / datapoints.pointsize;
var EPSILON = 0.5; //pretty large epsilon but save
if (series.curvedLines.apply == true && series.originSeries === undefined && nrPoints > (1 + EPSILON)) {