_renderRightLabel()

in bindings/jupyter-modules/jupyter-ma-causal/src/components/slidebar/index.js [87:106]


  _renderRightLabel() {
    if (!this.props.renderRightLabel) {
      return null;
    }
    const {
      extent: [[, y0], [, y1]],
      rightLabel,
    } = this.props;
    const x = this._getX();
    return (
      <text
        x={x + 3}
        y={(y0 + y1) / 2}
        textAnchor="start"
        dominantBaseline="middle"
      >
        {rightLabel || d3Format('.2s')(x)}
      </text>
    );
  }