MCPcopy Index your code
hub / github.com/plotly/plotly.js / countAnnotations

Function countAnnotations

test/jasmine/tests/annotations_test.js:205–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203 });
204
205 function countAnnotations() {
206 // also check that no annotations are empty objects
207 (gd.layout.annotations || []).forEach(function(ann, i) {
208 expect(JSON.stringify(ann)).not.toBe(JSON.stringify({}), i);
209 });
210 return d3SelectAll('g.annotation').size();
211 }
212
213 function assertText(index, expected) {
214 var query = '.annotation[data-index="' + index + '"]';

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…