2
我想将图像添加到Highcharts Yii2中的饼图的图例。请参阅example,但我无法将它写入labelFormat
部分的我的PHP小部件中。Yii2功能中的Highcharts语法
我想将图像添加到Highcharts Yii2中的饼图的图例。请参阅example,但我无法将它写入labelFormat
部分的我的PHP小部件中。Yii2功能中的Highcharts语法
我觉得应该有:
'legend' => [
'useHTML' => TRUE,
'labelFormatter' => new JsExpression('function() { return \"<img src="http://highcharts.com/demo/gfx/sun.png"/>\" + this.name; }'),
'itemMarginBottom' => 5
],
据here第一个提示。
看到你的js控制台,如果有任何错误 –
控制台没有错误。 – xCEZAREx