PHP Classes

setDrawProperties

Recommend this page to a friend!

      QGoogleVisualizationAPI  >  All threads  >  setDrawProperties  >  (Un) Subscribe thread alerts  
Subject:setDrawProperties
Summary:how does setDrawProperties work
Messages:4
Author:hp
Date:2009-02-12 16:07:12
Update:2009-02-12 23:20:49
 

  1. setDrawProperties   Reply   Report abuse  
Picture of hp hp - 2009-02-12 16:07:12
Dear Tom, thanks for this beautifull piece of code. Can you give me some pointers as to how setDrawProperties works? (this sets the height and other properties of the graphs , or doesn't it)

Thank, Hans-Peter

  2. Re: setDrawProperties   Reply   Report abuse  
Picture of Tom Schaefer Tom Schaefer - 2009-02-12 17:00:40 - In reply to message 1 from hp
Dear Hans-Peter,

$chart = new QBarchartGoogleGraph;
$chart ->addDrawProperties(
array(
"height" => 400,
"width" => 500,
"title"=>'Company Performance',
'isStacked'=>true,
)
);

This is s sample array . If you want to know, which properties can be set, then you 'll have to study the google vis api reference. I've implemented a method which builds the reference link to the google api for each class.

echo $chart->getReferenceLink();

At http://www.query4u.de/visapi I have settled the playground for the class.

I hope this helps.

Regards Tom Schaefer

  3. Re: setDrawProperties   Reply   Report abuse  
Picture of hp hp - 2009-02-12 23:19:01 - In reply to message 2 from Tom Schaefer
Thanks a million for the clear example.

  4. Re: setDrawProperties   Reply   Report abuse  
Picture of hp hp - 2009-02-12 23:20:49 - In reply to message 2 from Tom Schaefer
uh, you mean: http://www.query4u.de/vizapi/

:-)