Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.wordcloud.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  QGoogleVisualizationAPI  >  sample.wordcloud.php  >  Download  
File: sample.wordcloud.php
Role: Example script
Content type: text/plain
Description: Word Cloud Sample
Class: QGoogleVisualizationAPI
Google Visualization API (deprecated)
Author: By
Last change:
Date: 6 years ago
Size: 656 bytes
 

Contents

Class file image Download
<html>
<head>
</head>

<body>
<?php

include_once 'config.inc.php';


$chart = new QWordcloudGoogleGraph;
$chart    ->noPackage()
        ->
addColumns(array(array('string''Text1'),array('string''Text1')))
        ->
setValues(
            array(
                array(
00'This is a test'),
                array(
01'This test is quite hard'),
                array(
10'A hard test or not?'),
                array(
11'This was not too hard'),
                array(
20'Hard hard hard this is so hard !!!'),
                array(
21'For every test there is a solution. For every one'),
            )
        );
echo 
$chart->render();

echo 
$chart->getReferenceLink();


?></body>
</html>