Connecting Tech Pros Worldwide Help | Site Map

Table Drawing with jpgraph

  #1  
Old September 29th, 2005, 01:05 PM
J˙Giusł vs ::NRG::ius
Guest
 
Posts: n/a
Hi all.

How can I draw a table with jpgraph?
I want a table as image.

Thanks.

G:


  #2  
Old September 29th, 2005, 02:35 PM
Erwin Moller
Guest
 
Posts: n/a

re: Table Drawing with jpgraph


J˙Giusł vs ::NRG::ius wrote:
[color=blue]
> Hi all.
>
> How can I draw a table with jpgraph?
> I want a table as image.
>
> Thanks.
>
> G:[/color]

Hi,

Look in the examples in JPGraph.

look for a folder named: scr/Examples
It contains a zillion examples.
The excact answer to your question depends on what you excactly think a
table is. :-)

Good luck.

Regards,
Erwin Moller
  #3  
Old September 30th, 2005, 08:25 AM
J˙Giusł vs ::NRG::ius
Guest
 
Posts: n/a

re: Table Drawing with jpgraph


Hi all.
[color=blue]
> Look in the examples in JPGraph.
>
> look for a folder named: scr/Examples
> It contains a zillion examples.[/color]

Ehmmm...
Yes... a lot of examples, but there isn't any table.
I would like to draw something like...

+col 1 | col 2 |col3 +
| row | | |
| row | | |
| | | |

A simple table...

I tried to reuse a gantt graph - erasing the right side... but it is
not so simple.

Bye.

G.



  #4  
Old September 30th, 2005, 12:15 PM
Erwin Moller
Guest
 
Posts: n/a

re: Table Drawing with jpgraph


J˙Giusł vs ::NRG::ius wrote:
[color=blue]
> Hi all.
>[color=green]
>> Look in the examples in JPGraph.
>>
>> look for a folder named: scr/Examples
>> It contains a zillion examples.[/color]
>
> Ehmmm...
> Yes... a lot of examples, but there isn't any table.
> I would like to draw something like...
>
> +col 1 | col 2 |col3 +
> | row | | |
> | row | | |
> | | | |
>
> A simple table...
>
> I tried to reuse a gantt graph - erasing the right side... but it is
> not so simple.
>
> Bye.
>
> G.[/color]

Hi,

Ok, now I got it: You want a plain table.
Sorry to be slow.
Indeed, it is not in jpgraph.

Well, in that case: draw it yourself using the PHP functions.
It is some more work, but can be done.

One tip: Have a look at imagefontheight and imagefontwidth to calculate the
space needed. Maybe you have to implement word-breaks to fit in a wide
string in a column.

Maybe you can find a package that draws tables at www.phpclasses.org.

Good luck.

Regards,
Erwin Moller

Closed Thread