Open anandcu3 opened 9 years ago
Hello , Even I am trying to achieve this but facing problem, one additional step which I have tried as per documentation is to set Chart Renderer using following syntax,
$rendererName = PHPExcel_Settings::CHART_RENDERER_JPGRAPH;
$rendererLibrary = 'jpgraph3.5.0b1/src';
$rendererLibraryPath = '/php/libraries/Charts/' . $rendererLibrary;
if (!PHPExcel_Settings::setChartRenderer(
$rendererName,
$rendererLibraryPath
)) {
die(
'NOTICE: Please set the $rendererName and $rendererLibraryPath values' .
EOL .
'at the top of this script as appropriate for your directory structure'
);
}
you can check file phpoffice/phpexcel/Examples/36chartreadwriteHTML.php
Let me know if that works for you!!
I am also looking to export chart into PDFs.
It doesn't work. error msg: 15:14:15 Load Test from Excel2007 file 36writeLineChart1.xlsx 15:14:15 Iterate worksheets looking at the charts Worksheet: Data chart1 - "Sales" lineChart 15:14:15 Write Tests to HTML file
Strict Standards: Non-static method JpGraphError::Install() should not be called statically in /usr/share/jpgraph/jpgraph.php on line 243
Fatal error: Call to undefined method Legend::SetPos() in /home/liuyang/tars/PHPExcel/Classes/PHPExcel/Chart/Renderer/jpgraph.php on line 189
Any suggestion?
I have used phpexcel to create a chart and download the xlsx file containing the chart. I want to however display the chart . How can I do this? Is this possible?
This displays only the table data but not the chart. How do I display the chart also?