我有如下Highcharts
代碼:替換PHP代碼HIGHCHARTS代碼
tooltip: {
formatter: function() {
return ''+
this.series.name +': '+ (100 - (this.y)) +' ('+ this.y +'%)';
}
},
並如下PHP
代碼:
$Blue = ((int)$data[6] -(int)$data[7]);
$Red = (int)$data[7];
我想通過這兩個變量$Blue
和$Red
更換(100 - (this.y))
因爲在弧我有2個數字顯示Please see the second chart。但我不知道如何解決它,任何人都知道請幫助我,謝謝。