//初始化echarts实例
var goodsstock = echarts.init(document.getElementById('goodsstock'));
goodsstock.showLoading({
text: '正在努力的读取数据中...', //loading话术
});
//商品销售统计
var option = {
title:{
text:'进销存统计'
},
tooltip : {
trigger: 'axis' //放在折线点的时候显示出相应x和y坐标相应的数据信息
},
legend:{
data:['入库数量']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
}, //整个图表的跟父容器的间距
xAxis: [{
}],
yAxis : {},
series : [{
name : '入库数量',
type : 'line',
itemStyle : {
normal : {
color:'#47b34f',
lineStyle:{
color