MCPcopy
hub / github.com/dc-js/dc.js / plotData

Method plotData

src/charts/bubble-chart.js:49–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 }
48
49 plotData () {
50 this.calculateRadiusDomain();
51 this.r().range([this.MIN_RADIUS, this.xAxisLength() * this.maxBubbleRelativeSize()]);
52
53 const data = this.data();
54 let bubbleG = this.chartBodyG().selectAll(`g.${this.BUBBLE_NODE_CLASS}`)
55 .data(data, d => d.key);
56 if (this.sortBubbleSize() || this.keyboardAccessible()) {
57 // update dom order based on sort
58 bubbleG.order();
59 }
60
61 this._removeNodes(bubbleG);
62
63 bubbleG = this._renderNodes(bubbleG);
64
65 this._updateNodes(bubbleG);
66
67 this.fadeDeselectedArea(this.filter());
68 }
69
70 _renderNodes (bubbleG) {
71 const bubbleGEnter = bubbleG.enter().append('g');

Callers

nothing calls this directly

Calls 15

_removeNodesMethod · 0.95
_renderNodesMethod · 0.95
_updateNodesMethod · 0.95
calculateRadiusDomainMethod · 0.80
rMethod · 0.80
xAxisLengthMethod · 0.80
maxBubbleRelativeSizeMethod · 0.80
dataMethod · 0.80
selectAllMethod · 0.80
chartBodyGMethod · 0.80
sortBubbleSizeMethod · 0.80
keyboardAccessibleMethod · 0.45

Tested by

no test coverage detected