我正在使用symfony4和CMENGoogleChartsBundle,我想知道如何即使对于空结果也总是显示工具提示。 当我将鼠标放在具有0个视图的元素上时,工具提示不会出现。
$combo = new ComboChart();
$combo->getData()->setArrayToDataTable($data);
$combo->getOptions()->getVAxis()->setTitle('');
$combo->getOptions()->getHAxis()->setTitle('My title');
$combo->getOptions()->setTitle('');
$combo->getOptions()->setSeriesType('bars');
$combo->getOptions()->setColors(array('rgb(77, 208, 225)'));
$combo->getOptions()->setWidth(1200);
$combo->getOptions()->setHeight(500);
$combo->getOptions()->getHAxis()->setShowTextEvery(4);
$combo->getOptions()->getHAxis()->setSlantedText(false);
$combo->getOptions()->getHAxis()->getTextStyle()->setFontSize(10);
$combo->getOptions()->getHAxis()->setTextPosition('out');
return $combo;