sangltdn / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Flot doesn't adjust plot when user zooms #259

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When increasing the font size in the browser, the bars on a bargraph poke
through the border.  Graph should scale when font changes.  

Original issue reported on code.google.com by SubtleKi...@gmail.com on 12 Nov 2009 at 7:05

Attachments:

GoogleCodeExporter commented 9 years ago
sized better

Original comment by SubtleKi...@gmail.com on 12 Nov 2009 at 7:10

Attachments:

GoogleCodeExporter commented 9 years ago
Hi!

Currently, you need to replot yourself, Flot won't try to detect these kind of 
changes.

Flot computes a fixed-size plot that consists of some font elements and the 
canvas
thing. The computation is based on the layout at the time when you do the plot. 
I
guess it's possible to somehow detect when the user zooms and do a replot 
internally
but I'm not sure how. I'm going to mark this as an enhancement for the time 
being in
case someone is interested in brewing a patch.

Original comment by olau%iol...@gtempaccount.com on 7 Dec 2009 at 3:58

GoogleCodeExporter commented 9 years ago
I´ve got the same problem. It´s not critical but it is annoying ...

Original comment by acido...@gmail.com on 10 Dec 2009 at 2:21

GoogleCodeExporter commented 9 years ago
Is there a way to make the y-axis autoscale depending on the zoomed-in viewable 
area only, and not on the total dataset?

Original comment by hussein....@gmail.com on 20 Jul 2010 at 9:04

GoogleCodeExporter commented 9 years ago
This may seem a bit odd, but I'm going to merge this into 459 which got a 
longer explanation.

Hussein: that's a different issue. For the record, the quick answer is that you 
can clip the data set yourself before passing it into Flot. But you may find 
you need to tweak that a bit, at least I did last time I experimented with it 
some years ago (that's part of the reason why Flot doesn't do it automatically).

Original comment by olau%iol...@gtempaccount.com on 10 Mar 2011 at 7:41

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 7 May 2012 at 11:29