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
87f9c782
Commit
87f9c782
authored
Apr 20, 2013
by
David Schnur
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1023 from danxshap/time_fix
Remove some incorrect else-if logic in time plugin.
parents
bb525187
a35c7ab6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
jquery.flot.time.js
jquery.flot.time.js
+12
-6
No files found.
jquery.flot.time.js
View file @
87f9c782
...
@@ -294,17 +294,23 @@ API.txt for details.
...
@@ -294,17 +294,23 @@ API.txt for details.
if
(
step
>=
timeUnitSize
.
minute
)
{
if
(
step
>=
timeUnitSize
.
minute
)
{
d
.
setSeconds
(
0
);
d
.
setSeconds
(
0
);
}
else
if
(
step
>=
timeUnitSize
.
hour
)
{
}
if
(
step
>=
timeUnitSize
.
hour
)
{
d
.
setMinutes
(
0
);
d
.
setMinutes
(
0
);
}
else
if
(
step
>=
timeUnitSize
.
day
)
{
}
if
(
step
>=
timeUnitSize
.
day
)
{
d
.
setHours
(
0
);
d
.
setHours
(
0
);
}
else
if
(
step
>=
timeUnitSize
.
day
*
4
)
{
}
if
(
step
>=
timeUnitSize
.
day
*
4
)
{
d
.
setDate
(
1
);
d
.
setDate
(
1
);
}
else
if
(
step
>=
timeUnitSize
.
month
*
2
)
{
}
if
(
step
>=
timeUnitSize
.
month
*
2
)
{
d
.
setMonth
(
floorInBase
(
d
.
getMonth
(),
3
));
d
.
setMonth
(
floorInBase
(
d
.
getMonth
(),
3
));
}
else
if
(
step
>=
timeUnitSize
.
quarter
*
2
)
{
}
if
(
step
>=
timeUnitSize
.
quarter
*
2
)
{
d
.
setMonth
(
floorInBase
(
d
.
getMonth
(),
6
));
d
.
setMonth
(
floorInBase
(
d
.
getMonth
(),
6
));
}
else
if
(
step
>=
timeUnitSize
.
year
)
{
}
if
(
step
>=
timeUnitSize
.
year
)
{
d
.
setMonth
(
0
);
d
.
setMonth
(
0
);
}
}
...
...
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