KoolReport's Forum

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

MultiView with column disabled #971

Closed SOFMAN opened this topic on on Jul 4 - 5 comments

SOFMAN commented on Jul 4

I have the following graph where it shows me 'TOTAL NETO' and 'IVA' stacked. My question is: when I load the page initially I can leave 'IVA' disabled by default, as shown in the attached image.

KoolReport commented on Jul 6

I think it could be possible by using event of chartjs. I will need to consult dev.team and give you answer next week.

SOFMAN commented on Jul 23

When can you help me solve this problem?

SOFMAN commented on Aug 2

Please I need help, they told me a week and it's almost a month. If you can please answer the forum. Thank you.

KoolReport commented on Aug 5

Sorry for my late reply, please try this to see how.

            ...
            "widget"=>array(BarChart::class,array(
                    "onReady"=>"function(mychart){
                        mychart.getDatasetMeta(1).hidden=true;
                        mychart.update();
                    }"
            ))
SOFMAN commented on Aug 7

I cannot apply the code, the following error is displayed "mychart.getDatasetMeta is not a function", but I solved it with the following(in config).

"widget" => array(\koolreport\chartjs\BarChart::class, array(
     "name" => "mychart11",
     "columns" => array(
         "FORMA PAGO",
         "SUBTOTAL" => array(
             "label" => "TOTAL NETO",
             "type" => "number",
             "decimals" =>2,
              "prefix" => "$"
         ),
        "TOTAL IVA" => array(
            "label" => "IVA",
            "type" => "number",
            "decimals" => $numDecimalesTotales,
            "prefix" => "$",
            "config" => array(
            "hidden" => true,
            )
       )
    ),
"stacked" => true
 ));

KoolReport Is Free and Open-Source!

KoolReport is a professional php reporting framework which saves you tons of time to construct dynamic data report & dashboard.

  • Connect to various datasources such as MySQL, SQL Server, MongoDB or even from CSV or Excel file.
  • Contain series of powerful built-in data processes for your data manipulation.
  • Generate stunning charts and graphs to help you communicate data insights to your audiences effectively.
  • Integrate seamlessly with any php frameworks such as Laravel, CodeIgniter, Symfony.
Download Now and register our tutorials to get started!

Download KoolReport
help needed
solved

DrillDown