Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Pie Graphs
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
TomYoung




PostPosted: Tue Apr 05, 2011 5:24 pm   Post subject: Pie Graphs

Hey, So I am currently new to turing and I want to create a pie graph! Basicly I just need the background lines of to create a pie graph.


Well, too further, what I'm trying to do is that if let's say I ask the user.

How many drinks have you drank today:

Coca Cola : 2

Sprite : 1

Root Beer : 3


Now I would fill my pie graph with that data, but as you have read my problem is that I don't know how to start it up...?
Sponsor
Sponsor
Sponsor
sponsor
Raknarg




PostPosted: Tue Apr 05, 2011 6:03 pm   Post subject: RE:Pie Graphs

So... do you know any syntax? Becuase I could help, but I don't want to waste my time if you don't know anything yet...
If the answer is no, I would learn the language a bit first (there's a pretty thorough tutorial on this site).
If the answer is yes, then do you have any code yet?
Raknarg




PostPosted: Tue Apr 05, 2011 6:05 pm   Post subject: RE:Pie Graphs

Basically it would require knowledge of loops, drawing and a bit of trigonometry.
Zren




PostPosted: Tue Apr 05, 2011 6:09 pm   Post subject: RE:Pie Graphs

No trig is required actually if you use the built in modules.

Look up Draw.FillArc in the help files.
Raknarg




PostPosted: Tue Apr 05, 2011 6:12 pm   Post subject: RE:Pie Graphs

:O
Damn, why didn't I think of that??
oh yeah, cause I needed rotation Razz
Well, actually, listen to Zren, it's probs much simpler his way.
TomYoung




PostPosted: Tue Apr 05, 2011 6:14 pm   Post subject: Re: RE:Pie Graphs

Zren @ Tue Apr 05, 2011 6:09 pm wrote:
No trig is required actually if you use the built in modules.

Look up Draw.FillArc in the help files.


Thank you. I will definitely look at it.


Edit: WOW Thank you! Totally helped me alot. Very Happy

Edit2: Sorry for so many questions, but I will also need to input my data into a bar graph, is it just with the Draw.Box function, and the Draw.FillBox?
RandomLetters




PostPosted: Tue Apr 05, 2011 8:32 pm   Post subject: RE:Pie Graphs

Yes.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: