MCPcopy
hub / github.com/plotly/plotly.js / expFmt

Function expFmt

test/jasmine/tests/hover_label_test.js:818–825  ·  view source on GitHub ↗
(val, exp)

Source from the content-addressed store, hash-verified

816
817 it('provides exponents correctly for z data', function (done) {
818 function expFmt(val, exp) {
819 return (
820 val +
821 '×10\u200b<tspan style="font-size:70%" dy="-0.6em">' +
822 (exp < 0 ? MINUS_SIGN + -exp : exp) +
823 '</tspan><tspan dy="0.42em">\u200b</tspan>'
824 );
825 }
826 Plotly.newPlot(
827 gd,
828 [

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…