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
27883ac9
Commit
27883ac9
authored
Apr 20, 2014
by
David Schnur
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1290 from dnschnur/axis-labels-fix
Revert #1200; it was causing #1283 breakages.
parents
2a3e3cd4
0beb104e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
jquery.flot.js
jquery.flot.js
+2
-7
No files found.
jquery.flot.js
View file @
27883ac9
...
@@ -1550,17 +1550,12 @@ Licensed under the MIT license.
...
@@ -1550,17 +1550,12 @@ Licensed under the MIT license.
// jump as much around with replots
// jump as much around with replots
$
.
each
(
allAxes
(),
function
(
_
,
axis
)
{
$
.
each
(
allAxes
(),
function
(
_
,
axis
)
{
if
(
axis
.
reserveSpace
&&
axis
.
ticks
&&
axis
.
ticks
.
length
)
{
if
(
axis
.
reserveSpace
&&
axis
.
ticks
&&
axis
.
ticks
.
length
)
{
var
lastTick
=
axis
.
ticks
[
axis
.
ticks
.
length
-
1
];
if
(
axis
.
direction
===
"x"
)
{
if
(
axis
.
direction
===
"x"
)
{
margins
.
left
=
Math
.
max
(
margins
.
left
,
axis
.
labelWidth
/
2
);
margins
.
left
=
Math
.
max
(
margins
.
left
,
axis
.
labelWidth
/
2
);
if
(
lastTick
.
v
<=
axis
.
max
)
{
margins
.
right
=
Math
.
max
(
margins
.
right
,
axis
.
labelWidth
/
2
);
margins
.
right
=
Math
.
max
(
margins
.
right
,
axis
.
labelWidth
/
2
);
}
}
else
{
}
else
{
margins
.
bottom
=
Math
.
max
(
margins
.
bottom
,
axis
.
labelHeight
/
2
);
margins
.
bottom
=
Math
.
max
(
margins
.
bottom
,
axis
.
labelHeight
/
2
);
if
(
lastTick
.
v
<=
axis
.
max
)
{
margins
.
top
=
Math
.
max
(
margins
.
top
,
axis
.
labelHeight
/
2
);
margins
.
top
=
Math
.
max
(
margins
.
top
,
axis
.
labelHeight
/
2
);
}
}
}
}
}
});
});
...
...
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