|
@@ -238,9 +238,11 @@ $(document).ready(function(){
|
|
|
var xlabels = [lll['xlabel'],pv['xlabel'],uv['xlabel'],adbaoguang['xlabel'],adtianchong['xlabel'],adclick['xlabel'],adclickl['xlabel'],ecpm['xlabel'],shouru['xlabel']];
|
|
|
for(var i = 0;i<chartDivs;i++){
|
|
|
if(i==0){
|
|
|
- getHighchart_other($("#linechart"+i),names[i],names[i],values[i],xlabels[i],"of total",color);
|
|
|
+ getHighchart_other($("#linechart"+i),names[i],names[i],values[i],xlabels[i],"of total","{point.y:.2f}%",color);
|
|
|
+ }else if(i==4 || i==6){
|
|
|
+ getHighchart_other($("#linechart"+i),names[i],names[i],values[i],xlabels[i],"","{point.y:.2f}%",color);
|
|
|
}else{
|
|
|
- getHighchart_other($("#linechart"+i),names[i],names[i],values[i],xlabels[i],"",color);
|
|
|
+ getHighchart_other($("#linechart"+i),names[i],names[i],values[i],xlabels[i],"","{point.y:.2f}",color);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -282,7 +284,7 @@ $(document).ready(function(){
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
- function getHighchart_other(obj,title,name,value,uselllxlabel,defaultValue,color){
|
|
|
+ function getHighchart_other(obj,title,name,value,uselllxlabel,defaultValue,defaultParsent,color){
|
|
|
obj.highcharts({
|
|
|
chart: {
|
|
|
type: 'column'
|
|
@@ -312,13 +314,13 @@ $(document).ready(function(){
|
|
|
pointWidth: 30,
|
|
|
dataLabels: {
|
|
|
enabled: true,
|
|
|
- format: '{point.y:.2f}%'
|
|
|
+ format: defaultParsent
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
tooltip: {
|
|
|
headerFormat: '<span style="font-size:11px">{series.name}</span><br>',
|
|
|
- pointFormat: '<span style="color:{point.color}">{point.name}</span>: <b>{point.y:.2f}%</b> '+defaultValue+'<br/>'
|
|
|
+ pointFormat: '<span style="color:{point.color}">{point.name}</span>: <b>'+defaultParsent+'</b> '+defaultValue+'<br/>'
|
|
|
},
|
|
|
series: [{
|
|
|
name: name,
|