473,581 Members | 3,046 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 2238
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******** *********@newsf e3-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**@charlto n-thomson.com> a écrit dans le message
de news: d8**********@nw rdmz03.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**@charlto n-thomson.com> a écrit dans le message
de news: d8*********@nwr dmz02.dmz.ncs.e a.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
2928
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 any (free) third party controls or ways around this to enable drawing? Any help would be most appreciated. -- James
2
12309
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 send to back feature etc. How can I do this .. where should I start?
2
1624
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
5646
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 using a 1pixel pictureBox. I also need "boxes" to be placed within that grid depending on data pulled from my dataset. I also used pictureBox controls...
0
1498
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 connecting point on the line. I meant connecting points like. Here I shall explain my requirements clearly thro' my coding: Private Sub...
7
2123
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 there a way to draw a "smoothed" circle ? Thanks in advance Stefano
5
2087
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 according to some law (a little bit like the solar system). I need also to have several fields aside the window, where the visitor can change values for...
4
2352
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 library (http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm). It turned out that that was too inefficient, and if you drew too many things on the...
1
2361
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 out with the header that is used for drawing concentric circles. thanks!
7
2136
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
7886
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7809
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8159
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7920
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5685
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5366
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3809
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3835
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2312
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 we have to send another system

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.