@cryptotaxi247 / netdata-1 / commits / 34e2efd02

do not add a y-axis label on dygraph sparklines

Costa Tsaousis (ktsaou) committed Oct 16, 2017 at 00:56 UTC 34e2efd025de23f2a03ba084d404a9d2abbf90a0
1 file changed +6 -3
web/dashboard.js
+6 -3
@@ -5146,9 +5146,12 @@ var NETDATA = window.NETDATA || {};
5146 colors: state.chartColors(),
5147 labels: data.result.labels,
5148 labelsDivWidth: state.chartWidth() - 70,
5149 - visibility: state.dimensions_visibility.selected2BooleanArray(state.data.dimension_names),
5150 - ylabel: (state.dimensions_visibility.unselected_count !== 0)?"":state.units_current
5151 - };
5149 + visibility: state.dimensions_visibility.selected2BooleanArray(state.data.dimension_names);
5150 + }
5151 +
5152 + if(!NETDATA.chartLibraries.dygraph.isSparkline(state)) {
5153 + options.ylabel = (state.dimensions_visibility.unselected_count !== 0)?"":state.units_current;
5154 + }
5155
5156 if(state.tmp.dygraph_force_zoom === true) {
5157 if(NETDATA.options.debug.dygraph === true || state.debug === true)