title: Laravel Excel Trying to export with chart but no chart output
body: <p>I am trying to export laravel-excel data with chart, but no chart output   on excel. Only the array Data displayed as table data.
  <a href="https://i.stack.imgur.com/lXiG6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lXiG6.png" alt="enter image description here"></a>
  Here is my export class</p>
  
  <pre class="lang-php prettyprint-override"><code>class ReportExport implements WithEvents
  {
      use Exportable, RegistersEventListeners;
  
      public static function beforeExport(BeforeExport $event)
      {
          $event-&gt;writer-&gt;getProperties()-&gt;setCreator('Test 1');
      }
  
      public static function afterSheet(AfterSheet $event)
      {
          $event-&gt;sheet-&gt;getDelegate()-&gt;fromArray(
              [
                  ['', 2010, 2011, 2012],
                  ['Q1', 12, 15, 21],
                  ['Q2', 56, 73, 86],
                  ['Q3', 52, 61, 69],
                  ['Q4', 30, 32, 0],
              ]
          );
  
          //  Set the Labels for each data series we want to plot
          //      Datatype
          //      Cell reference for data
          //      Format Code
          //      Number of datapoints in series
          //      Data values
          //      Data Marker
          $dataSeriesLabels = [
              new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$B$1', null, 1, ['2010']), // 2010
              new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$C$1', null, 1, ['2011']), // 2011
              new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$D$1', null, 1, ['2012']), // 2012
          ];
          //  Set the X-Axis Labels
          //      Datatype
          //      Cell reference for data
          //      Format Code
          //      Number of datapoints in series
          //      Data values
          //      Data Marker
          $xAxisTickValues = [
              new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$A$2:$A$5', null, 4, ['Q1', 'Q2', 'Q3', 'Q4']), // Q1 to Q4
          ];
          //  Set the Data values for each data series we want to plot
          //      Datatype
          //      Cell reference for data
          //      Format Code
          //      Number of datapoints in series
          //      Data values
          //      Data Marker
          $dataSeriesValues = [
              new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_NUMBER, 'Worksheet!$B$2:$B$5', null, 4, [1]),
              new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_NUMBER, 'Worksheet!$C$2:$C$5', null, 4, [55]),
              new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_NUMBER, 'Worksheet!$D$2:$D$5', null, 4, [23]),
          ];
          $dataSeriesValues[2]-&gt;setLineWidth(60000);
  
          //  Build the dataseries
          $series = new DataSeries(
              DataSeries::TYPE_BARCHART, // plotType
              DataSeries::GROUPING_STACKED, // plotGrouping
              range(0, count($dataSeriesValues) - 1), // plotOrder
              $dataSeriesLabels, // plotLabel
              $xAxisTickValues, // plotCategory
              $dataSeriesValues        // plotValues
          );
  
          //  Set the series in the plot area
          $plotArea = new PlotArea(null, [$series]);
          //  Set the chart legend
          $legend = new Legend(Legend::POSITION_TOPRIGHT, null, false);
  
          $title = new Title('Test Stacked Line Chart');
          $yAxisLabel = new Title('Value ($k)');
  
          //  Create the chart
          $chart = new Chart(
              'chart1', // name
              $title, // title
              $legend, // legend
              $plotArea, // plotArea
              true, // plotVisibleOnly
              0, // displayBlanksAs
              null, // xAxisLabel
              $yAxisLabel  // yAxisLabel
          );
          //  Set the position where the chart should appear in the worksheet
          $chart-&gt;setTopLeftPosition('A7');
          $chart-&gt;setBottomRightPosition('H20');
  
          // dd($event-&gt;sheet-&gt;getDelegate()-&gt;addChart($chart));
          //  Add the chart to the worksheet
          $event-&gt;sheet-&gt;getDelegate()-&gt;addChart($chart);
      }
  }
  </code></pre>
  
  <p>Then on my controller I downloaded it something like this</p>
  
  <pre class="lang-php prettyprint-override"><code>    public function export() 
      {
          return (new ReportExport)-&gt;download('reports.xlsx');
      }
  </code></pre>
  
  <p>Can you tell me what I am missing on my code. This code was copied and modified from this link. </p>
  
  <p>Please help I've been struggling on this one for days now.</p>
  
  <p><a href="https://github.com/PHPOffice/PhpSpreadsheet/tree/master/samples/Chart" rel="nofollow noreferrer">https://github.com/PHPOffice/PhpSpreadsheet/tree/master/samples/Chart</a></p>