This commit is contained in:
parent
190ddd519e
commit
f987dfdb04
|
@ -361,6 +361,16 @@ $(function(){
|
|||
|
||||
//疾病发病趋势
|
||||
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({
|
||||
title: {
|
||||
text: '前5月购买趋势',
|
||||
|
@ -407,7 +417,7 @@ $(function(){
|
|||
xAxis: [
|
||||
{
|
||||
type: 'category',
|
||||
data : symptomName,
|
||||
data : lineChart2_names,
|
||||
boundaryGap : false,
|
||||
axisLine:{
|
||||
lineStyle:{
|
||||
|
@ -435,7 +445,7 @@ $(function(){
|
|||
type:'line',
|
||||
smooth:true,
|
||||
itemStyle: {normal: {areaStyle: {type: 'default'}}},
|
||||
data:[520, 232,701, 434, 190, 230, 210,120, 132, 101, 134, 890]
|
||||
data:lineChart2_datas,
|
||||
},
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue