diff options
author | Patryk Andrzejewski <patryk@piwik.pro> | 2015-06-10 17:50:09 +0300 |
---|---|---|
committer | Patryk Andrzejewski <patryk@piwik.pro> | 2015-06-10 17:50:09 +0300 |
commit | dfcfb3d8e5c56124c67790518293242191911d60 (patch) | |
tree | 2f264bd27f216d183f1097f9a47fc627c0978d85 /plugins/UserCountryMap | |
parent | 47e5b467afbd4e4a739db93c5cd26a33ae0b911b (diff) |
add values.length > 0 condition
Diffstat (limited to 'plugins/UserCountryMap')
-rw-r--r-- | plugins/UserCountryMap/javascripts/visitor-map.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/UserCountryMap/javascripts/visitor-map.js b/plugins/UserCountryMap/javascripts/visitor-map.js index 831cd2e539..93594c8c39 100644 --- a/plugins/UserCountryMap/javascripts/visitor-map.js +++ b/plugins/UserCountryMap/javascripts/visitor-map.js @@ -231,7 +231,7 @@ } // a good place to update the legend, isn't it? - if (choropleth) { + if (choropleth && values.length > 0) { $('.UserCountryMap-legend .content').html('').show(); var itemExists = {}; $.each(chroma.limits(values, 'k', 3), function (i, v) { |