This commit is contained in:
guange 2019-01-18 16:32:22 +08:00
parent 9dd8a74a5e
commit 94ecc88bd6
1 changed files with 10 additions and 2 deletions

View File

@ -221,6 +221,14 @@ $(function(){
}) })
//TOP10销量趋势 //TOP10销量趋势
var histogramChart3_names = [];
var histogramChart3_datas =[];
for(var key in top10_sells){
histogramChart3_names.push(key['product_name']);
histogramChart3_datas.push(key['good_c']);
}
var histogramChart3 = echarts.init(document.getElementById('histogramChart3')); var histogramChart3 = echarts.init(document.getElementById('histogramChart3'));
histogramChart3.setOption({ histogramChart3.setOption({
@ -233,7 +241,7 @@ $(function(){
}, },
yAxis: [{ yAxis: [{
show: true, show: true,
data: ['女装','鞋靴','童装玩具','手机','美妆 ','珠宝','保健品','眼镜'], data: histogramChart3_names,
inverse: true, inverse: true,
axisLine: { axisLine: {
show: false show: false
@ -269,7 +277,7 @@ $(function(){
}, { }, {
show: true, show: true,
inverse: true, inverse: true,
data: [2000, 1800, 1200, 1100,900,900,800,700], data: histogramChart3_datas,
axisLabel: { axisLabel: {
textStyle: { textStyle: {
fontSize: 12, fontSize: 12,