Ejemplo n.º 1
0
        } else {
            if ($_GET['charts'] == 'status-source') {
                $flag = true;
                $data = $twitterDB->getStatusSource();
                $chart->load($data, 'array');
                $options = array('title' => 'Different types of sources used to tweet', 'is3D' => true, 'width' => 500, 'height' => 400);
            } else {
                if ($_GET['charts'] == 'favorite-count') {
                    $flag = true;
                    $data = $twitterDB->getFavoriteCount();
                    $chart->load($data, 'array');
                    $options = array('title' => 'Favorite count', 'is3D' => true, 'width' => 500, 'height' => 400);
                } else {
                    if ($_GET['charts'] == 'max-retweet-count') {
                        $flag = true;
                        $data = $twitterDB->getMaxRetweetCount();
                        $chart->load($data, 'array');
                        $options = array('title' => 'Max retweet analytics', 'is3D' => true, 'width' => 500, 'height' => 400);
                    }
                }
            }
        }
    }
    if ($flag) {
        echo $chart->draw('my_div', $options);
    }
}
?>
<link href="css/bootstrap.min.css" rel="stylesheet">   
<!-- Custom styles for this template -->
<link href="css/twitter.css" rel="stylesheet">