2013-06-20 62 views
0

我正在製作一個涉及一堆Google可視化的學校網站。我可以讓他們處理我想要的數據,但我卡住定製他們。我有一個非常具體的設計,我必須遵循,而且目前還沒有真正有效。谷歌可視化API定製

原因是我不知道如何在一個元素上有兩種不同的樣式。例如:

legend: {textStyle: {color: '#d1dbbd', fontName: 'Century Gothic', fontSize: 15}}, 
legend: {position: 'bottom'}, 

目前這隻能將圖例定位在底部。我試圖讓這兩個在一行中,但我不知道該語言的正確語法(我試圖找到它在網上,但無濟於事。:()

我已經洗牌了它周圍像幾次使

legend: {position: 'bottom'}, {textStyle: {color: '#d1dbbd', fontName: 'Century Gothic', fontSize: 15}}, 

legend: {position: 'bottom', {textStyle: {color: '#d1dbbd', fontName: 'Century Gothic', fontSize: 15}}}, 

幫助

回答

0

你是密切與格式你想一個對象與「位置」和「文字樣式」屬性:?

legend: { 
    position: 'bottom', 
    textStyle: { 
     color: '#d1dbbd', 
     fontName: 'Century Gothic', 
     fontSize: 15 
    } 
}