constructor(props) {
    super(props);
    this.state = {
      dataVisibility: {},
      showTopSeriesOnly: true,
      hoveredSeriesName: null
    };
    this.extractDataSeries = memoize(this._extractDataSeries);
  }
A component that visualizes the multiple data series. Features:
Each data series is shown as a line series
Clicking on the legend toggles the visibility of that data series
Legends are sorted by prominence (maximum value in the look ahead window)
A show all/show less button to toggle only showing the top 5 data series by value