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

Function round

src/components/drawing/symbol_defs.js:5–7  ·  view source on GitHub ↗
(x, n)

Source from the content-addressed store, hash-verified

3var parseSvgPath = require('parse-svg-path');
4var round = // require('@plotly/d3').round;
5 function(x, n) {
6 return n ? Math.round(x * (n = Math.pow(10, n))) / n : Math.round(x);
7 };
8
9/** Marker symbol definitions
10 * users can specify markers either by number or name

Callers 4

symbol_defs.jsFile · 0.70
collectExtentsFunction · 0.50
moreDatesFunction · 0.50
categoryFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…