1
我已經使用Google Chart(谷歌可視化)成功實現了AreaChart,但現在我需要在Google AreaChart中添加字幕。這裏是我試過的代碼。在谷歌圖表的AreaChart中添加字幕?
var options = {
width: 310,
height: 260,
chart: {
title: 'Company Performance',
subtitle: 'Sales, Expenses, and Profit: 2014-2017',
},
backgroundColor: '#000000'
};
由於它的工作,我也想改變字幕 –
'subtitle.setAttribute(「字體大小」的字體樣式和大小。 ..)'&'subtitle.setAttribute('font-family',...)' – WhiteHat