Php 如何在[Symfony]中使用google制作日历图表

Php 如何在[Symfony]中使用google制作日历图表,php,symfony,charts,google-visualization,symfony4,Php,Symfony,Charts,Google Visualization,Symfony4,我使用CMENGoogleChartsBundle 我已经试过了 它的工作 $calendar = new Calendar(); $calendar->getData()->setArrayToDataTable(); 不行 我遵循了文档,但我不理解,因为它 在js中,但我需要像pieChart()一样通过php实现 应该是 $calendar = new CalendarChart(); 你能给我一个示例数据,比如,$pieChart->getData()->setArray

我使用CMENGoogleChartsBundle 我已经试过了

它的工作

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

我遵循了文档,但我不理解,因为它 在js中,但我需要像pieChart()一样通过php实现

应该是

$calendar = new CalendarChart();

你能给我一个示例数据,比如,$pieChart->getData()->setArrayToDataTable([['Task','Hours per Day'],['Work',11]]);但是使用您提供的链接中的$Calendar-->虽然这段代码可以解决这个问题,但如何以及为什么解决这个问题将真正有助于提高您的文章质量,并可能导致更多的投票。请记住,你是在将来回答读者的问题,而不仅仅是现在提问的人。请在回答中添加解释,并说明适用的限制和假设。
$calendar = new CalendarChart();