KoolReport's Forum

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

How to change color for D3 charts? #1342

Open Andre Van Der Walt opened this topic on on Mar 10, 2020 - 1 comments

Andre Van Der Walt commented on Mar 10, 2020

Hi,

How to specify the color same as available on chartjs?

"columns"=>array(
                                "Date"=>array(),
                                "Pass"=>array(
                                    "label"=>"Passed",
                                    "type"=>"number",
                                    "config"=>array(
                                        "backgroundColor"=>"#BEE877",
                                        "backgroundOpacity"=>0,
                                        "borderColor"=>"#BEE877",
                                    )
                                ),

Thank you,

KoolReport commented on Mar 10, 2020

Hi,

You do this:

ColumnChart::create(array(
    ...
    "colorScheme"=>array("#f2d3f2","#a2d3f2","#d232dd")
    ...
));

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