Sha256: 011c7f370eb12cbbbdba42ae3aa306ae89772fb3e43c6183268e8707f285bde0
Contents?: true
Size: 1.24 KB
Versions: 4
Compression:
Stored size: 1.24 KB
Contents
$(function() { var $dashboardSalesMap = $('#dashboard-sales-map'); if (!$dashboardSalesMap.length) { return false; } function drawSalesMap() { $dashboardSalesMap.empty(); var color = config.chart.colorPrimary.toHexString(); var darkColor = tinycolor(config.chart.colorPrimary.toString()).darken(40).toHexString(); var selectedColor = tinycolor(config.chart.colorPrimary.toString()).darken(10).toHexString(); var sales_data = { us: 2000, ru: 2000, gb: 10000, fr: 10000, de: 10000, cn: 10000, in: 10000, sa: 10000, ca: 10000, br: 5000, au: 5000 }; $dashboardSalesMap.vectorMap({ map: 'world_en', backgroundColor: 'transparent', color: '#E5E3E5', hoverOpacity: 0.7, selectedColor: selectedColor, enableZoom: true, showTooltip: true, values: sales_data, scaleColors: [ color, darkColor], normalizeFunction: 'linear' }); } drawSalesMap(); $(document).on("themechange", function(){ drawSalesMap(); }); });
Version data entries
4 entries across 4 versions & 1 rubygems