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

Function p2r

src/components/selections/helpers.js:7–16  ·  view source on GitHub ↗
(ax, v)

Source from the content-addressed store, hash-verified

5// in v3 (once log ranges are fixed),
6// we'll be able to p2r here for all axis types
7function p2r(ax, v) {
8 switch(ax.type) {
9 case 'log':
10 return ax.p2d(v);
11 case 'date':
12 return ax.p2r(v, 0, ax.calendar);
13 default:
14 return ax.p2r(v);
15 }
16}
17
18function r2p(ax, v) {
19 switch(ax.type) {

Callers 4

makeFillRangeItemsFunction · 0.85
axValueFunction · 0.85
helpers.jsFile · 0.85
createShapeObjFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected