Chartjs-How to customize the title and tooltip in ux-chartjs?

0👍

I found it, sorry for the question but the docs is different. I post here how I dit it :

$chart->setOptions([

            'responsive' => true,
            'title' => [
                'display' => true,
                'text' => strtoupper('test'),
                'fontColor' => '#ce1111',
                'fontSize' => 16
                //'padding' => 50
            ],
            'tooltips' => [
                'backgroundColor' => '#fff',
                'bodyFontColor' => '#000',
                'bodyFontSize' => 16,
            ],
            'legend' => [
                'labels' => [
                    'fontColor' => "#ce1111",
                    'fontSize' => 16
                ]
            ]

        ]);

Leave a comment