MCPcopy Create free account
hub / github.com/plotly/plotly.js / restyleDimension

Function restyleDimension

test/jasmine/tests/parcoords_test.js:723–730  ·  view source on GitHub ↗
(key, dimIndex, setterValue)

Source from the content-addressed store, hash-verified

721 var mockCopy = Lib.extendDeep({}, mock2);
722
723 function restyleDimension(key, dimIndex, setterValue) {
724 var value = Array.isArray(setterValue) ? setterValue[0] : setterValue;
725 return function() {
726 return Plotly.restyle(gd, 'dimensions[' + dimIndex + '].' + key, setterValue).then(function() {
727 expect(gd.data[0].dimensions[dimIndex][key]).toEqual(value, 'for dimension attribute \'' + key + '\'');
728 });
729 };
730 }
731
732 Plotly.newPlot(gd, mockCopy)
733 .then(_assertVisibleData(true, 'initial'))

Callers 1

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