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

Method renderYAxisAt

src/base/coordinate-grid-mixin.js:671–682  ·  view source on GitHub ↗
(axisClass, axis, position)

Source from the content-addressed store, hash-verified

669 }
670
671 renderYAxisAt (axisClass, axis, position) {
672 let axisYG = this.g().select(`g.${axisClass}`);
673 if (axisYG.empty()) {
674 axisYG = this.g().append('g')
675 .attr('class', `axis ${axisClass}`)
676 .attr('transform', `translate(${position},${this.margins().top})`);
677 }
678
679 transition(axisYG, this.transitionDuration(), this.transitionDelay())
680 .attr('transform', `translate(${position},${this.margins().top})`)
681 .call(axis);
682 }
683
684 renderYAxis () {
685 const axisPosition = this._useRightYAxis ? (this.width() - this.margins().right) : this._yAxisX();

Callers 2

renderYAxisMethod · 0.95
renderYAxisMethod · 0.80

Calls 6

gMethod · 0.95
transitionFunction · 0.90
selectMethod · 0.80
transitionDurationMethod · 0.80
transitionDelayMethod · 0.80
marginsMethod · 0.45

Tested by

no test coverage detected