Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Definitely you can do so, please use the "options" property, for example
class MyChart extends ColumnChart
{
protected function onCreated()
{
$this->options([
"legend"=>[
"position"=>0
]
]);
}
}
If you want to set it from outside (inside Dashboard), you can do
MyChart::create()->options([
"legend"=>[
"position"=>0
]
])
Let us know if you need further assistance.
Hi,
Thank you, how do you hide the legend and how to change chart color? I tried this without success:
protected function onCreated()
{
$this->options([
"legend"=>[
"display"=>false
]
]);
}
protected function onInit()
{
$this
->height("150px")
->colorScheme("#36a8e1");
}
Thank you
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo