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