2012-03-13 99 views
5

我有這個谷歌折線圖,但想填補一個面積圖一樣的線。我看着谷歌,似乎他們的語法與用於創建圖表的代碼非常不同 - 我根本沒有明白。下面是我的圖表選項:谷歌折線圖填入數據線

var l1=new google.visualization.LineChart($('l1')) 
l1.draw(d,{ 
width:900 
,height:280 
,fontSize:11 
,legend:{position:'right'} 
,pointSize:2 
,chartArea:{left:35,top:8,width:'80%',height:220} 
,backgroundColor:"#DDDDDD" 
,colors:["blue","green","yellow","orange","red"] 
,hAxis:{textPosition:'out' 
,slantedText:true}, 
series:{0:{color:'#BBBBBB',lineWidth:10},1:{color:'#CCCCCC',lineWidth:10},2:{color:'yellow'},3:{color:'orange'},4:{color:'red'}} 
}) 

回答