Horz zoom, vertical fixed, scrollbar

110 views
Skip to first unread message

DaveCline

unread,
Feb 9, 2012, 8:58:15 PM2/9/12
to Flot graphs
Tribe,
I am humbled the by functionality of Flot, and eternally thankful to
the developers. If our site ever makes any money I'll be sure to
compensate you handsomely.

I'm looking for clues to setting the following:

Horizontal zoom on mousewheel scroll. That is, expand sideways, while
remaining fixed in the Y axis scale.
Panning side to side up to the extents of the chart who's dimensions
are unknown at the time of the plotting.
Although grab and drag is good for panning some clients would like to
see a horizontal scroll bar to be able to shift from 0 to max.

Any clues would be helpful. I've got some of it work "kind of" but the
scrollbar I think is an option not currently discussed anywhere.

Many thanks for any who might contribute.

Regards,
DC

DaveCline

unread,
Feb 10, 2012, 7:35:00 PM2/10/12
to Flot graphs
zoom: { interactive: true },
pan: { interactive: true },
xaxes: [{ zoomRange: [0, 100], panRange: [0, 100] }],
yaxes: [{ zoomRange: [0, 0], panRange: [-1, 1] }]
Reply all
Reply to author
Forward
0 new messages