KoolReport's Forum

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

Change labels of 'performance' and 'target' in sparkline #790

Open iRiyada opened this topic on on Apr 9, 2019 - 1 comments

iRiyada commented on Apr 9, 2019

While creating datatable, one column value was taken and represented as sparkline.

The code for sparkline representation using column value in datatable

"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(
                            "performanceColor"=>"#0f0",
                            "targetColor"=>"#f00",
                        )
                    ));
                    
                        
                    
                }

how to change the words "performance" and "target" to arabic words. Is there any way?

iRiyada commented on Apr 10, 2019

I figured it out . It is possible like this

                            "tooltipValueLookups"=>array( "fields"=> array('r'=> 'Range', 'p'=> 'النسبة المئوية للإنجاز', 't'=> 'نسبة إنجاز المهمة') )

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