_renderDots()

in bindings/jupyter-modules/jupyter-ma-causal/src/components/line-chart/index.js [223:244]


  _renderDots() {
    const {data} = this.props;
    if (!data) {
      return null;
    }
    const xScale = this._getXScale();
    const yScale = this._getYScale();

    return (
      <g>
        {data.map((d, i) => (
          <circle
            key={i}
            cx={xScale(d.x)}
            cy={yScale(d.y)}
            r={3}
            fill="#3399ff"
          />
        ))}
      </g>
    );
  }