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
bb18e099
Commit
bb18e099
authored
Jun 06, 2013
by
David Schnur
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 0.9-work
parents
13cbd2ce
b074bde4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
9 deletions
+48
-9
API.md
API.md
+21
-0
NEWS.md
NEWS.md
+18
-0
index.html
examples/interacting/index.html
+2
-2
jquery.flot.js
jquery.flot.js
+7
-7
jquery.flot.selection.js
jquery.flot.selection.js
+0
-0
No files found.
API.md
View file @
bb18e099
# Flot Reference #
# Flot Reference #
**Table of Contents**
[
Introduction
](
#introduction
)
|
[
Data Format
](
#data-format
)
|
[
Plot Options
](
#plot-options
)
|
[
Customizing the legend
](
#customizing-the-legend
)
|
[
Customizing the axes
](
#customizing-the-axes
)
|
[
Multiple axes
](
#multiple-axes
)
|
[
Time series data
](
#time-series-data
)
|
[
Customizing the data series
](
#customizing-the-data-series
)
|
[
Customizing the grid
](
#customizing-the-grid
)
|
[
Specifying gradients
](
#specifying-gradients
)
|
[
Plot Methods
](
#plot-methods
)
|
[
Hooks
](
#hooks
)
|
[
Plugins
](
#plugins
)
|
[
Version number
](
#version-number
)
---
## Introduction ##
Consider a call to the plot function:
Consider a call to the plot function:
```
js
```
js
...
...
NEWS.md
View file @
bb18e099
...
@@ -9,6 +9,24 @@
...
@@ -9,6 +9,24 @@
(patch by Karl Quinsland, pull request #1058, issue #1059, earlier patches
(patch by Karl Quinsland, pull request #1058, issue #1059, earlier patches
by Jason Swank, issue #331, and Rene Pieter Kok, issue #344)
by Jason Swank, issue #331, and Rene Pieter Kok, issue #344)
## Flot 0.8.2 ##
### Changes ###
-
Added a table of contents to the API documentation.
(patch by Brian Peiris, pull request #1064)
### Bug fixes ###
-
Fixed a bug where the second axis in an xaxes/yaxes array incorrectly had
its 'innermost' property set to false or undefined, even if it was on the
other side of the plot from the first axis. This resulted in the axis bar
being visible when it shouldn't have been, which was especially obvious
when the grid had a left/right border width of zero.
(reported by Teq1, fix researched by ryleyb, issue #1056)
## Flot 0.8.1 ##
## Flot 0.8.1 ##
### Bug fixes ###
### Bug fixes ###
...
...
examples/interacting/index.html
View file @
bb18e099
...
@@ -111,14 +111,14 @@
...
@@ -111,14 +111,14 @@
<p>
One of the goals of Flot is to support user interactions. Try pointing and clicking on the points.
</p>
<p>
One of the goals of Flot is to support user interactions. Try pointing and clicking on the points.
</p>
<p>
<p>
<label><input
id=
"enablePosition"
type=
"checkbox"
></input>
Show mouse position
</label>
<label><input
id=
"enablePosition"
type=
"checkbox"
checked=
"checked"
></input>
Show mouse position
</label>
<span
id=
"hoverdata"
></span>
<span
id=
"hoverdata"
></span>
<span
id=
"clickdata"
></span>
<span
id=
"clickdata"
></span>
</p>
</p>
<p>
A tooltip is easy to build with a bit of jQuery code and the data returned from the plot.
</p>
<p>
A tooltip is easy to build with a bit of jQuery code and the data returned from the plot.
</p>
<p><label><input
id=
"enableTooltip"
type=
"checkbox"
></input>
Enable tooltip
</label></p>
<p><label><input
id=
"enableTooltip"
type=
"checkbox"
checked=
"checked"
></input>
Enable tooltip
</label></p>
</div>
</div>
...
...
jquery.flot.js
View file @
bb18e099
...
@@ -425,7 +425,7 @@ Licensed under the MIT license.
...
@@ -425,7 +425,7 @@ Licensed under the MIT license.
element
:
positions
.
length
?
info
.
element
.
clone
()
:
info
.
element
,
element
:
positions
.
length
?
info
.
element
.
clone
()
:
info
.
element
,
x
:
x
,
x
:
x
,
y
:
y
y
:
y
}
}
;
positions
.
push
(
position
);
positions
.
push
(
position
);
...
@@ -1351,7 +1351,7 @@ Licensed under the MIT license.
...
@@ -1351,7 +1351,7 @@ Licensed under the MIT license.
ticks
=
axis
.
ticks
||
[],
ticks
=
axis
.
ticks
||
[],
labelWidth
=
opts
.
labelWidth
||
0
,
labelWidth
=
opts
.
labelWidth
||
0
,
labelHeight
=
opts
.
labelHeight
||
0
,
labelHeight
=
opts
.
labelHeight
||
0
,
maxWidth
=
labelWidth
||
axis
.
direction
==
"x"
?
Math
.
floor
(
surface
.
width
/
(
ticks
.
length
||
1
))
:
null
;
maxWidth
=
labelWidth
||
axis
.
direction
==
"x"
?
Math
.
floor
(
surface
.
width
/
(
ticks
.
length
||
1
))
:
null
,
legacyStyles
=
axis
.
direction
+
"Axis "
+
axis
.
direction
+
axis
.
n
+
"Axis"
,
legacyStyles
=
axis
.
direction
+
"Axis "
+
axis
.
direction
+
axis
.
n
+
"Axis"
,
layer
=
"flot-"
+
axis
.
direction
+
"-axis flot-"
+
axis
.
direction
+
axis
.
n
+
"-axis "
+
legacyStyles
,
layer
=
"flot-"
+
axis
.
direction
+
"-axis flot-"
+
axis
.
direction
+
axis
.
n
+
"-axis "
+
legacyStyles
,
font
=
opts
.
font
||
"flot-tick-label tickLabel"
;
font
=
opts
.
font
||
"flot-tick-label tickLabel"
;
...
@@ -1396,13 +1396,13 @@ Licensed under the MIT license.
...
@@ -1396,13 +1396,13 @@ Licensed under the MIT license.
if
(
$
.
inArray
(
axis
,
samePosition
)
==
samePosition
.
length
-
1
)
if
(
$
.
inArray
(
axis
,
samePosition
)
==
samePosition
.
length
-
1
)
axisMargin
=
0
;
// outermost
axisMargin
=
0
;
// outermost
// Determine whether the axis is the first (innermost) on its side
innermost
=
$
.
inArray
(
axis
,
samePosition
)
==
0
;
// determine tick length - if we're innermost, we can use "full"
// determine tick length - if we're innermost, we can use "full"
if
(
tickLength
==
null
)
{
var
sameDirection
=
$
.
grep
(
all
,
function
(
a
)
{
return
a
&&
a
.
reserveSpace
;
});
innermost
=
$
.
inArray
(
axis
,
sameDirection
)
==
0
;
if
(
tickLength
==
null
)
{
if
(
innermost
)
if
(
innermost
)
tickLength
=
"full"
;
tickLength
=
"full"
;
else
else
...
...
jquery.flot.selection.js
100755 → 100644
View file @
bb18e099
File mode changed from 100755 to 100644
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