0
我尝试添加背景颜色大小和颜色,但它不适用于我。你能帮忙吗?Javascript谷歌图表:如何设置背景颜色和大小?
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Level', 'Total time in sec'],
['Level One', totalTime ]
]);
var options = {
title: 'Statistics',
backgroundColor: 'red'
backgroundColor: {
stroke: 'green',
strokeWidth: 5
},
};
var chart = new google.visualization.PieChart(document.getElementById('piechart'));
chart.draw(data, options);
}
此代码: 的backgroundColor:{ 行程: '绿色', strokeWidth:5 }, 不起作用
由于它的作品!但是,例如,如果我想使用这个属性chartArea.backgroundColor,我该怎么做呢? –
发现这一点: 'chartArea':{ '的backgroundColor':{ '补': '#F4F4F4', '不透明':100 }, } –
不,不适合我的工作,udpdated代码 –