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

Function deltaFormatText

src/traces/indicator/plot.js:627–630  ·  view source on GitHub ↗
(value, numberFmt)

Source from the content-addressed store, hash-verified

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;
630 };
631 var deltaFill = function(d) {
632 return d.delta >= 0 ? trace.delta.increasing.color : trace.delta.decreasing.color;
633 };

Callers 2

writeDeltaFunction · 0.85
drawDeltaFunction · 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…