KoolReport's Forum

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

Hide the donutchart legends #138

Open dimasmaliq opened this topic on on Oct 27, 2017 - 9 comments

dimasmaliq commented on Oct 27, 2017

Can donutchart/other chart legends be hidden?

Appreciate your help. Thanks.

KoolReport commented on Oct 27, 2017

Hi,

You do this:

DonutChart::create(array(
    ...
    "options"=>array(
        "legend"=>"none"
    )
));

Above is the short hand of below settings which can apply to any google charts

{Any Google Chart}::create(array(
    ...
    "options"=>array(
        "legend"=>array("position"=>"none")
    )
));

Let us know if you need further assistance.

Regards.

KoolPHP Inc

dimasmaliq commented on Oct 27, 2017

Worked! Thank you!

dimasmaliq commented on Oct 27, 2017

now i have another question, some small values does not appear on the donutchart. how to show up all pieces?

KoolReport commented on Oct 27, 2017

Make the DonutChart bigger :-\

dimasmaliq commented on Oct 27, 2017

oh man.. it's a simple answer but absolutely true :" thanks haha

KoolReport commented on Oct 27, 2017

You are welcome :D

dimasmaliq commented on Oct 30, 2017

guys, where i can see the full list of widget / table parameters, like "legend", "titles", etc on widget "options" or "label", "footer", etc on table "columns"?

Jason commented on Nov 12, 2019

Where i can see the full list of widget / table parameters, like "legend", "titles", etc on widget "options" or "label", "footer", etc on table "columns"?

Keith Burke commented on Jul 25, 2023

https://www.chartjs.org/docs/latest/configuration/

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
solved

None