Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
flot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HS-public
flot
Commits
3aec7ce0
Commit
3aec7ce0
authored
Apr 13, 2014
by
David Schnur
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1221 from soenter/master
Improve the performance of large data processing
parents
b36246bb
38f7a8c5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
index.html
examples/selection/index.html
+8
-6
index.html
examples/visitors/index.html
+8
-7
No files found.
examples/selection/index.html
View file @
3aec7ce0
...
...
@@ -67,12 +67,14 @@
var
zoom
=
$
(
"#zoom"
).
attr
(
"checked"
);
if
(
zoom
)
{
plot
=
$
.
plot
(
placeholder
,
data
,
$
.
extend
(
true
,
{},
options
,
{
xaxis
:
{
min
:
ranges
.
xaxis
.
from
,
max
:
ranges
.
xaxis
.
to
}
}));
$
.
each
(
plot
.
getXAxes
(),
function
(
_
,
axis
)
{
var
opts
=
axis
.
options
;
opts
.
min
=
ranges
.
xaxis
.
from
;
opts
.
max
=
ranges
.
xaxis
.
to
;
});
plot
.
setupGrid
();
plot
.
draw
();
plot
.
clearSelection
();
}
});
...
...
examples/visitors/index.html
View file @
3aec7ce0
...
...
@@ -92,13 +92,14 @@
$
(
"#placeholder"
).
bind
(
"plotselected"
,
function
(
event
,
ranges
)
{
// do the zooming
plot
=
$
.
plot
(
"#placeholder"
,
[
d
],
$
.
extend
(
true
,
{},
options
,
{
xaxis
:
{
min
:
ranges
.
xaxis
.
from
,
max
:
ranges
.
xaxis
.
to
}
}));
$
.
each
(
plot
.
getXAxes
(),
function
(
_
,
axis
)
{
var
opts
=
axis
.
options
;
opts
.
min
=
ranges
.
xaxis
.
from
;
opts
.
max
=
ranges
.
xaxis
.
to
;
});
plot
.
setupGrid
();
plot
.
draw
();
plot
.
clearSelection
();
// don't fire event on the overview to prevent eternal loop
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment