MCPcopy Index your code
hub / github.com/plotly/plotly.js / deltaValue

Function deltaValue

src/traces/indicator/plot.js:623–626  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

621 var deltaPrefix = trace.delta.prefix;
622
623 var deltaValue = function(d) {
624 var value = trace.delta.relative ? d.relativeDelta : d.delta;
625 return value;
626 };
627 var deltaFormatText = function(value, numberFmt) {
628 if(value === 0 || typeof value !== 'number' || isNaN(value)) return '-';
629 return (value > 0 ? trace.delta.increasing.symbol : trace.delta.decreasing.symbol) + deltaPrefix + numberFmt(value) + deltaSuffix;

Callers 2

drawDeltaFunction · 0.85
writeDeltaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…