Hi! I want to create a vertical column chart like this example , but I don't know how get the data from result of sql server, without coming from the array with the values (in the example mentioned above). I'm new to Koolreport, so if you can help me, I'll be grateful. I want to replace this:
$category_amount = array(
array("category"=>"Books","sale"=>32000,"cost"=>20000,"profit"=>12000),
array("category"=>"Accessories","sale"=>43000,"cost"=>36000,"profit"=>7000),
array("category"=>"Phones","sale"=>54000,"cost"=>39000,"profit"=>15000),
array("category"=>"Movies","sale"=>23000,"cost"=>18000,"profit"=>5000),
array("category"=>"Others","sale"=>12000,"cost"=>6000,"profit"=>6000),
);
By data from the sql server. In Report.php, do I have to bring in separate selects? Or can I bring both a UNION ALL? Sorry if you can't relate
Thanks for attention.