Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / PIE CHART GRAPH Function?

Author
Message
Mega Publishers
16
Years of Service
User Offline
Joined: 17th Dec 2007
Location:
Posted: 18th Apr 2008 01:52
I have tried and tried to make a function that draws a 3 color GRAPH/PIE CHART in Dark Basic Pro. A graph like the PIE CHARTS in MS POWER POINT, that shows segments A, B, C, all different colors. How would I go about doing this?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 18th Apr 2008 07:58 Edited at: 18th Apr 2008 08:25
here's something that might give you a start, hope your good at reading code as I tried to comment it but my have miss a few, this graph ploting was made to work with real time input form a device I had connected to the system.

the quotient# part is a way of making sure that the data collected will never polt off the screen or image, keeping it in check.
maxValue is how big the input can be or you've work out can be for the above.

anyway give it a go you might see were to go with it.



edit
opps just re read the title. well you've got bars, pies are 360 so it would be angles of that filled in.

Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-09-27 14:26:38
Your offset time is: 2024-09-27 14:26:38