473,511 Members | 14,981 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drawing circles in php

Hi,

I am passing 8 values each from 1 to 10 to a php page and at the moment I am
drawing a bar chart using shaded cells to represent the magnitude of each
bar.

I would also like to draw these values into a pie chart ... can anyone tell
me if this is possible? If so can you point me to some example code?

Help appreciated.

Paul.
Jul 17 '05 #1
7 2231
Paul Charlton-Thomson said the following on 10/06/2005 23:33:
Hi,

I am passing 8 values each from 1 to 10 to a php page and at the moment I am
drawing a bar chart using shaded cells to represent the magnitude of each
bar.

I would also like to draw these values into a pie chart ... can anyone tell
me if this is possible? If so can you point me to some example code?


I doubt there's any built-in pie-chart functions in PHP, but it's not
hard to draw your own.


--
Oli
Jul 17 '05 #2
Oli Filth said the following on 11/06/2005 01:54:
Paul Charlton-Thomson said the following on 10/06/2005 23:33:
Hi,

I am passing 8 values each from 1 to 10 to a php page and at the
moment I am
drawing a bar chart using shaded cells to represent the magnitude of each
bar.

I would also like to draw these values into a pie chart ... can anyone
tell
me if this is possible? If so can you point me to some example code?


I doubt there's any built-in pie-chart functions in PHP, but it's not
hard to draw your own.


Sorry, I didn't finish what I was gonna say!

There's functions such as imagefilledarc(), which would probably be
enough to do what you want.

http://uk2.php.net/manual/en/functio...efilledarc.php
--
Oli
Jul 17 '05 #3
Thank Oli,

Looks like I have some more learning to do ...

Paul.

"Oli Filth" <ca***@olifilth.co.uk> wrote in message
news:LE*****************@newsfe3-gui.ntli.net...
Oli Filth said the following on 11/06/2005 01:54:
Paul Charlton-Thomson said the following on 10/06/2005 23:33:
Hi,

I am passing 8 values each from 1 to 10 to a php page and at the
moment I am
drawing a bar chart using shaded cells to represent the magnitude of each bar.

I would also like to draw these values into a pie chart ... can anyone
tell
me if this is possible? If so can you point me to some example code?


I doubt there's any built-in pie-chart functions in PHP, but it's not
hard to draw your own.


Sorry, I didn't finish what I was gonna say!

There's functions such as imagefilledarc(), which would probably be
enough to do what you want.

http://uk2.php.net/manual/en/functio...efilledarc.php
--
Oli

Jul 17 '05 #4
"Paul Charlton-Thomson" <pa**@charlton-thomson.com> a écrit dans le message
de news: d8**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Hi,

I am passing 8 values each from 1 to 10 to a php page and at the moment I am drawing a bar chart using shaded cells to represent the magnitude of each
bar.

I would also like to draw these values into a pie chart ... can anyone tell me if this is possible? If so can you point me to some example code?

Help appreciated.


Hi ,
Only one word : JpGraph :
http://www.aditus.nu/jpgraph/index.php

Bye,

--
http://www.danstesyeux.com
Jul 17 '05 #5
I second jpgraph. It's an excellent php library for drawing all kinds
of graphs. It's also pretty popular, so you would get good support from
users and chances are it might already be on the server.

Jul 17 '05 #6
Thanks,

Sadly I have been upgraded to PHP5 and JpGraph doesn't work with 5.0

Have got it working with GD2.0 in PHP5 :-)

Hi ,
Only one word : JpGraph :
http://www.aditus.nu/jpgraph/index.php

Bye,

--
http://www.danstesyeux.com

Jul 17 '05 #7
"Paul Charlton-Thomson" <pa**@charlton-thomson.com> a écrit dans le message
de news: d8*********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
Thanks,

Sadly I have been upgraded to PHP5 and JpGraph doesn't work with 5.0

Have got it working with GD2.0 in PHP5 :-)


Read this :
http://www.aditus.nu/jpgraph/jpdownload.php

" Note: The 2.x series is only for PHP5. It will not work on PHP4 "

Doesn't work with PHP 5 ??!!
Jul 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2923
by: James Beswick | last post by:
I want to do some primitive graphics work - drawing circles, squares, lines and enable the user to manipulate these on an Access form. All the drawing methods are on the report object so are there...
2
12292
by: Champika Nirosh | last post by:
Hi, I want to create drawing board application that can draw Line, rectagle, circle and free hand drawing. Each drawing need to be transparent, moveable (draggable), have bring to front and...
2
1620
by: Daniel | last post by:
how come when i do oGraphics.FillEllipse it draws blury? is there anyway to adjust this default compression to not be blury when drawing a simple ellipse?
8
5640
by: Benoit Martin | last post by:
I had to draw my own control because I couldn't find any control doing what I wanted it to do. This control has a grid that I need to have control over. To do that, I draw each line of the grid...
0
1485
by: Ranjit | last post by:
Hi, I would like to know how to place circles in the connecting points of the lines, and very close to the circles I would like to place the values like a,b,c...etc automatically for each...
7
2116
by: Stefan0 | last post by:
Hi, I'd like to draw a circle on the screen using GDI+ I'm using the DrawEllipse method with width = height and I set the SmootingMode to SmoothingModeAntiAlias but the circle is "squared". Is...
5
2080
by: barbaros | last post by:
Hello everybody, I need to put some dynamic drawings on my web page. More precisely, I need to draw a number of geometric figures (circles, rectangles) which evolve into a graphics windows...
4
2348
by: jason.m.ho | last post by:
Hello, I am writing a no-plugin networked Sketchpad program (DHTML, Comet/Ajax). Because I am trying to avoid using Flash or Java Applet, I rendered my strokes at first with the wz_jsgraphics...
1
2352
by: meyboat | last post by:
hello there, i just started writing some simple programs in c plus plus and now on another one , which is suppose to draw concentric circles. having some difficulties and wondering if u could help me...
7
2131
by: serave | last post by:
Hi i'm new in this group. I need some help with php. I need to draw any mathematical function i get through a form? Please help me
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7417
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4734
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3219
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.