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
05dfea77
Commit
05dfea77
authored
May 27, 2013
by
David Schnur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert single-quoted strings to double-quotes.
parent
e1684b46
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
89 additions
and
89 deletions
+89
-89
jquery.colorhelpers.js
jquery.colorhelpers.js
+1
-1
jquery.flot.categories.js
jquery.flot.categories.js
+2
-2
jquery.flot.crosshair.js
jquery.flot.crosshair.js
+2
-2
jquery.flot.errorbars.js
jquery.flot.errorbars.js
+20
-20
jquery.flot.image.js
jquery.flot.image.js
+3
-3
jquery.flot.js
jquery.flot.js
+24
-24
jquery.flot.navigate.js
jquery.flot.navigate.js
+6
-6
jquery.flot.resize.js
jquery.flot.resize.js
+2
-2
jquery.flot.selection.js
jquery.flot.selection.js
+4
-4
jquery.flot.stack.js
jquery.flot.stack.js
+2
-2
jquery.flot.symbol.js
jquery.flot.symbol.js
+2
-2
jquery.flot.threshold.js
jquery.flot.threshold.js
+2
-2
jquery.flot.time.js
jquery.flot.time.js
+19
-19
No files found.
jquery.colorhelpers.js
View file @
05dfea77
...
...
@@ -78,7 +78,7 @@
c
=
elem
.
css
(
css
).
toLowerCase
();
// keep going until we find an element that has color, or
// we hit the body
if
(
c
!==
''
&&
c
!=
'transparent'
)
if
(
c
!==
""
&&
c
!=
"transparent"
)
break
;
elem
=
elem
.
parent
();
}
while
(
!
$
.
nodeName
(
elem
.
get
(
0
),
"body"
));
...
...
jquery.flot.categories.js
View file @
05dfea77
...
...
@@ -184,7 +184,7 @@ as "categories" on the axis object, e.g. plot.getAxes().xaxis.categories.
$
.
plot
.
plugins
.
push
({
init
:
init
,
options
:
options
,
name
:
'categories'
,
version
:
'1.0'
name
:
"categories"
,
version
:
"1.0"
});
})(
jQuery
);
jquery.flot.crosshair.js
View file @
05dfea77
...
...
@@ -170,7 +170,7 @@ The plugin also adds four public methods:
$
.
plot
.
plugins
.
push
({
init
:
init
,
options
:
options
,
name
:
'crosshair'
,
version
:
'1.0'
name
:
"crosshair"
,
version
:
"1.0"
});
})(
jQuery
);
jquery.flot.errorbars.js
View file @
05dfea77
...
...
@@ -67,8 +67,8 @@ shadowSize and lineWidth are derived as well from the points series.
series
:
{
points
:
{
errorbars
:
null
,
//should be 'x', 'y' or 'xy'
xerr
:
{
err
:
'x'
,
show
:
null
,
asymmetric
:
null
,
upperCap
:
null
,
lowerCap
:
null
,
color
:
null
,
radius
:
null
},
yerr
:
{
err
:
'y'
,
show
:
null
,
asymmetric
:
null
,
upperCap
:
null
,
lowerCap
:
null
,
color
:
null
,
radius
:
null
}
xerr
:
{
err
:
"x"
,
show
:
null
,
asymmetric
:
null
,
upperCap
:
null
,
lowerCap
:
null
,
color
:
null
,
radius
:
null
},
yerr
:
{
err
:
"y"
,
show
:
null
,
asymmetric
:
null
,
upperCap
:
null
,
lowerCap
:
null
,
color
:
null
,
radius
:
null
}
}
}
};
...
...
@@ -85,7 +85,7 @@ shadowSize and lineWidth are derived as well from the points series.
var
errors
=
series
.
points
.
errorbars
;
// error bars - first X then Y
if
(
errors
==
'x'
||
errors
==
'xy'
)
{
if
(
errors
==
"x"
||
errors
==
"xy"
)
{
// lower / upper error
if
(
series
.
points
.
xerr
.
asymmetric
)
{
format
.
push
({
x
:
true
,
number
:
true
,
required
:
true
});
...
...
@@ -93,7 +93,7 @@ shadowSize and lineWidth are derived as well from the points series.
}
else
format
.
push
({
x
:
true
,
number
:
true
,
required
:
true
});
}
if
(
errors
==
'y'
||
errors
==
'xy'
)
{
if
(
errors
==
"y"
||
errors
==
"xy"
)
{
// lower / upper error
if
(
series
.
points
.
yerr
.
asymmetric
)
{
format
.
push
({
y
:
true
,
number
:
true
,
required
:
true
});
...
...
@@ -118,25 +118,25 @@ shadowSize and lineWidth are derived as well from the points series.
var
eb
=
series
.
points
.
errorbars
;
// error bars - first X
if
(
eb
==
'x'
||
eb
==
'xy'
)
{
if
(
eb
==
"x"
||
eb
==
"xy"
)
{
if
(
xerr
.
asymmetric
)
{
exl
=
points
[
i
+
2
];
exu
=
points
[
i
+
3
];
if
(
eb
==
'xy'
)
if
(
eb
==
"xy"
)
if
(
yerr
.
asymmetric
){
eyl
=
points
[
i
+
4
];
eyu
=
points
[
i
+
5
];
}
else
eyl
=
points
[
i
+
4
];
}
else
{
exl
=
points
[
i
+
2
];
if
(
eb
==
'xy'
)
if
(
eb
==
"xy"
)
if
(
yerr
.
asymmetric
)
{
eyl
=
points
[
i
+
3
];
eyu
=
points
[
i
+
4
];
}
else
eyl
=
points
[
i
+
3
];
}
// only Y
}
else
if
(
eb
==
'y'
)
}
else
if
(
eb
==
"y"
)
if
(
yerr
.
asymmetric
)
{
eyl
=
points
[
i
+
2
];
eyu
=
points
[
i
+
3
];
...
...
@@ -206,10 +206,10 @@ shadowSize and lineWidth are derived as well from the points series.
lower
=
[
x
,
y
][
e
]
-
errRanges
[
e
*
err
.
length
];
//points outside of the canvas
if
(
err
[
e
].
err
==
'x'
)
if
(
err
[
e
].
err
==
"x"
)
if
(
y
>
ax
[
1
].
max
||
y
<
ax
[
1
].
min
||
upper
<
ax
[
0
].
min
||
lower
>
ax
[
0
].
max
)
continue
;
if
(
err
[
e
].
err
==
'y'
)
if
(
err
[
e
].
err
==
"y"
)
if
(
x
>
ax
[
0
].
max
||
x
<
ax
[
0
].
min
||
upper
<
ax
[
1
].
min
||
lower
>
ax
[
1
].
max
)
continue
;
...
...
@@ -227,7 +227,7 @@ shadowSize and lineWidth are derived as well from the points series.
}
//sanity check, in case some inverted axis hack is applied to flot
if
((
err
[
e
].
err
==
'x'
&&
invertX
)
||
(
err
[
e
].
err
==
'y'
&&
invertY
))
{
if
((
err
[
e
].
err
==
"x"
&&
invertX
)
||
(
err
[
e
].
err
==
"y"
&&
invertY
))
{
//swap coordinates
var
tmp
=
lower
;
lower
=
upper
;
...
...
@@ -280,7 +280,7 @@ shadowSize and lineWidth are derived as well from the points series.
lower
+=
offset
;
// error bar - avoid plotting over circles
if
(
err
.
err
==
'x'
){
if
(
err
.
err
==
"x"
){
if
(
upper
>
x
+
radius
)
drawPath
(
ctx
,
[[
upper
,
y
],[
Math
.
max
(
x
+
radius
,
minmax
[
0
]),
y
]]);
else
drawUpper
=
false
;
if
(
lower
<
x
-
radius
)
drawPath
(
ctx
,
[[
Math
.
min
(
x
-
radius
,
minmax
[
1
]),
y
],[
lower
,
y
]]
);
...
...
@@ -299,21 +299,21 @@ shadowSize and lineWidth are derived as well from the points series.
// upper cap
if
(
drawUpper
)
{
if
(
err
.
upperCap
==
'-'
){
if
(
err
.
err
==
'x'
)
drawPath
(
ctx
,
[[
upper
,
y
-
radius
],[
upper
,
y
+
radius
]]
);
if
(
err
.
upperCap
==
"-"
){
if
(
err
.
err
==
"x"
)
drawPath
(
ctx
,
[[
upper
,
y
-
radius
],[
upper
,
y
+
radius
]]
);
else
drawPath
(
ctx
,
[[
x
-
radius
,
upper
],[
x
+
radius
,
upper
]]
);
}
else
if
(
$
.
isFunction
(
err
.
upperCap
)){
if
(
err
.
err
==
'x'
)
err
.
upperCap
(
ctx
,
upper
,
y
,
radius
);
if
(
err
.
err
==
"x"
)
err
.
upperCap
(
ctx
,
upper
,
y
,
radius
);
else
err
.
upperCap
(
ctx
,
x
,
upper
,
radius
);
}
}
// lower cap
if
(
drawLower
)
{
if
(
err
.
lowerCap
==
'-'
){
if
(
err
.
err
==
'x'
)
drawPath
(
ctx
,
[[
lower
,
y
-
radius
],[
lower
,
y
+
radius
]]
);
if
(
err
.
lowerCap
==
"-"
){
if
(
err
.
err
==
"x"
)
drawPath
(
ctx
,
[[
lower
,
y
-
radius
],[
lower
,
y
+
radius
]]
);
else
drawPath
(
ctx
,
[[
x
-
radius
,
lower
],[
x
+
radius
,
lower
]]
);
}
else
if
(
$
.
isFunction
(
err
.
lowerCap
)){
if
(
err
.
err
==
'x'
)
err
.
lowerCap
(
ctx
,
lower
,
y
,
radius
);
if
(
err
.
err
==
"x"
)
err
.
lowerCap
(
ctx
,
lower
,
y
,
radius
);
else
err
.
lowerCap
(
ctx
,
x
,
lower
,
radius
);
}
}
...
...
@@ -347,7 +347,7 @@ shadowSize and lineWidth are derived as well from the points series.
$
.
plot
.
plugins
.
push
({
init
:
init
,
options
:
options
,
name
:
'errorbars'
,
version
:
'1.0'
name
:
"errorbars"
,
version
:
"1.0"
});
})(
jQuery
);
jquery.flot.image.js
View file @
05dfea77
...
...
@@ -111,7 +111,7 @@ Google Maps).
callback
(
loaded
);
};
$
(
'<img />'
).
load
(
handler
).
error
(
handler
).
attr
(
'src'
,
url
);
$
(
"<img />"
).
load
(
handler
).
error
(
handler
).
attr
(
"src"
,
url
);
});
};
...
...
@@ -235,7 +235,7 @@ Google Maps).
$
.
plot
.
plugins
.
push
({
init
:
init
,
options
:
options
,
name
:
'image'
,
version
:
'1.1'
name
:
"image"
,
version
:
"1.1"
});
})(
jQuery
);
jquery.flot.js
View file @
05dfea77
...
...
@@ -238,7 +238,7 @@ Licensed under the MIT license.
left
:
0
,
bottom
:
0
,
right
:
0
,
'font-size'
:
"smaller"
,
"font-size"
:
"smaller"
,
color
:
"#545454"
})
.
insertAfter
(
this
.
element
);
...
...
@@ -338,7 +338,7 @@ Licensed under the MIT license.
var
element
=
$
(
"<div></div>"
).
html
(
text
)
.
css
({
position
:
"absolute"
,
'max-width'
:
width
,
"max-width"
:
width
,
top
:
-
9999
})
.
appendTo
(
this
.
getTextLayer
(
layer
));
...
...
@@ -434,7 +434,7 @@ Licensed under the MIT license.
position
.
element
.
css
({
top
:
Math
.
round
(
y
),
left
:
Math
.
round
(
x
),
'text-align'
:
halign
// In case the text wraps
"text-align"
:
halign
// In case the text wraps
});
};
...
...
@@ -714,9 +714,9 @@ Licensed under the MIT license.
}
if
(
options
.
xaxis
.
color
==
null
)
options
.
xaxis
.
color
=
$
.
color
.
parse
(
options
.
grid
.
color
).
scale
(
'a'
,
0.22
).
toString
();
options
.
xaxis
.
color
=
$
.
color
.
parse
(
options
.
grid
.
color
).
scale
(
"a"
,
0.22
).
toString
();
if
(
options
.
yaxis
.
color
==
null
)
options
.
yaxis
.
color
=
$
.
color
.
parse
(
options
.
grid
.
color
).
scale
(
'a'
,
0.22
).
toString
();
options
.
yaxis
.
color
=
$
.
color
.
parse
(
options
.
grid
.
color
).
scale
(
"a"
,
0.22
).
toString
();
if
(
options
.
xaxis
.
tickColor
==
null
)
// grid.tickColor for back-compatibility
options
.
xaxis
.
tickColor
=
options
.
grid
.
tickColor
||
options
.
xaxis
.
color
;
...
...
@@ -726,7 +726,7 @@ Licensed under the MIT license.
if
(
options
.
grid
.
borderColor
==
null
)
options
.
grid
.
borderColor
=
options
.
grid
.
color
;
if
(
options
.
grid
.
tickColor
==
null
)
options
.
grid
.
tickColor
=
$
.
color
.
parse
(
options
.
grid
.
color
).
scale
(
'a'
,
0.22
).
toString
();
options
.
grid
.
tickColor
=
$
.
color
.
parse
(
options
.
grid
.
color
).
scale
(
"a"
,
0.22
).
toString
();
// Fill in defaults for axis options, including any unspecified
// font-spec fields, if a font-spec was provided.
...
...
@@ -985,7 +985,7 @@ Licensed under the MIT license.
}
else
variation
=
-
variation
;
}
colors
[
i
]
=
c
.
scale
(
'rgb'
,
1
+
variation
);
colors
[
i
]
=
c
.
scale
(
"rgb"
,
1
+
variation
);
}
// Finalize the series options, filling in their colors
...
...
@@ -1255,7 +1255,7 @@ Licensed under the MIT license.
placeholder
.
css
(
"padding"
,
0
)
// padding messes up the positioning
.
children
(
":not(.flot-base,.flot-overlay)"
).
remove
();
if
(
placeholder
.
css
(
"position"
)
==
'static'
)
if
(
placeholder
.
css
(
"position"
)
==
"static"
)
placeholder
.
css
(
"position"
,
"relative"
);
// for positioning labels and overlay
surface
=
new
Canvas
(
"flot-base"
,
placeholder
);
...
...
@@ -2681,24 +2681,24 @@ Licensed under the MIT license.
if
(
i
%
options
.
legend
.
noColumns
==
0
)
{
if
(
rowStarted
)
fragments
.
push
(
'</tr>'
);
fragments
.
push
(
'<tr>'
);
fragments
.
push
(
"</tr>"
);
fragments
.
push
(
"<tr>"
);
rowStarted
=
true
;
}
fragments
.
push
(
'<td class="legendColorBox"><div style="border:1px solid '
+
options
.
legend
.
labelBoxBorderColor
+
';padding:1px"><div style="width:4px;height:0;border:5px solid '
+
entry
.
color
+
';overflow:hidden"></div></div></td>'
+
'<td class="legendLabel">'
+
entry
.
label
+
'</td>'
"<td class='legendColorBox'><div style='border:1px solid "
+
options
.
legend
.
labelBoxBorderColor
+
";padding:1px'><div style='width:4px;height:0;border:5px solid "
+
entry
.
color
+
";overflow:hidden'></div></div></td>"
+
"<td class='legendLabel'>"
+
entry
.
label
+
"</td>"
);
}
if
(
rowStarted
)
fragments
.
push
(
'</tr>'
);
fragments
.
push
(
"</tr>"
);
if
(
fragments
.
length
==
0
)
return
;
var
table
=
'<table style="font-size:smaller;color:'
+
options
.
grid
.
color
+
'">'
+
fragments
.
join
(
""
)
+
'</table>'
;
var
table
=
"<table style='font-size:smaller;color:"
+
options
.
grid
.
color
+
"'>"
+
fragments
.
join
(
""
)
+
"</table>"
;
if
(
options
.
legend
.
container
!=
null
)
$
(
options
.
legend
.
container
).
html
(
table
);
else
{
...
...
@@ -2708,14 +2708,14 @@ Licensed under the MIT license.
if
(
m
[
0
]
==
null
)
m
=
[
m
,
m
];
if
(
p
.
charAt
(
0
)
==
"n"
)
pos
+=
'top:'
+
(
m
[
1
]
+
plotOffset
.
top
)
+
'px;'
;
pos
+=
"top:"
+
(
m
[
1
]
+
plotOffset
.
top
)
+
"px;"
;
else
if
(
p
.
charAt
(
0
)
==
"s"
)
pos
+=
'bottom:'
+
(
m
[
1
]
+
plotOffset
.
bottom
)
+
'px;'
;
pos
+=
"bottom:"
+
(
m
[
1
]
+
plotOffset
.
bottom
)
+
"px;"
;
if
(
p
.
charAt
(
1
)
==
"e"
)
pos
+=
'right:'
+
(
m
[
0
]
+
plotOffset
.
right
)
+
'px;'
;
pos
+=
"right:"
+
(
m
[
0
]
+
plotOffset
.
right
)
+
"px;"
;
else
if
(
p
.
charAt
(
1
)
==
"w"
)
pos
+=
'left:'
+
(
m
[
0
]
+
plotOffset
.
left
)
+
'px;'
;
var
legend
=
$
(
'<div class="legend">'
+
table
.
replace
(
'style="'
,
'style="position:absolute;'
+
pos
+
';'
)
+
'</div>'
).
appendTo
(
placeholder
);
pos
+=
"left:"
+
(
m
[
0
]
+
plotOffset
.
left
)
+
"px;"
;
var
legend
=
$
(
"<div class='legend'>"
+
table
.
replace
(
"style='"
,
"style='position:absolute;"
+
pos
+
";"
)
+
"</div>"
).
appendTo
(
placeholder
);
if
(
options
.
legend
.
backgroundOpacity
!=
0.0
)
{
// put in the transparent background
// separately to avoid blended labels and
...
...
@@ -2726,12 +2726,12 @@ Licensed under the MIT license.
if
(
c
&&
typeof
c
==
"string"
)
c
=
$
.
color
.
parse
(
c
);
else
c
=
$
.
color
.
extract
(
legend
,
'background-color'
);
c
=
$
.
color
.
extract
(
legend
,
"background-color"
);
c
.
a
=
1
;
c
=
c
.
toString
();
}
var
div
=
legend
.
children
();
$
(
'<div style="position:absolute;width:'
+
div
.
width
()
+
'px;height:'
+
div
.
height
()
+
'px;'
+
pos
+
'background-color:'
+
c
+
';"> </div>'
).
prependTo
(
legend
).
css
(
'opacity'
,
options
.
legend
.
backgroundOpacity
);
$
(
"<div style='position:absolute;width:"
+
div
.
width
()
+
"px;height:"
+
div
.
height
()
+
"px;"
+
pos
+
"background-color:"
+
c
+
";'> </div>"
).
prependTo
(
legend
).
css
(
"opacity"
,
options
.
legend
.
backgroundOpacity
);
}
}
}
...
...
@@ -2972,7 +2972,7 @@ Licensed under the MIT license.
function
drawPointHighlight
(
series
,
point
)
{
var
x
=
point
[
0
],
y
=
point
[
1
],
axisx
=
series
.
xaxis
,
axisy
=
series
.
yaxis
,
highlightColor
=
(
typeof
series
.
highlightColor
===
"string"
)
?
series
.
highlightColor
:
$
.
color
.
parse
(
series
.
color
).
scale
(
'a'
,
0.5
).
toString
();
highlightColor
=
(
typeof
series
.
highlightColor
===
"string"
)
?
series
.
highlightColor
:
$
.
color
.
parse
(
series
.
color
).
scale
(
"a"
,
0.5
).
toString
();
if
(
x
<
axisx
.
min
||
x
>
axisx
.
max
||
y
<
axisy
.
min
||
y
>
axisy
.
max
)
return
;
...
...
@@ -2994,7 +2994,7 @@ Licensed under the MIT license.
}
function
drawBarHighlight
(
series
,
point
)
{
var
highlightColor
=
(
typeof
series
.
highlightColor
===
"string"
)
?
series
.
highlightColor
:
$
.
color
.
parse
(
series
.
color
).
scale
(
'a'
,
0.5
).
toString
(),
var
highlightColor
=
(
typeof
series
.
highlightColor
===
"string"
)
?
series
.
highlightColor
:
$
.
color
.
parse
(
series
.
color
).
scale
(
"a"
,
0.5
).
toString
(),
fillStyle
=
highlightColor
,
barLeft
=
series
.
bars
.
align
==
"left"
?
0
:
-
series
.
bars
.
barWidth
/
2
;
...
...
@@ -3019,7 +3019,7 @@ Licensed under the MIT license.
if
(
typeof
c
!=
"string"
)
{
var
co
=
$
.
color
.
parse
(
defaultColor
);
if
(
c
.
brightness
!=
null
)
co
=
co
.
scale
(
'rgb'
,
c
.
brightness
);
co
=
co
.
scale
(
"rgb"
,
c
.
brightness
);
if
(
c
.
opacity
!=
null
)
co
.
a
*=
c
.
opacity
;
c
=
co
.
toString
();
...
...
jquery.flot.navigate.js
View file @
05dfea77
...
...
@@ -140,16 +140,16 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L
return
false
;
}
var
prevCursor
=
'default'
,
prevPageX
=
0
,
prevPageY
=
0
,
var
prevCursor
=
"default"
,
prevPageX
=
0
,
prevPageY
=
0
,
panTimeout
=
null
;
function
onDragStart
(
e
)
{
if
(
e
.
which
!=
1
)
// only accept left-click
return
false
;
var
c
=
plot
.
getPlaceholder
().
css
(
'cursor'
);
var
c
=
plot
.
getPlaceholder
().
css
(
"cursor"
);
if
(
c
)
prevCursor
=
c
;
plot
.
getPlaceholder
().
css
(
'cursor'
,
plot
.
getOptions
().
pan
.
cursor
);
plot
.
getPlaceholder
().
css
(
"cursor"
,
plot
.
getOptions
().
pan
.
cursor
);
prevPageX
=
e
.
pageX
;
prevPageY
=
e
.
pageY
;
}
...
...
@@ -175,7 +175,7 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L
panTimeout
=
null
;
}
plot
.
getPlaceholder
().
css
(
'cursor'
,
prevCursor
);
plot
.
getPlaceholder
().
css
(
"cursor"
,
prevCursor
);
plot
.
pan
({
left
:
prevPageX
-
e
.
pageX
,
top
:
prevPageY
-
e
.
pageY
});
}
...
...
@@ -340,7 +340,7 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L
$
.
plot
.
plugins
.
push
({
init
:
init
,
options
:
options
,
name
:
'navigate'
,
version
:
'1.3'
name
:
"navigate"
,
version
:
"1.3"
});
})(
jQuery
);
jquery.flot.resize.js
View file @
05dfea77
...
...
@@ -54,7 +54,7 @@ can just fix the size of their placeholders.
$
.
plot
.
plugins
.
push
({
init
:
init
,
options
:
options
,
name
:
'resize'
,
version
:
'1.0'
name
:
"resize"
,
version
:
"1.0"
});
})(
jQuery
);
jquery.flot.selection.js
View file @
05dfea77
...
...
@@ -317,10 +317,10 @@ The plugin allso adds the following methods to the plot object:
var
c
=
$
.
color
.
parse
(
o
.
selection
.
color
);
ctx
.
strokeStyle
=
c
.
scale
(
'a'
,
0.8
).
toString
();
ctx
.
strokeStyle
=
c
.
scale
(
"a"
,
0.8
).
toString
();
ctx
.
lineWidth
=
1
;
ctx
.
lineJoin
=
o
.
selection
.
shape
;
ctx
.
fillStyle
=
c
.
scale
(
'a'
,
0.4
).
toString
();
ctx
.
fillStyle
=
c
.
scale
(
"a"
,
0.4
).
toString
();
var
x
=
Math
.
min
(
selection
.
first
.
x
,
selection
.
second
.
x
)
+
0.5
,
y
=
Math
.
min
(
selection
.
first
.
y
,
selection
.
second
.
y
)
+
0.5
,
...
...
@@ -354,7 +354,7 @@ The plugin allso adds the following methods to the plot object:
minSize
:
5
// minimum number of pixels
}
},
name
:
'selection'
,
version
:
'1.1'
name
:
"selection"
,
version
:
"1.1"
});
})(
jQuery
);
jquery.flot.stack.js
View file @
05dfea77
...
...
@@ -182,7 +182,7 @@ charts or filled areas).
$
.
plot
.
plugins
.
push
({
init
:
init
,
options
:
options
,
name
:
'stack'
,
version
:
'1.2'
name
:
"stack"
,
version
:
"1.2"
});
})(
jQuery
);
jquery.flot.symbol.js
View file @
05dfea77
...
...
@@ -65,7 +65,7 @@ The symbols are accessed as strings through the standard symbol options:
$
.
plot
.
plugins
.
push
({
init
:
init
,
name
:
'symbols'
,
version
:
'1.0'
name
:
"symbols"
,
version
:
"1.0"
});
})(
jQuery
);
jquery.flot.threshold.js
View file @
05dfea77
...
...
@@ -136,7 +136,7 @@ You may need to check for this in hover events.
$
.
plot
.
plugins
.
push
({
init
:
init
,
options
:
options
,
name
:
'threshold'
,
version
:
'1.2'
name
:
"threshold"
,
version
:
"1.2"
});
})(
jQuery
);
jquery.flot.time.js
View file @
05dfea77
...
...
@@ -69,25 +69,25 @@ API.txt for details.
if
(
escape
)
{
switch
(
c
)
{
case
'a'
:
c
=
""
+
dayNames
[
d
.
getDay
()];
break
;
case
'b'
:
c
=
""
+
monthNames
[
d
.
getMonth
()];
break
;
case
'd'
:
c
=
leftPad
(
d
.
getDate
());
break
;
case
'e'
:
c
=
leftPad
(
d
.
getDate
(),
" "
);
break
;
case
'h'
:
// For back-compat with 0.7; remove in 1.0
case
'H'
:
c
=
leftPad
(
hours
);
break
;
case
'I'
:
c
=
leftPad
(
hours12
);
break
;
case
'l'
:
c
=
leftPad
(
hours12
,
" "
);
break
;
case
'm'
:
c
=
leftPad
(
d
.
getMonth
()
+
1
);
break
;
case
'M'
:
c
=
leftPad
(
d
.
getMinutes
());
break
;
case
"a"
:
c
=
""
+
dayNames
[
d
.
getDay
()];
break
;
case
"b"
:
c
=
""
+
monthNames
[
d
.
getMonth
()];
break
;
case
"d"
:
c
=
leftPad
(
d
.
getDate
());
break
;
case
"e"
:
c
=
leftPad
(
d
.
getDate
(),
" "
);
break
;
case
"h"
:
// For back-compat with 0.7; remove in 1.0
case
"H"
:
c
=
leftPad
(
hours
);
break
;
case
"I"
:
c
=
leftPad
(
hours12
);
break
;
case
"l"
:
c
=
leftPad
(
hours12
,
" "
);
break
;
case
"m"
:
c
=
leftPad
(
d
.
getMonth
()
+
1
);
break
;
case
"M"
:
c
=
leftPad
(
d
.
getMinutes
());
break
;
// quarters not in Open Group's strftime specification
case
'q'
:
case
"q"
:
c
=
""
+
(
Math
.
floor
(
d
.
getMonth
()
/
3
)
+
1
);
break
;
case
'S'
:
c
=
leftPad
(
d
.
getSeconds
());
break
;
case
'y'
:
c
=
leftPad
(
d
.
getFullYear
()
%
100
);
break
;
case
'Y'
:
c
=
""
+
d
.
getFullYear
();
break
;
case
'p'
:
c
=
(
isAM
)
?
(
""
+
"am"
)
:
(
""
+
"pm"
);
break
;
case
'P'
:
c
=
(
isAM
)
?
(
""
+
"AM"
)
:
(
""
+
"PM"
);
break
;
case
'w'
:
c
=
""
+
d
.
getDay
();
break
;
case
"S"
:
c
=
leftPad
(
d
.
getSeconds
());
break
;
case
"y"
:
c
=
leftPad
(
d
.
getFullYear
()
%
100
);
break
;
case
"Y"
:
c
=
""
+
d
.
getFullYear
();
break
;
case
"p"
:
c
=
(
isAM
)
?
(
""
+
"am"
)
:
(
""
+
"pm"
);
break
;
case
"P"
:
c
=
(
isAM
)
?
(
""
+
"AM"
)
:
(
""
+
"PM"
);
break
;
case
"w"
:
c
=
""
+
d
.
getDay
();
break
;
}
r
.
push
(
c
);
escape
=
false
;
...
...
@@ -418,8 +418,8 @@ API.txt for details.
$
.
plot
.
plugins
.
push
({
init
:
init
,
options
:
options
,
name
:
'time'
,
version
:
'1.0'
name
:
"time"
,
version
:
"1.0"
});
// Time-axis support used to be in Flot core, which exposed the
...
...
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