You've already forked wakapi-readme-stats
Bar graph added.
This commit is contained in:
18
node_modules/vega-util/src/inrange.js
generated
vendored
Normal file
18
node_modules/vega-util/src/inrange.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Predicate that returns true if the value lies within the span
|
||||
* of the given range. The left and right flags control the use
|
||||
* of inclusive (true) or exclusive (false) comparisons.
|
||||
*/
|
||||
export default function(value, range, left, right) {
|
||||
var r0 = range[0], r1 = range[range.length-1], t;
|
||||
if (r0 > r1) {
|
||||
t = r0;
|
||||
r0 = r1;
|
||||
r1 = t;
|
||||
}
|
||||
left = left === undefined || left;
|
||||
right = right === undefined || right;
|
||||
|
||||
return (left ? r0 <= value : r0 < value) &&
|
||||
(right ? value <= r1 : value < r1);
|
||||
}
|
||||
Reference in New Issue
Block a user