Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
I got it working for the cards. Is it possible to get that same type of link to work for PieChart
PieChart::create(array(
"title"=>"% of total $ by risk",
"dataSource"=>$this->dataStore("titles_pie2"),
"columns"=>array("risk","total_wages"),
"options"=>array("is3D"=>true),
"forceIFrame"=>true
)
What do you mean by "call your function here"? My function is in Configure/titles_management
PieChart::create(array(
"title"=>"% of total $ by risk",
"dataSource"=>$this->dataStore("titles_pie2"),
"columns"=>array("risk","total_wages"),
"options"=>array("is3D"=>true),
"forceIFrame"=>true,
"clientEvents" => [
"select" => "function(e) {
console.log('piechart select', e);
//call your function here
}",
] ) );
PieChart::create(array(
"title"=>"% of total $ by risk",
"dataSource"=>$this->dataStore("titles_pie2"),
"columns"=>array("risk","total_wages"),
"options"=>array("is3D"=>true),
"forceIFrame"=>true,
"clientEvents" => [
"select" => "function(e) {
console.log('piechart select', e);
$this->'Configure/business_component_management'
}",
]
)
);
I am getting this error from the above code:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: MyDashboard::$business_component_management
Filename: assets/MyDashboard.view.php
Line Number: 153
Backtrace:
File: /app/assets/MyDashboard.view.php
Line: 153
Function: _error_handler
File: /app/vendor/koolreport/core/src/KoolReport.php
Line: 502
Function: include
File: /app/application/controllers/Configure.php
Line: 176
Function: render
File: /app/application/controllers/Configure.php
Line: 147
Function: report_generator_amazing
File: /app/index.php
Line: 325
Function: require_once
Backtrace:
File: /app/assets/MyDashboard.view.php
I also tried $this->business_component_management I also tried
<?php
PieChart::create(array(
"title"=>"% of total $ by risk",
"dataSource"=>$this->dataStore("titles_pie2"),
"columns"=>array("risk","total_wages"),
"options"=>array("is3D"=>true),
"forceIFrame"=>true,
"clientEvents" => [
"select" => "function(e) {
console.log('piechart select', e);
business_component_management'
}",
]
)
);
?>
But this displays a blank box where the pie chart should be. Please help! I've tried every combo I can think of.
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo