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

Function setRanges

test/jasmine/tests/click_test.js:690–698  ·  view source on GitHub ↗
(mockCopy)

Source from the content-addressed store, hash-verified

688 };
689
690 function setRanges(mockCopy) {
691 mockCopy.layout.xaxis.autorange = false;
692 mockCopy.layout.xaxis.range = setRangeX.slice();
693
694 mockCopy.layout.yaxis.autorange = false;
695 mockCopy.layout.yaxis.range = setRangeY.slice();
696
697 return mockCopy;
698 }
699
700 it('when set to \'reset+autorange\' (the default) should work when \'autorange\' is on', function(done) {
701 Plotly.newPlot(gd, mockCopy.data, mockCopy.layout)

Callers 1

click_test.jsFile · 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…