You've already forked wakapi-readme-stats
Bar graph added.
This commit is contained in:
17
node_modules/vega-statistics/src/numbers.js
generated
vendored
Normal file
17
node_modules/vega-statistics/src/numbers.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
export default function*(values, valueof) {
|
||||
if (valueof == null) {
|
||||
for (let value of values) {
|
||||
if (value != null && value !== '' && (value = +value) >= value) {
|
||||
yield value;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
let index = -1;
|
||||
for (let value of values) {
|
||||
value = valueof(value, ++index, values);
|
||||
if (value != null && value !== '' && (value = +value) >= value) {
|
||||
yield value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user