Hi,
  I dynamically plotted graphs using GD::Graph::bars in perl with the data 
from a database. The bars have fixed width for a particular plot and there 
is no spacing between the bars.....If there are many bars in the plot , the  
width of each bar reduces and if there are less number of bars the width of 
each bar increases....
  I am facing a problem with the plot - the bars do not start at a fixed 
point on the X-axis, as in if there are many bars on the graph, the starting 
position of the bars is shifted more close to the Y-axis and if there
are less number of bars the bars start from a point which is little away 
from the Y-axis and the width of each bar also reduces and increases 
accordingly.... the width of the bars is not an issue , but the starting 
point of the bars bothers me. I observed that for some graphs the space 
between the axis and the starting point of the bars is equal to 3times the 
width of each bar...but this space is not the same for all the graphs.... 
and this is creating a major problem..all the plotting i have done goes 
waste if i cannot figure out where the bar start , because I need to get 
data from the database accordingly for each bar, and display them when the 
OnmouseOver event is invoked. So, if do not know where each bar starts and 
ends  exactly , the data i provide will not be precise.....
I hope you understood my problem; So ,  how i can  figure out where exactly 
the bars start ..is there any algorithm that determines the starting 
position of the bars ..if so , then can somebody let
me know that.... I have been trying since almost a month to fix this , but 
am unable to.....
         Thanx,
          Mrudula..
PS:I am sending a couple of  html files as attachments... demo1.html has a 
proper graph - click on any bar and it can be observed that the bar is 
exactly within the boundry.. demo2 has the graph which has the 
problem...i.e. the bars are shifted ... when clicked on any bar , the 
difference can be observed......


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to