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

Function fig

test/jasmine/tests/scattergl_test.js:579–598  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

577 Lib.seedPseudoRandom();
578
579 function fig(num) {
580 var x = [];
581 var y = [];
582 for(var i = 0; i < num; i++) {
583 x.push(Lib.pseudoRandom());
584 y.push(Lib.pseudoRandom());
585 }
586
587 return {
588 data: [{
589 x: x, y: y,
590 mode: 'lines+markers',
591 type: 'scattergl',
592 marker: {
593 size: 20,
594 color: 'rgba(0,0,255,0.5)'
595 }
596 }]
597 };
598 }
599
600 var getSnap = function() {
601 return gd._fullLayout._plots.xy._scene.markerOptions[0].snap;

Callers 1

scattergl_test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected