2
如何自定義Google analytics embedded API的數據圖表上特定日期點的顏色。 後,我看了Google Visualization API documentation我想這個代碼,但沒有奏效:如何自定義Google圖表中特定點的顏色
var sessionsOverMonth = new gapi.analytics.googleCharts.DataChart({
reportType: 'ga',
query: {
'dimensions': 'ga:date',
'metrics': 'ga:sessions',
'start-date': '30daysAgo',
'end-date': 'yesterday',
},
chart: {
type: 'LINE',
container: 'sessions-over-month',
options: {width: '100%' ,
series: {
0: { pointShape: { type: 'star', sides: 5, dent: 0.05 }},
}
}
}
});
如何捉對圖表特定日期和自定義它?在series
選項內
我不確定'google-analytics',數據集中是否有一列可用作_style_列? – WhiteHat
是WhiteHat,您的代碼正在處理可視化,但在狀態Google Analytics(分析)中,除寬度屬性外,沒有圖表的樣式屬性。 –