troubleshooting Question

Urgent!!!

Avatar of sureshp
sureshp asked on
Perl
20 Comments1 Solution301 ViewsLast Modified:
Hi all,

Using Perl Script I would like to plot graph for the following data.

Order      Start Date      Start Time      Set      Run
---------------------------------------------------
12345      22-05-2005      19:00            1:00      3:00
78910      23-05-2005      6:00            2:00      4:00
24689      23-05-2005      18:00            2:00      1:00
8765      24-05-2005      8:00            2:00      3:00

The above said data is stored in a hash.

The HTMLpage contains two columns, Each column contain 1 to 24 divisions for hrs(24hrs per day).
For each order , I would like to plot the graph using Start date,start time,set and run.

For ex: for 1st set of data given above... order is 12345, starttime is 19:00 and set should start from 19th division and end in 20th division(1 unit move) and colour for this area is "red"(like bar graph). and run will end in 23rd position after moving 3 divisions from set position(20th div) and fill the cell by green color. Next date will be in next column and order(78910) starts from 6th division and set will end in 8th division(colour red) and run will end in 12th position(green). like next set of values... Finally the graph should be displayed in browser(IE).

Sample page view for the given data...

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
                                       22-05-2005 Order-12345         23-05-2005 Order-78910          Order-24689    
                                                         <.R.><..green..>                 <.R..><.G>
                                    <.R.><..green>
  24-05-2005 Order-8765
              <.R.><.Green.>


-------------------------------------------------------------------------

<R.> FOR to fill red colour(Set) and <green> to fill green colour(Run)

Which module will support to do this problem? GD can be used or is it possible to draw graph without using CPAN module?
Can you please provide a code for my sample data?
 


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 20 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 20 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros