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

Function mockCalc

test/jasmine/tests/axes_test.js:3419–3428  ·  view source on GitHub ↗
(ax)

Source from the content-addressed store, hash-verified

3417
3418 describe('calcTicks and tickText', function() {
3419 function mockCalc(ax) {
3420 ax.tickfont = {};
3421 Axes.setConvert(ax, {separators: '.,', _extraFormat: {
3422 year: '%Y',
3423 month: '%b %Y',
3424 dayMonth: '%b %-d',
3425 dayMonthYear: '%b %-d, %Y'
3426 }});
3427 return Axes.calcTicks(ax).map(function(v) { return v.text; });
3428 }
3429
3430 function mockHoverText(ax, x) {
3431 var xCalc = (ax.d2l_noadd || ax.d2l)(x);

Callers 1

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