스크립트 태그에서 다음 코드를 추가했는데 애니메이션으로 만들 수 없습니다. 친절하게 suugestGoogle 차트에 애니메이션을 적용하려면 어떻게해야합니까?
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Year', 'Sales', 'Expenses'],
['2004', 1000, 400],
['2005', 1170, 460],
['2006', 660, 1120],
['2007', 1030, 540]
]);
var options = {
title: 'Company Performance',
animation: {
duration: 1000,
easing: 'out'
},
vAxis: {title: 'Year', titleTextStyle: {color: 'red'}, minValue:0, maxValue:1000}
};
var chart = new google.visualization.BarChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
차트가로드 중이지만 애니메이션을 만들 수 없습니다. 로딩 할 때 애니메이션 적용
내가, [지원되는 수정] (https를 확인하시기 바랍니다 페이지 – user1941043
로드시를 애니메이션 의미 번호 : // 개발자.하지 google.com/chart/interactive/docs/animation#Supported_Modifications). 로드시 애니메이션이없는 것 같습니다. –
@ user1941043 : 해결 방법은 –