static/js/dncp/util/smartLogSteps.js
Function makeTicksList
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeTicksList() {
tickList = [];
// Estimate max exponent and min exponent
var maxDataLog = fixAccurate(mathLog(absMax) / lnBase);
File smartLogSteps.js
has 264 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Echarts, logarithmic axis reform
*
* @author sushuang (sushuang@baidu.com),
* Ievgenii (@Ievgeny, ievgeny@zoomdata.com)
Function reformSetting
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function reformSetting() {
// Settings of log label base
logLabelBase = custOpts.logLabelBase;
if (logLabelBase == null) {
logLabelMode = 'plain';
Function makeDataMappingMethods
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeDataMappingMethods() {
// Static variables should be fixed in the scope of the methods.
var myLogPositive = logPositive;
var myLogMappingOffset = logMappingOffset;