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
360e57dc
Commit
360e57dc
authored
May 04, 2012
by
David Schnur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanup on recently-merged code, for consistency.
parent
e7634c64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
jquery.flot.js
jquery.flot.js
+13
-13
No files found.
jquery.flot.js
View file @
360e57dc
...
...
@@ -665,25 +665,25 @@
}
}
}
if
(
s
.
bars
.
show
)
{
// make sure we got room for the bar on the dancing floor
var
delta
;
switch
(
s
.
bars
.
align
)
{
case
'left'
:
case
"left"
:
delta
=
0
;
break
;
case
'right'
:
case
"right"
:
delta
=
-
s
.
bars
.
barWidth
;
break
;
case
'center'
:
case
"center"
:
delta
=
-
s
.
bars
.
barWidth
/
2
;
break
;
default
:
throw
'Invalid bar alignment: '
+
s
.
bars
.
align
;
throw
new
Error
(
"Invalid bar alignment: "
+
s
.
bars
.
align
)
;
}
if
(
s
.
bars
.
horizontal
)
{
ymin
+=
delta
;
ymax
+=
delta
+
s
.
bars
.
barWidth
;
...
...
@@ -2225,23 +2225,23 @@
// FIXME: figure out a way to add shadows (for instance along the right edge)
ctx
.
lineWidth
=
series
.
bars
.
lineWidth
;
ctx
.
strokeStyle
=
series
.
color
;
var
barLeft
;
switch
(
series
.
bars
.
align
)
{
case
'left'
:
case
"left"
:
barLeft
=
0
;
break
;
case
'right'
:
case
"right"
:
barLeft
=
-
series
.
bars
.
barWidth
;
break
;
case
'center'
:
case
"center"
:
barLeft
=
-
series
.
bars
.
barWidth
/
2
;
break
;
default
:
throw
'Invalid bar alignment: '
+
series
.
bars
.
align
;
throw
new
Error
(
"Invalid bar alignment: "
+
series
.
bars
.
align
)
;
}
var
fillStyleCallback
=
series
.
bars
.
fill
?
function
(
bottom
,
top
)
{
return
getFillStyle
(
series
.
bars
,
series
.
color
,
bottom
,
top
);
}
:
null
;
plotBars
(
series
.
datapoints
,
barLeft
,
barLeft
+
series
.
bars
.
barWidth
,
0
,
fillStyleCallback
,
series
.
xaxis
,
series
.
yaxis
);
ctx
.
restore
();
...
...
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