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

Function financeMock

test/jasmine/tests/hover_label_test.js:1506–1533  ·  view source on GitHub ↗
(traceUpdates, layoutUpdates)

Source from the content-addressed store, hash-verified

1504 var gd;
1505
1506 function financeMock(traceUpdates, layoutUpdates) {
1507 return {
1508 data: [
1509 Lib.extendFlat(
1510 {},
1511 {
1512 type: type,
1513 x: ['2011-01-01', '2011-01-02', '2011-01-03'],
1514 open: [1, 2, 3],
1515 high: [3, 4, 5],
1516 low: [0, 1, 2],
1517 close: [0, 3, 2]
1518 },
1519 traceUpdates || {}
1520 )
1521 ],
1522 layout: Lib.extendDeep(
1523 {},
1524 {
1525 hovermode: 'x',
1526 width: 400,
1527 height: 400,
1528 margin: { l: 50, r: 50, t: 50, b: 50 }
1529 },
1530 layoutUpdates || {}
1531 )
1532 };
1533 }
1534
1535 beforeEach(function () {
1536 gd = createGraphDiv();

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…