@dfnivo/scales
Advanced tools
Comparing version 0.79.9 to 0.79.10
@@ -184,7 +184,11 @@ function _arrayLikeToArray(arr, len) { | ||
} | ||
// specific tick count | ||
if (isInteger(spec)) { | ||
return scale.ticks(spec); | ||
} | ||
return scale.ticks(parseFloat(String(spec))); | ||
} | ||
if (typeof spec === "number") { | ||
var domains = scale.domain(); | ||
var stepLength = Math.floor(domains.length / spec); | ||
return domains.filter(function(domain, index) { | ||
return index % stepLength === 0; | ||
}); | ||
} | ||
// non linear scale default | ||
@@ -191,0 +195,0 @@ return scale.domain(); |
{ | ||
"name": "@dfnivo/scales", | ||
"version": "0.79.9", | ||
"version": "0.79.10", | ||
"license": "MIT", | ||
@@ -36,3 +36,3 @@ "author": { | ||
}, | ||
"gitHead": "259e771b4a8d5824fdbe3f30c8170fcdf1ae19c0" | ||
"gitHead": "fea5c54e395b9b24d8e3fadaea114edafbc48083" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
165660
1940