summaryrefslogtreecommitdiffstats
path: root/web/gui/dashboard.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-08-04 08:57:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-08-04 08:57:13 +0000
commitcbf70980c060bde02906a8e9de2064459bacc93c (patch)
tree5b9ade02e0ed32a4b33f5e8647092d0c02ea586d /web/gui/dashboard.js
parentReleasing debian version 1.16.0-1. (diff)
downloadnetdata-cbf70980c060bde02906a8e9de2064459bacc93c.tar.xz
netdata-cbf70980c060bde02906a8e9de2064459bacc93c.zip
Merging upstream version 1.16.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/gui/dashboard.js')
-rw-r--r--web/gui/dashboard.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/web/gui/dashboard.js b/web/gui/dashboard.js
index e7d99a151..a32a29be7 100644
--- a/web/gui/dashboard.js
+++ b/web/gui/dashboard.js
@@ -8118,10 +8118,10 @@ let chartState = function (element) {
};
this.chartDataUniqueID = function () {
- return this.id + ',' + this.library_name + ',' + this.dimensions + ',' + this.chartURLOptions();
+ return this.id + ',' + this.library_name + ',' + this.dimensions + ',' + this.chartURLOptions(true);
};
- this.chartURLOptions = function () {
+ this.chartURLOptions = function (isForUniqueId) {
let ret = '';
if (this.override_options !== null) {
@@ -8136,7 +8136,9 @@ let chartState = function (element) {
ret += '%7C' + 'jsonwrap';
- if (NETDATA.options.current.eliminate_zero_dimensions) {
+ // always add `nonzero` when it's used to create a chartDataUniqueID
+ // we cannot just remove `nonzero` because of backwards compatibility with old snapshots
+ if (isForUniqueId || NETDATA.options.current.eliminate_zero_dimensions) {
ret += '%7C' + 'nonzero';
}