RoncalJustin
-
Content count
5 -
Joined
-
Last visited
Posts posted by RoncalJustin
-
-
3 minutes ago, Prerana said:Hey,
Thanks for the response.
We can help you in exporting the chart and saving it at your end but the attachment part using TCPDF needs to be done at your end.
Yes yes i just need a way to export it automatically without any user promt. will that be possible? or is there a way to write the whole chart in a pdf without exporting it as PNG?
-
19 hours ago, Prerana said:Hey RonCal,
Can you please elaborate the issue you are facing?
i need to automatically attach the png exported by the Fusionchart in a PDF generated by TCPDF
-
I tried using this one base on the sample provided but why is it that when the chart was saved as an image it doesnt contain the chart?
-
$pdf->AddPage();
$fusionCharts_HTML='
<?
require_once(INCLUDE_DIR.'.'fusioncharts.php'.');
$plots = $report->getPlotData();
$ticket_projects = $report->getTicketProjects();
$project_selected = $report->getProjects();$pieData = $report->getPieChart($ticket_projects);
$jsonEncodedData = json_encode($pieData);
$columnChart = new FusionCharts("pie3d", "ncmreportsummary" , 900, 450, "chart-1", "json",$jsonEncodedData);
$columnChart->render();
?>
<div class="centered">
<div id="chart-1"><!-- Fusion Charts will render here--></div>
</div>
<?php';$html2='<div class="centered">'.$fusionCharts_HTML.'
</div>';
// output the HTML content
$pdf->writeHTML($html2, true, false, true, false, '');// reset pointer to the last page
$pdf->lastPage();
Automating Chart Export
in FusionCharts and PHP
Posted · Report reply
How about writing the actual chart on the PDF? because i saw an article saying that is not pssible.