MCPcopy
hub / github.com/plotly/plotly.js / makePlot

Function makePlot

test/jasmine/tests/hover_click_anywhere_test.js:9–33  ·  view source on GitHub ↗
(gd, layoutExtras = {}, configExtras)

Source from the content-addressed store, hash-verified

7var click = require('../assets/click');
8
9function makePlot(gd, layoutExtras = {}, configExtras) {
10 return Plotly.newPlot(
11 gd,
12 [
13 {
14 x: [1, 2, 3],
15 y: [1, 3, 2],
16 type: 'scatter',
17 mode: 'markers'
18 }
19 ],
20 Lib.extendFlat(
21 {
22 width: 400,
23 height: 400,
24 margin: { l: 50, t: 50, r: 50, b: 50 },
25 xaxis: { range: [0, 10] },
26 yaxis: { range: [0, 10] },
27 hovermode: 'closest'
28 },
29 layoutExtras
30 ),
31 configExtras
32 );
33}
34
35describe('hoveranywhere', () => {
36 'use strict';

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…