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

Function mockFunnelPlot

test/jasmine/tests/funnel_test.js:1587–1605  ·  view source on GitHub ↗
(dataWithoutTraceType, layout)

Source from the content-addressed store, hash-verified

1585});
1586
1587function mockFunnelPlot(dataWithoutTraceType, layout) {
1588 var traceTemplate = { type: 'funnel' };
1589
1590 var dataWithTraceType = dataWithoutTraceType.map(function(trace) {
1591 return Lib.extendFlat({}, traceTemplate, trace);
1592 });
1593
1594 var gd = {
1595 data: dataWithTraceType,
1596 layout: layout || {},
1597 calcdata: [],
1598 _context: {locale: 'en', locales: {}}
1599 };
1600
1601 supplyAllDefaults(gd);
1602 Plots.doCalcdata(gd);
1603
1604 return gd;
1605}
1606
1607function assertArrayField(calcData, prop, expectation) {
1608 var values = Lib.nestedProperty(calcData, prop).get();

Callers 1

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