title: Apache POI add a Series name into LineChart
body: <p>I am creating a LineChart using Apache POI in Excel document. As far as I've managed to achieve is in the below image:</p>
  
  <p><img src="https://i.stack.imgur.com/v176V.png" alt="enter image description here"></p>
  
  <p>I wrote the code using examples from Apache's svn, so my current approach looks like this:</p>
  
  <pre><code>Drawing drawing = question.createDrawingPatriarch();
  ClientAnchor anchor = drawing.createAnchor(0, 0, 0, 0, 4, 8, 14, 18);
  
  Chart chart = drawing.createChart(anchor);
  ChartLegend legend = chart.getOrCreateLegend();
  legend.setPosition(LegendPosition.TOP_RIGHT);
  
  LineChartData data = chart.getChartDataFactory().createLineChartData();
  
  ChartAxis bottomAxis = chart.getChartAxisFactory().createCategoryAxis(AxisPosition.BOTTOM);
  bottomAxis.setCrosses(AxisCrosses.AUTO_ZERO);
  ValueAxis leftAxis = chart.getChartAxisFactory().createValueAxis(AxisPosition.LEFT);
  leftAxis.setCrosses(AxisCrosses.AUTO_ZERO);
  
  List&lt;ReportQuestionModel&gt; questionModels = groupModel.getQuestionModels();
  for (ReportQuestionModel questionModel : questionModels) {
  
      List&lt;ReportOptionModel&gt; optionModels = questionModel.getOptionModels();
      for (ReportOptionModel optionModel : optionModels) {
          rowNum++;
  
          XSSFRow optionRow = question.createRow(rowNum);
  
          XSSFCell optionsCell = optionRow.createCell(0);
          optionsCell.setCellValue(optionModel.getAnswerText());
  
          long count = optionModel.getCount();
          totalResponses += count;
  
          XSSFCell optionsCountCell = optionRow.createCell(1);
          optionsCountCell.setCellValue(count);
  
          XSSFCell optionsPercentageCell = optionRow.createCell(2);
          optionsPercentageCell.setCellValue(optionModel.getPercentage());
      }
  }
  
  ChartDataSource&lt;Number&gt; xs = DataSources.fromNumericCellRange(question, new CellRangeAddress(8, 8, 0, 1));
  for (int i = 9; i &lt;= rowNum; i ++) {
      ChartDataSource&lt;Number&gt; ys = DataSources.fromNumericCellRange(question, new CellRangeAddress(i, i, 0, 1));
      data.addSerie(xs, ys);
  }
  chart.plot(data, bottomAxis, leftAxis);
  </code></pre>
  
  <p>What I can't find is how to get default <code>"Series 1", "Series 2", ..., "Series n"</code> names to be taken from as my values from the columns, in this case from: "Answer options". And there doesn't seem to be any methods in the current API how to specify names of the series.</p>
  
  <p>Can anybody assist me with this, please?</p>