Skip to content

Commit

Permalink
Merge pull request #21 from rte-antares-rpackage/develop
Browse files Browse the repository at this point in the history
master to 5.1
  • Loading branch information
bthieurmel authored Dec 6, 2017
2 parents 4f101e6 + 8a3cf4c commit 9be3287
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: leaflet.minicharts
Type: Package
Title: Mini Charts for Interactive Maps
Version: 0.5.0
Version: 0.5.1
Authors@R: c(
person("Francois", "Guillem", , "[email protected]", role = c("aut", "cre")),
person("Jalal-Edine", "ZAWAM", , "[email protected]", role = "ctb"),
Expand Down
5 changes: 5 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Changes in version 0.5.1 (2017-08-17)

BUGFIXES:
* updateMinicharts() was incapable of updating color palette (#19)

Changes in version 0.5.0 (2017-07-10)

NEW FEATURES:
Expand Down
4 changes: 2 additions & 2 deletions inst/leaflet.minicharts.min.js

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions javascript/minichart_bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,15 @@
}

if (opts[t].data.length == 1) {
if (opts[t].fillColor) opts[t].colors = opts[t].fillColor
if (opts[t].fillColor) opts[t].colors = opts[t].fillColor;
else if (staticOpts.fillColor) opts[t].colors = staticOpts.fillColor;
else if (l.opts[t] && l.opts[t].fillColor) opts[t].colors = l.opts[t].fillColor;
else opts[t].colors = l.opts[0].fillColor;
} else opts[t].colors = l.colorPalette;
} else if (colorPalette) {
opts[t].colors = colorPalette;
} else {
opts[t].colors = l.colorPalette;
}

if (maxValues) opts[t].maxValues = maxValues;
}
Expand Down

0 comments on commit 9be3287

Please sign in to comment.