Sergey,
I took your comments about the CSS to heart and removed all sizing from the critical divs. and sized down the text overlays for now.
Here's my code now:
<html>
<head>
<script type="text/javascript" src="
https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawSeriesChart);
function drawSeriesChart() {
var data = google.visualization.arrayToDataTable({!MatrixData});
var options = {
chartArea: {
width: '900px',
height: '900px',
},
title: 'Visualization',
hAxis: {
title: 'System Score',
baseline: 0,
maxValue: 4,
ticks: [2,4]
},
vAxis: {
title: 'Financial Score',
baseline: 0,
maxValue: 4,
ticks: [2,4]
},
bubble: {
textStyle: {fontSize: 11},
opacity: .6
},
series: {'High': {color: 'red'},
'Medium': {color: 'yellow'},
'Low': {color: 'green'}
},
sizeAxis: {
minValue: 3.5,
maxValue: 25,
},
backgroundColor: 'transparent',
};
var chart = new google.visualization.BubbleChart(document.getElementById('series_chart_div'));
chart.draw(data, options);
}
</script>
<style>
#series_chart_div
{
}
.chartWithOverlay {
position: relative;
}
.overlay {
position: absolute;
top: 40px; /* chartArea top */
left: 90px; /* chartArea left */
}
#trad, #private, #outsourced, #commercial
{
height:50px;
width: 100px;
margin:0;
font-size: 14px;
text-align:center;
}
</style>
</head>
<body>
<div class="chartWithOverlay">
<div id="series_chart_div" >
</div>
<div class="overlay">
<div >
<div id="private" style="margin-top:0px; margin-left:0px; float:left;">Private</div>
<div id="commercial" style="margin-top:0px; margin-left:301px;">Commercial</div>
</div>
<div >
<div id="trad" style="margin-top:0px; margin-left:0px;">Traditional</div>
<div id="outsourced" style="margin-top:0px; margin-left:5px;">Outsourced</div>
</div>
</div>
</div>
</body>
</html>
Note that I added the chartArea sizing with no results. Your thoughts? Am I moving in the right direction at least (although I don't see much movement in any direction, right now!)?
Laura