render()

in src/LineChart.js [81:103]


  render() {
    const {
      data,
      xScale,
      yScale,
      x,
      y,
      curve,
      lineStyle,
      lineClassName,
    } = this.props;

    const pathStr = line()
      .curve(curve)
      .x((d, i) => xScale(getValue(x, d, i)))
      .y((d, i) => yScale(getValue(y, d, i)))(data);

    return (
      <g className={`rct-line-chart ${lineClassName}`} aria-hidden="true">
        <path className="rct-line-path" d={pathStr} style={lineStyle} />
      </g>
    );
  }