KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Control the size of graphics #2577

Open Javier Gallardo opened this topic on on Feb 15, 2022 - 5 comments

Javier Gallardo commented on Feb 15, 2022

How can I change the size of the letters in the table and also the size of the graphics?

Javier Gallardo commented on Feb 17, 2022

How can I change the sizes using the following code?

Javier Gallardo commented on Feb 17, 2022
<?php
DataTables::create(array(
    "dataSource"=>$this->dataStore("orders")
))
?>
Javier Gallardo commented on Feb 17, 2022
\koolreport\d3\PieChart::create(array(
    "dataStore"=>array(
        array("category"=>"Books","sale"=>90,"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),
    ),
    "columns"=>array(
        "category",
        "cost"
    ),
    "label"=>array(
        "use"=>"ratio",
    ),
    "tooltip"=>array(
        "use"=>"value",
        "prefix"=>"$"
    )
Javier Gallardo commented on Feb 17, 2022

?????????????????

KoolReport commented on Feb 17, 2022

You do this:

\koolreport\d3\PieChart::create(array(
    "height"=>"400px",
    "width"=>"700px",
    ...
));

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None