I have a question, I have a line report that is working ok, but its too difficult to read as is i would like an html dropdown filter provided for the "Month" or perhaps a different column NOT used in the report but contained in the dataset like "Station Name"
I also added a data table to the bottom of the chart (which is great) and would like to have one dropdown filter both the chart and the datatable. -- The search ability of the datatable is fantastic and I'm using that now already.
Whats the best way to do this?
index.php:
<?php
require_once "../koolreport/core/autoload.php"; require_once "MyReport.php";
$report = new MyReport; $report->run()->render();
MyReport.php
<?php
$mssqldriver = '{ODBC Driver 13 for SQL Server}';
class MyReport extends \koolreport\KoolReport {
function settings()
{
    return array(
        "dataSources"=>array(
            "myDB"=>array(
                "connectionString"=>"odbc:Driver=$mssqldriver;server=10.10.10.X; Database=XXX",
                "username"=>"USER",
                "password"=>"PASSWORD",
                "charset"=>"utf8"
            ),
        )
    ); 
}   
protected function setup()
{
    $this->src("myDB")->query("
		  SELECT Month, StationName, isnull(Water,0) as WaterBill, isnull(Power,0) as PowerBill, isnull(Gas,0) as GasBill FROM qryIntranet_WebApplication_Reports_StationExpenses_XTAB
      ")
    ->pipe($this->dataStore("result"));
}
} MyReport.view.php
<?php use \koolreport\widgets\google\LineChart; ?> <html>
<head>
    <title>Station Expenses</title>
</head>
<body>
	<?php
		LineChart::create([
		"dataSource"=>$this->dataStore("result"),
			"columns"=>[
			"Month"=>["type"=>"string"],
			"WaterBill"=>["type"=>"number"],
			"PowerBill"=>["type"=>"number"],
			"GasBill"=>["type"=>"number"],
		]
	]);
	?>
</body>
</html>