KoolReport's Forum

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

How can use c3js options with d3 column chart #1338

Open Vijay Parmar opened this topic on on Mar 7, 2020 - 2 comments

Vijay Parmar commented on Mar 7, 2020

KoolReport commented on Mar 7, 2020

Yes, as we stated in document, you can set extra settings for columnchart from c3js documentation.

Vijay Parmar commented on Mar 7, 2020

Bellow is my code, please suggest me how to use c3js

array(

            "handler"=>"<i class='fa fa-bar-chart'></i>",
            "widget"=>array(ColumnChart::class,array(
                "dataSource"=>$category_amount,                   
                //"width"=>500000,
                "columns"=>array(
                    "category",
                    "ExistingEmployeeOrders"=>array(
                        "label"=>"Existing Employee",
                        "type"=>"number",
                    ),
                    "NewEmployeeOrders"=>array(
                        "label"=>"New Employee",
                        "type"=>"number",
                       
                    ),
                    "OtherOrders"=>array(
                        "label"=>"Others",
                        "type"=>"number",
                            
                    ),
                ),
            ))
        ),

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

None