pie圖裏data數據(數組顯示)

//定義一個函數,將數據逐個放入,形成name,value鍵值對
            
data:(function(){
	var res = [];//
	for(var i=0;i<dataClhm.length;i++){
		console.log(dataTimes[i]);
		res.push({
		name: dataClhm[i]+":"+dataTimes[i]+"次",
		value: dataTimes[i]  
			<span style="white-space:pre">	</span>});
		<span style="white-space:pre">	</span>} 
		return res;							                
	})()

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章