MCPcopy Create free account
hub / github.com/codemistic/Web-Development / vn

Function vn

chart/js/chart.js:6645–6664  ·  view source on GitHub ↗
(t, e, n, i)

Source from the content-addressed store, hash-verified

6643 return a;
6644 }
6645 function vn(t, e, n, i) {
6646 var a,
6647 r,
6648 o,
6649 s,
6650 l = ln(n, 0),
6651 u = Math.min(ln(i, t.length), t.length),
6652 d = 0;
6653 for (
6654 e = Math.ceil(e), i && (e = (a = i - n) / Math.floor(a / e)), s = l;
6655 s < 0;
6656
6657 )
6658 d++, (s = Math.round(l + d * e));
6659 for (r = Math.max(l, 0); r < u; r++)
6660 (o = t[r]),
6661 r === s
6662 ? ((o._index = r), d++, (s = Math.round(l + d * e)))
6663 : delete o.label;
6664 }
6665 z._set("scale", {
6666 display: !0,
6667 position: "left",

Callers 1

chart.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected