Hello,
I have a problem with google chart.
This is my HTML & script:
//------------------------------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
  <script type='text/javascript' src='https://www.google.com/jsapi'></
script>
  <script type='text/javascript'>
        google.load('visualization', '1', {packages:['corechart']});
        google.setOnLoadCallback(drawChart);
        function drawChart() {
                var data1 = new google.visualization.DataTable();
                data1.addColumn('string', 'Year');
                data1.addColumn('number', 'Item1');
                data1.addColumn('number', 'Item2');
                data1.addColumn('number', 'Item3');
                data1.addColumn('number', 'Item4');

                
data1.addRows([['2000/07',0,0,0,0],['2000/08',0,0,0,0],['2000/09',
0,0,0,0],['2000/10',0,0,0,0],['2000/11',0,0,0,0],['2000/12',0,0,0,0],
['2001/01',0,0,0,0],['2001/02',0,0,0,0],['2001/03',0,0,0,0],['2001/04',
0,0,0,0],['2001/05',0,0,0,0],['2001/06',0,0,0,0],['2001/07',0,0,0,0],
['2001/08',0,0,0,0],['2001/09',0,0,0,0],['2001/10',0,0,0,0],['2001/11',
0,0,0,0],['2001/12',0,0,0,0],['2002/01',0,0,0,0],['2002/02',0,0,0,0],
['2002/03',0,0,0,0],['2002/04',0,0,0,0],['2002/05',0,0,0,0],['2002/06',
0,0,0,0],['2002/07',0,0,0,0],['2002/08',0,0,0,0],['2002/09',0,0,0,0],
['2002/10',0,0,0,0],['2002/11',0,0,0,0],['2002/12',0,0,0,0],['2003/01',
0,0,0,0],['2003/02',0,0,0,0],['2003/03',0,0,0,0],['2003/04',0,0,0,0],
['2003/05',0,0,0,0],['2003/06',0,0,0,0],['2003/07',0,0,0,0],['2003/08',
0,0,0,0],['2003/09',0,0,0,0],['2003/10',0,0,0,0],['2003/11',0,0,0,0],
['2003/12',0,0,0,0],['2004/01',0,0,0,0],['2004/02',0,0,0,0],['2004/03',
0,0,0,0],['2004/04',0,0,0,0],['2004/05',0,0,0,0],['2004/06',0,0,0,0],
['2004/07',0,0,0,0],['2004/08',0,0,0,0],['2004/09',0,0,0,0],['2004/10',
0,0,0,0],['2004/11',0,0,0,0],['2004/12',0,0,0,0],['2005/01',0,0,0,0],
['2005/02',0,0,0,0],['2005/03',0,0,0,0],['2005/04',0,0,0,0],['2005/05',
0,0,0,0],['2005/06',0,0,0,0],['2005/07',0,0,0,0],['2005/08',0,0,0,0],
['2005/09',0,0,0,0],['2005/10',0,0,5,0],['2005/11',0,0,5120,0],
['2005/12',0,0,5345,0],['2006/01',0,0,5298,0],['2006/02',0,0,5333,0],
['2006/03',0,0,5507,0],['2006/04',0,0,5606,0],['2006/05',0,0,5755,0],
['2006/06',0,0,5972,0],['2006/07',0,0,6185,0],['2006/08',0,0,6331,0],
['2006/09',0,0,6440,0],['2006/10',0,0,6716,0],['2006/11',0,0,6902,0],
['2006/12',0,0,6872,0],['2007/01',0,0,7325,0],['2007/02',0,0,7525,0],
['2007/03',0,0,7680,0],['2007/04',0,0,8169,0],['2007/05',0,0,8311,0],
['2007/06',0,0,8837,0],['2007/07',0,0,9211,0],['2007/08',0,0,8810,0],
['2007/09',0,0,9317,0],['2007/10',0,0,9581,0],['2007/11',0,0,9258,0],
['2007/12',0,0,9212,0],['2008/01',0,0,9032,0],['2008/02',0,0,9344,0],
['2008/03',0,0,9582,0],['2008/04',0,0,9652,0],['2008/05',0,0,9490,0],
['2008/06',0,0,8896,0],['2008/07',0,0,8852,0],['2008/08',0,0,8926,0],
['2008/09',0,0,8342,0],['2008/10',0,0,8008,0],['2008/11',0,0,7753,0],
['2008/12',0,0,7732,0],['2009/01',0,0,7568,0],['2009/02',0,0,7635,0],
['2009/03',0,0,7736,0],['2009/04',0,0,7299,0],['2009/05',0,0,7685,0],
['2009/06',0,0,6631,0],['2009/07',0,0,7337,0],['2009/08',0,0,7227,0],
['2009/09',0,0,7523,0],['2009/10',0,0,7663,0],['2009/11',0,0,7715,0],
['2009/12',0,0,8368,0],['2010/01',0,0,8505,0],['2010/02',0,0,8398,0],
['2010/03',0,0,6873,0],['2010/04',0,0,6892,0],['2010/05',0,0,6530,0],
['2010/06',0,0,6406,0],['2010/07',0,0,6660,0],['2010/08',0,0,7029,0],
['2010/09',0,0,7089,0],['2010/10',0,0,7223,0],['2010/11',0,0,7829,0],
['2010/12',0,0,7905,0],['2011/01',0,0,8129,0],['2011/02',0,0,8203,0],
['2011/03',0,0,8581,0],['2011/04',0,0,8743,0],['2011/05',0,0,8762,0],
['2011/06',0,0,8556,0],['2011/07',0,0,11132,0],['2011/08',0,0,10681,0],
['2011/09',0,0,10115,0],['2011/10',0,0,10202,0],['201111',
0,0,9916,0]]);

                var options = {width: 900, height: 375, title: '【Title1】',hAxis:
{title: 'Year', titleTextStyle: {color: 'red'}}};
                var chart = new
google.visualization.ColumnChart(document.getElementById('Div1'));
                chart.draw(data1, options);
        }
  </script>
 </HEAD>

 <BODY>
        <div id="Div1" style="width: 100%; height: 375px;"></div>
 </BODY>
</HTML>
//------------------------------------------------------------------------------------------------------
Why can't I see any column in mine chart? Where was I doing something
wrong?
Please help me.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to