...
|
...
|
@@ -93,15 +93,12 @@ |
|
|
|
|
|
|
|
|
//虚拟数据
|
|
|
var date = ['2016/11/1','2016/11/2','2016/11/3','2016/11/4','2016/11/5','2016/11/6','2016/11/7','2016/11/8','2016/11/9','2016/11/10',
|
|
|
'2016/11/11','2016/11/12','2016/11/13','2016/11/14','2016/11/15','2016/11/16','2016/11/17','2016/11/18'
|
|
|
,'2016/11/19','2016/11/20','2016/11/21','2016/11/22','2016/11/23','2016/11/24','2016/11/25','2016/11/26','2016/11/27'
|
|
|
,'2016/11/28','2016/11/29','2016/11/30'];
|
|
|
var date = ['21点-7点','17点-12点','12点-17点','17点-21点'];
|
|
|
|
|
|
|
|
|
function my_data(){
|
|
|
var data = [];
|
|
|
for( var i =0; i<30; i++){
|
|
|
for( var i =0; i<5; i++){
|
|
|
data.push(Math.round(Math.random() * (500 - 100) + 100));
|
|
|
};
|
|
|
return data;
|
...
|
...
|
@@ -164,24 +161,19 @@ |
|
|
var myChart10 = ec.init(document.getElementById('main10'),'macarons');
|
|
|
var myChart11 = ec.init(document.getElementById('main11'),'macarons');
|
|
|
|
|
|
//时间段统计(柱形图)
|
|
|
var option = {
|
|
|
backgroundColor:'white',
|
|
|
title:{
|
|
|
text : '新老客户分析',
|
|
|
text : '时间段统计',
|
|
|
y: '15'
|
|
|
},
|
|
|
tooltip : {
|
|
|
trigger: 'axis',
|
|
|
formatter : function(data){
|
|
|
//console.log(data);
|
|
|
var str = data[1].name ;
|
|
|
str += '</br>新客户人数:' + data[1].value + ' 占比:' + bl;
|
|
|
str += '</br>新客户销售额:' + data[1].value + ' 占比:' + bl;
|
|
|
str += '</br>新客户成交笔数:' + data[1].value + ' 占比:' + bl;
|
|
|
str += '</br>老客户人数:' + data[1].value + ' 占比:' + bl;
|
|
|
str += '</br>老客户销售额:' + data[1].value + ' 占比:' + bl;
|
|
|
str += '</br>老客户成交笔数:' + data[1].value + ' 占比:' + bl;
|
|
|
|
|
|
var str = data[0].name ;
|
|
|
str += '</br>总人数:' + data[0].value + ' 占比:' + bl;
|
|
|
return str;
|
|
|
}
|
|
|
},
|
...
|
...
|
|