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

Function styleTextPoints

src/traces/bar/style.js:52–59  ·  view source on GitHub ↗
(sel, trace, gd)

Source from the content-addressed store, hash-verified

50}
51
52function styleTextPoints(sel, trace, gd) {
53 sel.selectAll('text').each(function(d) {
54 var tx = d3.select(this);
55 var font = Lib.ensureUniformFontSize(gd, determineFont(tx, d, trace, gd));
56
57 Drawing.font(tx, font);
58 });
59}
60
61function styleOnSelect(gd, cd, sel) {
62 var trace = cd[0].trace;

Callers 3

styleFunction · 0.85
stylePointsFunction · 0.85
styleFunction · 0.85

Calls 1

determineFontFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…