update or hide the dygraph chart ylabel (units) based on the selected dimensions
Costa Tsaousis (ktsaou) committed
Oct 15, 2017 at 04:36 UTC
1af3dc57a49cb15bef4056001b560fba7f73ce25
1 file changed
+2
-1
web/dashboard.js
+2
-1
@@ -5122,7 +5122,8 @@ var NETDATA = window.NETDATA || {};
5122
colors: state.chartColors(),
5123
labels: data.result.labels,
5124
labelsDivWidth: state.chartWidth() - 70,
5125
- visibility: state.dimensions_visibility.selected2BooleanArray(state.data.dimension_names)
5125
+ visibility: state.dimensions_visibility.selected2BooleanArray(state.data.dimension_names),
5126
+ ylabel: (state.dimensions_visibility.unselected_count !== 0)?"":state.units_current
5127
};
5128
5129
if(state.tmp.dygraph_force_zoom === true) {