Dear all,
At the bottom of this e-mail I have included the source to a test case
which displays some rendering artefacts for an AreaChart.
The artefacts appear when an AreaChart is drawn in 'stacked' mode with
the 'lineWidth' of the entries set to 0 (this is to hide the
tooltips).
It would be good if either:
1. the rendering bug could be fixed Google-side
or
2. there were another mechanism to hide columns from appearing in the
tooltips. (meaning tooltips don't appear for rows which contain only
entries in the specified columns, and entries for these columns never
appear in tooltips even if there are other entries for the row)
Regards, Sam
========================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="
https://www.google.com/jsapi"></
script>
</head>
<body>
<div id="test" style="width:1000px; height:500px"></div>
<script type="text/javascript">
function start() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Year');
data.addColumn('number', 'Sales');
data.addColumn('number', 'Expenses');
data.addRows([
['2004', 1000, 400],
['2005', 1170, 460],
['2006', 660, 1120],
['2007', 1030, 540]
]);
var options = {
areaOpacity: 1.0,
isStacked: true,
series: [{
color: 'red',
lineWidth: 0
}, {
color: 'red',
lineWidth: 0
}
]};
var chart = new
google.visualization.AreaChart(document.getElementById('test'));
chart.draw(data, options);
}
google.load('visualization', '1.0', {'packages':['corechart']});
google.setOnLoadCallback(start);
</script>
</body>
</html>