问题
I have to display some special information when my mouse is over a concrete point in a chart that is provided by Highcharts. I am using the Highcharts extension for Yii2.
My Code
'tooltip' => [
'enabled' => true,
'footerFormat' => true,
'formatter' => "js:function() {
return 'my special information';
}"
],
The data that comes from controller is correct. However there is nothing different - tooltip is still the default
What am I doing wrong?
回答1:
Sorry. My bad. All is working fine. I just duplicate 'tooltip' option. And my tooltip that i want to use was override by tooltip that i forgot to remove from my code)
来源:https://stackoverflow.com/questions/35767575/how-to-correctly-create-function-for-formatter-on-php-in-yii2-highcharts-extensi