KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.

How do I embed google gauge charts? #1184

Open sevgi opened this topic on on Nov 27, 2019 - 7 comments

sevgi commented on Nov 27, 2019

How do I embed gauge charts in the homepage? (html extension)

KoolReport commented on Nov 27, 2019

Hi Sevgi,

Could you please give me more details of how you want to embed chart? Do you have any difficulty or is there any error show? You may view our Googe Gauge Chart example.

sevgi commented on Nov 27, 2019

I need to see gauge charts on my dashboard.html page. I don't want to go to another page.

KoolReport commented on Nov 27, 2019

Our gauge chart work on php so your mainpage should have php extension: dashboard.php for example.

You can add this to your main page

    <?php
    \koolreport\widgets\google\Gauge::create(array(
        "dataSource"=>array(
            array("label"=>"Goal","value"=>80),
        ),
        "columns"=>array(
            "label",
            "value"=>array(
                "suffix"=>"%",
            )
        )
    ));
    ?>
sevgi commented on Nov 27, 2019

Fatal error: Uncaught Error: Class 'Gauge' not found in ../Smarty/libs/SmartyBC.class.php(0) : eval()'d code:2 Stack trace: #0

KoolReport commented on Nov 27, 2019

Please require the koolreport library with

require_once "path/to/koolreport/core/autoload.php";
sevgi commented on Nov 27, 2019

ı use Smarty: PHP Template Engine.atal error: Uncaught Error: Call to undefined function required() i

sevgi commented on Dec 2, 2019

dashboard.php how to export excel

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