Search code examples
phpsymfonychartsgoogle-visualizationsymfony4

How to make CalendarChart with google in [Symfony]


I use CMENGoogleChartsBundle https://github.com/cmen/CMENGoogleChartsBundle I have tried the pieChart()

$pieChart = new PieChart();
$pieChart->getData()->setArrayToDataTable(
    //data ..
);

Its work

$calendar = new Calendar();
$calendar->getData()->setArrayToDataTable();

Not work

I have followed the documentation but i don't understood, because its in js but i need to make it by php like pieChart()


Solution

  • it should be...

    $calendar = new CalendarChart();