Hi,
I try to combine google chart api (interactive charts) with the newest version of BIRT.
I am using a Text Report Item in HTML Mode with the following content:
<html>
<head>
<script type='text/javascript' src='
http://www.google.com/jsapi'></script>
<script type='text/javascript'>
google.load('visualization', '1', {packages:});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Label');
data.addColumn('number', 'Value');
data.addRows(3);
data.setValue(0, 0, 'Memory');
data.setValue(0, 1, 80);
data.setValue(1, 0, 'CPU');
data.setValue(1, 1, 55);
data.setValue(2, 0, 'Network');
data.setValue(2, 1, 68);
var chart = new google.visualization.Gauge(document.getElementById('chart_div'));
var options = {width: 400, height: 120, redFrom: 90, redTo: 100,
yellowFrom:75, yellowTo: 90, minorTicks: 5};
chart.draw(data, options);
}
</script>
</head>
<body>
<div id='chart_div'></div>
</body>
</html>
When I render the report I see nothing (no error or something else)..
Has anybody tried to use google chart api within BIRT?
Any Ideas?
Thank you very much!