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

Function checkCategoryCalc

test/jasmine/tests/parcats_test.js:42–52  ·  view source on GitHub ↗
(gd, dimInd, catInd, catProps)

Source from the content-addressed store, hash-verified

40}
41
42function checkCategoryCalc(gd, dimInd, catInd, catProps) {
43 /** @type {ParcatsModel} */
44 var calcdata = gd.calcdata[0][0];
45 var dimension = calcdata.dimensions[dimInd];
46 var category = dimension.categories[catInd];
47 for(var catProp in catProps) {
48 if(catProps.hasOwnProperty(catProp)) {
49 expect(category[catProp]).toEqual(catProps[catProp]);
50 }
51 }
52}
53
54function checkParcatsModelView(gd) {
55 var fullLayout = gd._fullLayout;

Callers 4

parcats_test.jsFile · 0.85
checkInitialCategoriesFunction · 0.85
checkMidDragCategoriesFunction · 0.85
checkFinalCategoriesFunction · 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…