KoolReport's Forum

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

Chartjs column chart disable gridlines #1352

Open ankit raj opened this topic on on Mar 19, 2020 - 2 comments

ankit raj commented on Mar 19, 2020

Hey , i am using this but the gridlines is not disappearing. its column chart of chart js

 "options"=>array(
                "scales" => array(
                    "yAxes" => array(
                            "display"=>true,
                            "gridLines" => array(
                                "display" => false
                            ),
                        )
                    ),
KoolReport commented on Mar 20, 2020

It seems to me your settings is correct so I have not known why it does not work yet. So I will tell dev.team to further look at your case.

ankit raj commented on Mar 21, 2020

\koolreport\chartjs\ColumnChart::create(array(

        "plugins" => [
            "datalabels"
        ],
        "dataSource"=>$chart_array,
        "legend"=>array(
            "display"=>false
        ),
        "options"=>array(
            "scales" => array(
                "yAxes" => array(
                        "display"=>true,
                        "gridLines" => array(
                            "display" => false
                        ),
                    )
                ),

            )

    ));

This is the complete function

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

ChartJS