KoolReport's Forum

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

Column Chart axis font size #283

Open arthur opened this topic on on May 15, 2018 - 6 comments

arthur commented on May 15, 2018

I got a problem with the a axis value from chartJS columnchart. Why all the values appear ?

KoolReport commented on May 15, 2018

What do you mean?

arthur commented on May 15, 2018

For example I got VALIFAX, and then LBENOIT but between the name is not displaying...

KoolReport commented on May 16, 2018

You do this:

ColumnChart::create(array(
    ...
    "options"=>array(
        "scales"=>array(
            "xAxes"=>array(
                array(
                    "ticks"=>array(
                        "autoSkip"=>false
                    )
                )
            )
        )
    )
))
arthur commented on May 16, 2018

Sorry, it doesn't work. Here is my code :

ColumnChart::create(array(
    "dataSource"=>$this->dataStore("PO"),

    "title"=>"PO Challenge",
    "columns"=>array(
            "salesPerson"=>array(
            "label"=>"sales",
            ),
            "PO"=>array(
            "label"=>"Amount",
            "type"=>"number",
            "config"=>array(
            "backgroundColor"=> "#18249B",
              )
            ),
    ),
"options"=>array(
        "scales"=>array(
            "xAxes"=>array(
                array(
                    "tick"=>array(
                        "autoSkip"=>false
                    )
                )
            )
        )
    )
)) 
KoolReport commented on May 16, 2018

Sorry for my mistake, the tick should be ticks (with "s")

arthur commented on May 16, 2018

It works thanks ! And How could ad da static bar with a static value (objective) ?

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