我有这个谷歌折线图,但想要像面积图一样填充一条线。我在google上看了看,他们的语法似乎与用来创建图表的代码非常不同-我就是不明白。以下是我的图表选项:
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'}}
})
发布于 2012-08-08 02:37:16
https://stackoverflow.com/questions/9684373
复制相似问题