...
|
...
|
@@ -5,13 +5,10 @@ |
|
|
<span>展示近30天销售地域分布数据</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<div class="col-sm-6">
|
|
|
<div id="yohoTop" style="width: 500px;height:400px"></div>
|
|
|
</div>
|
|
|
<div class="col-sm-6">
|
|
|
<div id="shopTop" style="width: 500px;height:400px"></div>
|
|
|
</div>
|
|
|
<div class="_mainChart" style="margin-bottom: 0">
|
|
|
<div id="yohoTop" style="width: 500px;height:400px;float: left;margin-left: 80px"></div>
|
|
|
<div id="shopTop" style="width: 500px;height:400px;float: left;margin-left: 150px"></div>
|
|
|
<div class="clearfix"></div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
...
|
...
|
@@ -34,12 +31,12 @@ |
|
|
var data = response.data.data;
|
|
|
//全站销售地域
|
|
|
var yohoTop = echarts.init(document.getElementById('yohoTop'));
|
|
|
var yohoOption = this.getXOption(data.yoho.x, data.yoho.y, "全站销售地域top10:");
|
|
|
var yohoOption = this.getXOption(data.yoho.x, data.yoho.y, "全站销售地域Top10:");
|
|
|
yohoTop.setOption(yohoOption);
|
|
|
|
|
|
//店铺销售地域
|
|
|
var shopTop = echarts.init(document.getElementById('shopTop'));
|
|
|
var shopOption = this.getXOption(data.shop.x, data.shop.y, "店铺销售地域top10:");
|
|
|
var shopOption = this.getXOption(data.shop.x, data.shop.y, "店铺销售地域Top10:");
|
|
|
shopTop.setOption(shopOption);
|
|
|
});
|
|
|
},
|
...
|
...
|
@@ -47,7 +44,8 @@ |
|
|
var option = {
|
|
|
title : {
|
|
|
show: true,
|
|
|
text: title
|
|
|
text: title,
|
|
|
x:'center'
|
|
|
},
|
|
|
xAxis : [
|
|
|
{
|
...
|
...
|
@@ -126,4 +124,7 @@ |
|
|
line-height: 40px;
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
._mainChart{
|
|
|
margin: 20px 0;
|
|
|
}
|
|
|
</style> |
|
|
\ No newline at end of file |
...
|
...
|
|