KoolReport's Forum

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

Class 'ColumnChart' not found in DrillDown #1187

Closed Sowmya opened this topic on on Nov 28, 2019 - 1 comments

Sowmya commented on Nov 28, 2019

Dear Support team,

I am working with DrillDown. I am using "Column Chart", in my First Level. 

I added the Google chart, and Chartjs(one among two) like below in my view file....

use \koolreport\widgets\google\ColumnChart;
use \koolreport\chartjs\ColumnChart;

But it gave the error as below

Class 'ColumnChart' not found

Please very very urgently I need the solution....(I am KoolReport Pro User)

Thanks in advance

Sowmya commented on Nov 28, 2019

This solution I added for Future reference purpose

Previously for ColumnChart I putted in Double quotes, after removing of Double quotes for Column chart, it worked fine....

 DrillDown::create(array(
        "name"=> "saleDrillDown",
        "title"=>"Sale Report",
        "levels"=>array(
          array(
            "title" => "All Years",
            "content"=>function($params,$scope){
              ColumnChart::create(array(
                "dataSource"=>(
                  $this->src("invoice")->query("SELECT Year,SUM(InvValue) as invoice from MonthWiseSalesSummeriesNew group by Year")
                ),
                "columns"=>array(
                  "Year" =>array(
                    "type" => "number",
                    "label"=> "Year"
                  ),
                  "invoice"=>array(
                     "label" =>" Sale Amount",
                     "prefix"=> "₹"
                  )
                ),//columns end

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
help needed

DrillDown