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

Function setupGraphInfo

test/jasmine/tests/modebar_test.js:855–861  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

853
854 // gives 11 buttons in 5 groups by default
855 function setupGraphInfo() {
856 var gd = getMockGraphInfo(['x'], ['y']);
857 gd._fullLayout._basePlotModules = [{ name: 'cartesian' }];
858 gd._fullLayout.xaxis = {fixedrange: false};
859 gd._fullData = [{type: 'scatter'}];
860 return gd;
861 }
862
863 it('updates mode bar buttons if plot type changes', function() {
864 var gd = setupGraphInfo();

Callers 1

modebar_test.jsFile · 0.85

Calls 1

getMockGraphInfoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…