KoolReport's Forum

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

Change BarChart fontsize #2205

Open PT. Four Best Synergy opened this topic on on Jul 13, 2021 - 2 comments

PT. Four Best Synergy commented on Jul 13, 2021

I want to change the font size in here

I add this options in my barchart class.


                                    "options"=>[
                                        "plugins"=>[
                                            "legend"=>[
                                                "labels" => [
                                                    "font"=> [
                                                        "size"=>12,
                                                    ]
                                                ],
                                            ],
                                        ],
                                    ],

But it's still not changing. I following the options based on googlechart documentation

KoolReport commented on Jul 13, 2021

It should be

"options"=>[
    "legend"=>[
        "textStyle"=>[
            "fontSize"=>12,
            "fontName"=>"Arial",
            "bold"=>false,
            "italic"=>false,
        ]
    ]
]

Let us know if it works.

PT. Four Best Synergy commented on Jul 13, 2021

Yes it works for the right side legend text.

But what i need to change is the X Axis text. or the horizontal text.

What is the option name for X Axis text ?

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

ChartJS