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
355b8550
Commit
355b8550
authored
Apr 28, 2013
by
David Schnur
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1034 from goorpy/master
Patch for colors array, issue #1031
parents
33565aa5
c20370ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
jquery.flot.js
jquery.flot.js
+6
-0
No files found.
jquery.flot.js
View file @
355b8550
...
@@ -642,6 +642,12 @@ Licensed under the MIT license.
...
@@ -642,6 +642,12 @@ Licensed under the MIT license.
$
.
extend
(
true
,
options
,
opts
);
$
.
extend
(
true
,
options
,
opts
);
//Override options.colors after $.extend if user has set colors, because extend does not clear out excess
//default colors if user defines color palette smaller than default palette size (currently 5).
if
(
opts
.
colors
)
{
options
.
colors
=
opts
.
colors
;
}
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
)
...
...
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