diff --git a/static/js/pandora/statisticsDialog.js b/static/js/pandora/statisticsDialog.js index b720577b0..f272226ad 100644 --- a/static/js/pandora/statisticsDialog.js +++ b/static/js/pandora/statisticsDialog.js @@ -34,7 +34,6 @@ pandora.ui.statisticsDialog = function() { }, dialogHeight = Math.round((window.innerHeight - 48) * 0.9), dialogWidth = Math.round(window.innerWidth * 0.9), - names = Object.keys(colors.system).concat(Object.keys(colors.browser)), tabs = [ {id: 'seen', title: 'First Seen & Last Seen', selected: true}, {id: 'locations', title: 'Locations'}, @@ -446,7 +445,7 @@ pandora.ui.statisticsDialog = function() { ['system', 'browser'].forEach(function(key) { Ox.Chart({ color: function(value) { - var name = version ? getName(value) : value, + var name = version ? getName(key, value) : value, color = colors[key][name]; if (pandora.user.ui.theme == 'classic') { color = getColor(color); @@ -455,7 +454,7 @@ pandora.ui.statisticsDialog = function() { }, data: data[mode][key + version], formatKey: function(value) { - var name = version ? getName(value) : value, + var name = version ? getName(key, value) : value, $element = $('