render()

in src/YGrid.js [34:71]


  render() {
    const {
      width,
      yScale,
      tickCount,
      lineClassName,
      lineStyle,
      spacingTop,
      spacingBottom,
      spacingLeft,
      spacingRight,
    } = this.props;
    const ticks = this.props.ticks || getScaleTicks(yScale, null, tickCount);
    const className = `rct-chart-grid-line ${lineClassName || ''}`;

    return (
      <g className="rct-chart-grid-y" aria-hidden="true">
        {ticks.map((tick, i) => {
          return (
            <YLine
              {...{
                width,
                yScale,
                className,
                spacingTop,
                spacingBottom,
                spacingLeft,
                spacingRight,
                value: tick,
                style: lineStyle,
                key: `grid-y-line-${i}`,
              }}
            />
          );
        })}
      </g>
    );
  }