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

Function makeAxRef

test/jasmine/assets/domain_ref_components.js:139–155  ·  view source on GitHub ↗
(axid, ref)

Source from the content-addressed store, hash-verified

137// {axid} is the axis id, e.g., x2, y, etc.
138// {ref} is ['range'|'domain'|'paper']
139function makeAxRef(axid, ref) {
140 var axref;
141 switch(ref) {
142 case 'range':
143 axref = axid;
144 break;
145 case 'domain':
146 axref = axid + ' domain';
147 break;
148 case 'paper':
149 axref = 'paper';
150 break;
151 default:
152 throw 'Bad axis type (ref): ' + ref;
153 }
154 return axref;
155}
156
157// shape, annotation and image all take x0, y0, xref, yref, color parameters
158// x0, y0 are numerical values, xref, yref are strings that could be passed to

Callers 2

testImageComboFunction · 0.85
testAnnotationComboFunction · 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…