I am getting an exception the container is null or not defined when I try
to use div inside a div. I can access chart_div but not chart_tip in the
below code. Please help.
<html>
<head>
<script type="text/javascript"
src="https://www.google.com/jsapi"></script>
<script type = "text/javascript" src =
"/life/web/js/jquery-1.7.1.min.js"></script>
<script type = "text/javascript"
src="/life/web/js/jquery.qtip-1.0.0-rc3.js"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
//google.setOnLoadCallback(drawChart);
function drawBar() {
var data = google.visualization.arrayToDataTable([
['K', 'S', 'Y'],
['0', 1000, 400],
['50', 1170, 460],
['75', 660, 1120],
['100', 1030, 540]
]);
var options = {
hAxis: {titleTextStyle: {color: 'red'}},
isStacked: true,
width:70,
height:70,
fontSize:5
};
var chart = new
google.visualization.ColumnChart(document.getElementById('chart_tip'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="chart_div" >
<div id = "chart_tip"></div>
drawBar();
</div>
</body>
</html>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/MOLfibCtVGcJ.
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.