KoolReport's Forum

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

MultiView with column disabled #971

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

S
SOFMAN commented on Jul 4, 2019

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.

K
KoolReport commented on Jul 6, 2019

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

S
SOFMAN commented on Jul 23, 2019

When can you help me solve this problem?

S
SOFMAN commented on Aug 2, 2019

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

K
KoolReport commented on Aug 5, 2019

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();
                    }"
            ))
S
SOFMAN commented on Aug 7, 2019

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
 ));

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
solved

DrillDown