Prerana

Moderators
  • Content count

    204
  • Joined

  • Last visited

Posts posted by Prerana


  1. Hello,

    Thanks for sharing the details.

    We have checked this issue using the current version of edge browser, and it is working as expected i.e the issue is not getting replicated.

    As the browser version, you have shared is a very old one so its difficult to debug.

    We have also noticed that you are using an older version of FusionCharts, please upgrade to the latest version which is 3.12.2.


  2. Hello,

    FusionCharts natively can't interpret with data.
    You have to form a SQL query based on properties selected by the user and then form JSON data corresponding to FusionCharts format by using the data fetched and then pass it to FusionCharts.

    Please refer the sample given here: https://github.com/sikrigagan/FusionCharts-Samples/tree/master/PHP

    You can also refer the sample fiddle given here to know more about the JSON format. :http://jsfiddle.net/fusioncharts/y3H2G/
    Hope this will help.


  3. Hello,

    To render chart using FusionCharts, a browser is needed.

    You can render the chart using a browser and then you can export the chart into the desired format. e.g. PNG, JPG, PDF, SVG, and XLS.

    You can attach the exported image to your pdf file. Attaching the exported image need to be done at your end.

     


  4. Just now, RoncalJustin said:

    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?

    Hey,

    Thanks for the response.

    You can export the chart automatically. Please refer the sample link shared below.

    https://www.dropbox.com/s/9fi4n1exu6g9o8a/sample_php_api.zip?dl=0

    But if you want to attach the chart to any document that you need to achieve at your end.


  5. On 12/4/2017 at 11:11 AM, RoncalJustin said:

    $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();

    Please refer this forum post.