This commit is contained in:
guange 2019-01-18 17:35:53 +08:00
parent 190ddd519e
commit f987dfdb04
1 changed files with 12 additions and 2 deletions

View File

@ -361,6 +361,16 @@ $(function(){
//疾病发病趋势 //疾病发病趋势
var lineChart2 = echarts.init(document.getElementById('lineChart2')); var lineChart2 = echarts.init(document.getElementById('lineChart2'));
var lineChart2 = echarts.init(document.getElementById('lineChart1'));
var lineChart2_names = [];
var lineChart2_datas = [];
for(var key in last_month_sell){
lineChart2_names.push(key);
lineChart2_datas.push(last_month_sell[key]);
}
lineChart2.setOption({ lineChart2.setOption({
title: { title: {
text: '前5月购买趋势', text: '前5月购买趋势',
@ -407,7 +417,7 @@ $(function(){
xAxis: [ xAxis: [
{ {
type: 'category', type: 'category',
data : symptomName, data : lineChart2_names,
boundaryGap : false, boundaryGap : false,
axisLine:{ axisLine:{
lineStyle:{ lineStyle:{
@ -435,7 +445,7 @@ $(function(){
type:'line', type:'line',
smooth:true, smooth:true,
itemStyle: {normal: {areaStyle: {type: 'default'}}}, itemStyle: {normal: {areaStyle: {type: 'default'}}},
data:[520, 232,701, 434, 190, 230, 210,120, 132, 101, 134, 890] data:lineChart2_datas,
}, },
] ]