@cryptotaxi247 / netdata-1 / commits / 74802aefd

add new dimensions using new colors; fixes #1920

Costa Tsaousis (ktsaou) committed May 3, 2017 at 01:15 UTC 74802aefd81feeb53c5710101bc31d08ebc6792e
2 files changed +4 -4
web/dashboard.js
+3 -3
@@ -2717,7 +2717,7 @@ var NETDATA = window.NETDATA || {};
2717 this.chartPrepareColorPalette = function() {
2718 var len;
2719
2720 - if(this.colors !== null) return;
2720 + if(this.colors_custom !== null) return;
2721
2722 if(this.debug === true)
2723 this.log("Preparing chart color palette");
@@ -2841,8 +2841,8 @@ var NETDATA = window.NETDATA || {};
2841 }
2842 }
2843 // we will re-generate the colors for the chart
2844 - // based on the selected dimensions
2845 - this.colors = null;
2844 + // based on the dimensions this result has data for
2845 + this.colors = [];
2846
2847 if(this.debug === true)
2848 this.log('updating Legend DOM');
web/index.html
+1 -1
@@ -3543,4 +3543,4 @@
3543 </div>
3544 </body>
3545 </html>
3546 -<script type="text/javascript" src="dashboard.js?v20170503-2"></script>
3546 +<script type="text/javascript" src="dashboard.js?v20170503-3"></script>