Export Excel with pivot chart using EasyXLS library! XLS, XLSX, XLSM, XLSB file in PHP.
https://www.easyxls.com/manual/tutorials/php/create-excel-pivot-chart.html