protected function Highcharts::buildToolTip in Charts 8.3
Build Tooltip
Parameters
array $options: Options.
Return value
\Drupal\charts_highcharts\Settings\Highcharts\Tooltip
1 call to Highcharts::buildToolTip()
- Highcharts::buildVariables in modules/
charts_highcharts/ src/ Plugin/ chart/ Highcharts.php - Creates a JSON Object formatted for Highcharts JavaScript to use.
File
- modules/
charts_highcharts/ src/ Plugin/ chart/ Highcharts.php, line 406
Class
- Highcharts
- Defines a concrete class for a Highcharts.
Namespace
Drupal\charts_highcharts\Plugin\chartCode
protected function buildToolTip(array $options) {
$chartTooltip = new Tooltip();
if (isset($options['tooltips'])) {
$chartTooltip
->setEnabled($options['tooltips']);
}
if (isset($options['tooltips_suffix'])) {
$chartTooltip
->setValueSuffix($options['tooltips_suffix']);
}
else {
$chartTooltip
->setValueSuffix('');
}
return $chartTooltip;
}