Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <html>
  2.   <head>
  3.   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  4.     <script type="text/javascript" src="https://www.google.com/jsapi"></script>
  5.     <script type="text/javascript">
  6.       google.load("visualization", "1", {packages:["corechart"]});
  7.       google.setOnLoadCallback(drawChart);
  8.       function drawChart() {
  9.         var data = google.visualization.arrayToDataTable([
  10.           ['السنة', 'المبيعات', 'التكاليف'],
  11.           ['2009',  1000,      400],
  12.           ['2010',  1170,      460],
  13.           ['2011',  660,       1120],
  14.           ['2012',  1030,      540]
  15.         ]);
  16.  
  17.         var options = {
  18.           title: 'اداء الشركة',
  19.           vAxis: {title: 'السنة',  titleTextStyle: {color: 'red'}}
  20.         };
  21.  
  22.         var chart = new google.visualization.BarChart(document.getElementById('chart_div'));
  23.         chart.draw(data, options);
  24.       }
  25.     </script>
  26.   </head>
  27.   <body>
  28.     <div id="chart_div" style="width: 900px; height: 500px;"></div>
  29.   </body>
  30. </html>