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

Function initPlot

test/jasmine/tests/config_test.js:267–281  ·  view source on GitHub ↗
(editFlag)

Source from the content-addressed store, hash-verified

265 afterEach(destroyGraphDiv);
266
267 function initPlot(editFlag) {
268 var edits = {};
269 edits[editFlag] = true;
270
271 return Plotly.newPlot(gd, [
272 { x: [1, 2, 3], y: [1, 2, 3] },
273 { x: [1, 2, 3], y: [3, 2, 1] }
274 ], {
275 width: 600,
276 height: 400,
277 annotations: [
278 { text: 'testing', x: 1, y: 1, showarrow: true }
279 ]
280 }, { editable: false, edits: edits });
281 }
282
283 function checkIfEditable(elClass, text) {
284 return function() {

Callers 1

config_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…