Google Chart - Animate not working -
i'm using google chart want animate.. , animate not working what's wrong that's codes
google.load('visualization', '1', { packages: ['corechart'] }); google.setonloadcallback(drawchart); function drawchart() { var data = google.visualization.arraytodatatable([ ['yıl', 'toplam satış miktarı (ton)'], ['2007', 153888], ['2008', 37634], ['2009', 21835], ['2010', 80929], ['2011', 137699], ['2012', 313837], ['2013', 1050000], ]); var options = { title: 'ciro', 'width': 850, animation: { duration: 1000, easing: 'out' }, 'height': 400, haxis: { title: 'yıl', titletextstyle: { color: 'red' } } }; var chart = new google.visualization.columnchart(document.getelementbyid('chart_div')); chart.draw(data, options); }
the new version support startup animation
animation: { startup:true, duration: 1000, easing: 'out' }
Comments
Post a Comment