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

Function getMarkerSize

test/jasmine/tests/scatter_test.js:29–33  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

27var getFillOpacity = function(node) { return Number(node.style['fill-opacity']); };
28var getColor = function(node) { return node.style.fill; };
29var getMarkerSize = function(node) {
30 // find path arc multiply by 2 to get the corresponding marker.size value
31 // (works for circles only)
32 return d3Select(node).attr('d').split('A')[1].split(',')[0] * 2;
33};
34
35describe('Test scatter', function() {
36 'use strict';

Callers 2

_assertFunction · 0.85
scatter_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…