Thanks for your help!
- I've tried even the simplest of examples using arrays but no matter which charting approach I choose, same thing. Tables draw. Charts don't. I tried Google and chart.js. I'd like to see it working with Chart.js.
- this is a link to the slightly modified Export example. I am just trying to get it to function predictably before I integrate further so I need the download to draw the chart: https://proteamedge.com/wp-content/themes/memberlite-child-master/kr/pte/reports/client_1/sakila_rental/
- I used composer to install the full PRO version
- I installed phantomjs using these instructions and verified that it is running: https://www.vultr.com/docs/how-to-install-phantomjs-on-ubuntu-16-04
- I added a simlink to phantomjs in the specified directory to make sure it was there per your instructions: sudo ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /var/www/html/proteamedge/public/wp-content/themes/memberlite-child-master/vendor/koolreport/export/bin
- I'm not sure how to debug this so need your help. Thanks!
Here is my pdf.view:
<?php
use \koolreport\widgets\koolphp\Table;
use \koolreport\widgets\google\ColumnChart;
?>
<html>
<body style="margin:0.5in 1in 0.5in 1in">
<link rel="stylesheet" href="https://proteamedge.com/wp-content/themes/memberlite-child-master/kr/pte/assets/bs3/bootstrap.min.css" />
<link rel="stylesheet" href="https://proteamedge.com/wp-content/themes/memberlite-child-master/kr/pte/assets/bs3/bootstrap-theme.min.css" />
<div class="page-header" style="text-align:right"><i>Sakila Rental Report</i></div>
<div class="page-footer" style="text-align:right">{pageNum}</div>
<div class="text-center">
<h1>Cash In Report Yo</h1>
<h4>This report show the cash-in report per month</h4>
</div>
<hr/>
<?php
ColumnChart::create(array(
"dataStore"=>$this->dataStore('sale_by_month'),
"columns"=>array(
"payment_date"=>array(
"label"=>"Month",
"type"=>"datetime",
"format"=>"Y-n",
"displayFormat"=>"F, Y",
),
"amount"=>array(
"label"=>"Amount",
"type"=>"number",
"prefix"=>"$",
)
),
"width"=>"100%",
));
?>
<?php
Table::create(array(
"dataStore"=>$this->dataStore('sale_by_month'),
"columns"=>array(
"payment_date"=>array(
"label"=>"Month",
"type"=>"datetime",
"format"=>"Y-n",
"displayFormat"=>"F, Y",
),
"amount"=>array(
"label"=>"Amount",
"type"=>"number",
"prefix"=>"$",
)
),
"cssClass"=>array(
"table"=>"table table-hover table-bordered"
)
));
?>
</body>
</html>