Hi,
Could you please provide more information on how to use this library in nuBuilderPro?
Thank you.
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
RGraph library
-
- Posts: 177
- Joined: Tue Nov 15, 2011 2:24 pm
Re: RGraph library
Rui,
We actually use google charts now. Here's how..
1.Create a php snippet.
(sample code below)
2.Create an Iframe object.
Steven
We actually use google charts now. Here's how..
1.Create a php snippet.
(sample code below)
Code: Select all
ob_start();
$gg = "
<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 = google.visualization.arrayToDataTable([
['Task', 'Hours per Day'],
['Work', 11],
['Eat', 2],
['Commute', 2],
['Watch TV', 2],
['Sleep', 7]
]);
var options = {
title: 'My Daily Activities'
};
var chart = new google.visualization.PieChart(document.getElementById('piechart'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id='piechart' style='width: 400px; height: 400px;'></div>
</body>
</html>
";
ob_end_clean();
echo $gg;
Steven
You do not have the required permissions to view the files attached to this post.
-
- Posts: 177
- Joined: Tue Nov 15, 2011 2:24 pm