PHP Classes

File: sample.wordcloud.php

Recommend this page to a friend!
  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: 15 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(
0, 0, 'This is a test'),
                array(
0, 1, 'This test is quite hard'),
                array(
1, 0, 'A hard test or not?'),
                array(
1, 1, 'This was not too hard'),
                array(
2, 0, 'Hard hard hard this is so hard !!!'),
                array(
2, 1, 'For every test there is a solution. For every one'),
            )
        );
echo
$chart->render();

echo
$chart->getReferenceLink();


?></body>
</html>