google chart tool + JSF

226 views
Skip to first unread message

junior java

unread,
May 15, 2012, 11:10:00 AM5/15/12
to Google Chart API
I would love to use this powerful tool in my java projects + JSF +
richfaces .. can anyone give me a hint how to do?

<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(drawChart);
function drawChart() {
var data = MY
BEAN ????????????????????????????????????????????????????/

var options = {
title: 'My Daily Activities'
};

var chart = new
google.visualization.PieChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="chart_div" style="width: 900px; height: 500px;"></div>
</body>
</html>
Reply all
Reply to author
Forward
0 new messages