graph height is growing?!?

1 view
Skip to first unread message

Al C

unread,
Aug 6, 2009, 4:33:08 PM8/6/09
to Flotr Javascript Plotting Library
I have a page that displays that displays a set of graphs showing
daily, weekly, monthly and annual results. I'm using an Ajax
PeriodicalUpdater to cycle between the graphs (i.e., on a 60 sec
interval, the graph changes from the daily to the weekly, etc and then
back to the daily). I have separate div tags for each of the graphs;
the 2nd, 3rd & 4th div's initially are not shown (i.e., their display
is set to none).

All of that stuff appears to be working fine with the exception that
the height of the graph increases each time it is redrawn. This
occurs in spite of the fact that the divs in which the graphs are
displayed each have their height set to 375px.

Any clues as to why this might be happening?

TIA

Al

Fabien Ménager

unread,
Aug 16, 2009, 7:07:44 AM8/16/09
to Flotr Javascript Plotting Library
Hello, what version are you using ? Do you show the spreadsheet (with
the option spreadsheet.show = true) ?
How many pixels is it growing each time ?
Do you manipulate the container div's size when you switch the
graphs ?

Al Caughey

unread,
Aug 17, 2009, 2:59:44 PM8/17/09
to fl...@googlegroups.com
I'm using Flotr 0.2.0-alpha & prototype 1.6.0.3
Yes I am showing the spreadsheet
Not sure how many pixels.

No - I simply show/hide the div.

Al

Al Caughey

unread,
Aug 17, 2009, 3:35:32 PM8/17/09
to fl...@googlegroups.com
It appears that the graph is growing by 23 pixels...

On Sun, Aug 16, 2009 at 7:07 AM, Fabien Ménager <fabien....@gmail.com> wrote:

Fabien Ménager

unread,
Aug 17, 2009, 3:44:11 PM8/17/09
to Flotr Javascript Plotting Library
You should use the trunk version, available here :
http://flotr.googlecode.com/svn/trunk/flotr/flotr/prototype/flotr.js
and all the libs here : http://code.google.com/p/flotr/source/browse/#svn/trunk/flotr/flotr/prototype/lib
By using the "Raw file" link on the right of each lib's page

or simply by using Subversion

This is a known bug, which has been fixed in the version I'm telling
you

Good luck !

On Aug 17, 9:35 pm, Al Caughey <al.caug...@gmail.com> wrote:
> It appears that the graph is growing by 23 pixels...
>
Reply all
Reply to author
Forward
0 new messages