Skip to content

Commit

Permalink
Merge pull request #1034 from goorpy/master
Browse files Browse the repository at this point in the history
Patch for colors array, issue #1031
  • Loading branch information
dnschnur committed Apr 28, 2013
2 parents 33565aa + c20370a commit 355b855
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jquery.flot.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,12 @@ Licensed under the MIT license.
function parseOptions(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)
options.xaxis.color = $.color.parse(options.grid.color).scale('a', 0.22).toString();
Expand Down

0 comments on commit 355b855

Please sign in to comment.