1. Go to this page and download the library: Download saad-tazi/g-chart-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// 'role_tooltip' must be written as i showed because it makes all the magic.
$res->addColumn('role_tooltip', 'Tooltip', 'string');
// ....
foreach($datas as $data) {
// js month starts at 0 for Jan !
$date => $data['date']->format("Y, ").(intval($data['date']->format("m"))-1).$data['date']->format(", d");
$res->addRow([['v' => "new Date[[[{$date}]]]"], ['v' => $data['md'], ['v' => "My wonderfull Tooltip for this row"]]);
}
php
// app/autoload.php
$loader->registerNamespaces(array(
'SaadTazi' => __DIR__.'/../vendor/bundles',
// your other namespaces
));
php
// app/ApplicationKernel.php
public function registerBundles()
{
return array(
// ...
new SaadTazi\GChartBundle\SaadTaziGChartBundle(),
// ...
);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.