KoolReport's Forum

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

Change the color of sparkline bullet. #683

Closed iRiyada opened this topic on on Feb 16, 2019 - 2 comments

iRiyada commented on Feb 16, 2019

Is there any option to change the color of sparkline bullet. I am including it like progress bar in a column value.

"completion_percent" => array(

             "label" => "نسبة الإنجاز",
              
             "cssStyle"=>"white-space:nowrap",
             'formatValue' => function($val, $row) {
                $data = $val;
                return sparklines\Bullet::create(array(
                    "data" =>array($data,100),
                    "options"=>array(
                        "Color"=>"green",            //i want it in green color, how to change from blue-red bullet to green-red
                    )
                ));
                
                    
                
            }
 

             
         ),
KoolReport commented on Feb 16, 2019

You use

"performanceColor"=>"#0f0",
"targetColor"=>"#f00",
iRiyada commented on Feb 17, 2019

Thank You. It worked :)

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
solved

None