This commit is contained in:
guange 2019-01-18 16:52:44 +08:00
parent 698ebbdf7e
commit 084c97c3ef
1 changed files with 8 additions and 2 deletions

View File

@ -13,7 +13,8 @@ $(function(){
var myColor = ['#1089E7', '#F57474', '#56D0E3', '#F8B448', '#8B78F6']; var myColor = ['#1089E7', '#F57474', '#56D0E3', '#F8B448', '#8B78F6'];
var histogramChart1 = echarts.init(document.getElementById('histogramChart1')); var histogramChart1 = echarts.init(document.getElementById('histogramChart1'));
histogramChart1.setOption({ if(histogramChart1){
histogramChart1.setOption({
color:['#5bc0de'], color:['#5bc0de'],
grid:{ grid:{
@ -75,6 +76,8 @@ $(function(){
}, },
] ]
}) })
}
//主要症状 //主要症状
var histogramChart2 = echarts.init(document.getElementById('histogramChart2')); var histogramChart2 = echarts.init(document.getElementById('histogramChart2'));
@ -141,7 +144,8 @@ $(function(){
//传染病发病趋势 //传染病发病趋势
var lineChart1 = echarts.init(document.getElementById('lineChart1')); var lineChart1 = echarts.init(document.getElementById('lineChart1'));
lineChart1.setOption({ if(lineChart1){
lineChart1.setOption({
title: { title: {
text: '访问趋势', text: '访问趋势',
textStyle:{ textStyle:{
@ -219,6 +223,8 @@ $(function(){
] ]
}) })
}
//TOP10销量趋势 //TOP10销量趋势
var histogramChart3_names = []; var histogramChart3_names = [];