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

Function _calc

test/jasmine/tests/box_test.js:1221–1230  ·  view source on GitHub ↗
(attrs, layout)

Source from the content-addressed store, hash-verified

1219 var gd;
1220
1221 function _calc(attrs, layout) {
1222 gd = {
1223 data: [Lib.extendFlat({type: 'box'}, attrs)],
1224 layout: layout || {},
1225 calcdata: []
1226 };
1227 supplyAllDefaults(gd);
1228 Plots.doCalcdata(gd);
1229 return gd.calcdata[0];
1230 }
1231
1232 it('should compute q1/q3 depending on *quartilemethod*', function() {
1233 // samples from https://en.wikipedia.org/wiki/Quartile

Callers 1

box_test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…