Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Creating Pie chart based graph network

by choroba (Chancellor)
on Sep 25, 2013 at 12:39 UTC ( #1055677=note: print w/replies, xml ) Need Help??


in reply to Creating Pie chart based graph network

What have you tried? Please, provide a sample code that shows how far you have got. Also, try to be more cooperative by providing links to the libraries: [mod://Tk::GraphItems]Tk::GraphItems, [mod://Tk::Chart]Tk::Chart; and by providing more information on what you need: What do you mean by crosslinking? Tk::Canvas is very powerful...
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Creating Pie chart based graph network
by KuntalBhusan (Acolyte) on Sep 25, 2013 at 13:15 UTC

    I have a file consisting of some nodes (and edges) with the coordinates of the nodes. I also need to map some data specific to the nodes that are in form of pie charts.Here is a cropped snipped of the code.

    my $index = 0; if(open(FH, 'layout_coords')) { while($line = <FH>) { chomp($line); @arr = (); @arr = split('\t', $line ); my $label = $node_labels[$index]; my $x = $arr[0]; my $y = $arr[1]; my $x1 = $x + 20; my $y1 = $y + 20; $canvas->createOval($x,$y, $x1, $y1,-fill => 'green'); ## I need this +oval as a pie (I have the data for each node in form of a fixed array + like (2,3,1,3), etc.) $canvas->createText($x,$y, -text => $label); $index++; } } else { die "can't open file layout_coords: $!"; } close FH;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055677]
help
Chatterbox?
[ambrus]: MLX: if it's a work email, then it's probably not Uncle Sam that matters, but what the account managing server at work thinks your name is. Those can differ. For example, we've had two co-workers with identical real name at one point,
[ambrus]: so one got a stupid suffix in the email account (people have email address based on their real name here usually).

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (14)
As of 2017-01-19 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.