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

Function Pn

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

Source from the content-addressed store, hash-verified

7688 }),
7689 Cn = { position: "left", ticks: { callback: rn.formatters.linear } };
7690 function Pn(t, e, n, i) {
7691 var a,
7692 r,
7693 o = t.options,
7694 s = (function (t, e, n) {
7695 var i = [
7696 n.type,
7697 void 0 === e && void 0 === n.stack ? n.index : "",
7698 n.stack,
7699 ].join(".");
7700 return void 0 === t[i] && (t[i] = { pos: [], neg: [] }), t[i];
7701 })(e, o.stacked, n),
7702 l = s.pos,
7703 u = s.neg,
7704 d = i.length;
7705 for (a = 0; a < d; ++a)
7706 (r = t._parseValue(i[a])),
7707 isNaN(r.min) ||
7708 isNaN(r.max) ||
7709 n.data[a].hidden ||
7710 ((l[a] = l[a] || 0),
7711 (u[a] = u[a] || 0),
7712 o.relativePoints
7713 ? (l[a] = 100)
7714 : r.min < 0 || r.max < 0
7715 ? (u[a] += r.min)
7716 : (l[a] += r.max));
7717 }
7718 function An(t, e, n) {
7719 var i,
7720 a,

Callers 1

chart.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected