ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/admin.adimi/layout/bootstrap4/global_assets/js/demo_pages/charts/google/other/ |
/* ------------------------------------------------------------------------------ * * # Google Visualization - geo chart * * Google Visualization geo chart demonstration * * ---------------------------------------------------------------------------- */ // Setup module // ------------------------------ var GoogleGeoRegion = function() { // // Setup module components // // Geo chart var _googleGeoRegion = function() { if (typeof google == 'undefined') { console.warn('Warning - Google Charts library is not loaded.'); return; } // Initialize chart google.charts.load('current', { callback: function () { // Draw chart drawRegionsMap(); // Resize on sidebar width change $(document).on('click', '.sidebar-control', drawRegionsMap); // Resize on window resize var resizeGeoRegion; $(window).on('resize', function() { clearTimeout(resizeGeoRegion); resizeGeoRegion = setTimeout(function () { drawRegionsMap(); }, 200); }); }, packages: ['corechart'] }); // Chart settings function drawRegionsMap() { // Define charts element var geo_region_element = document.getElementById('google-geo-region'); // Data var data = google.visualization.arrayToDataTable([ ['Country', 'Popularity'], ['Germany', 200], ['United States', 300], ['Brazil', 400], ['Canada', 500], ['France', 600], ['RU', 700] ]); // Options var options = { fontName: 'Roboto', height: 500, width: "100%", fontSize: 12, tooltip: { textStyle: { fontName: 'Roboto', fontSize: 13 } } }; // Draw chart var chart = new google.visualization.GeoChart(geo_region_element); chart.draw(data, options); } }; // // Return objects assigned to module // return { init: function() { _googleGeoRegion(); } } }(); // Initialize module // ------------------------------ GoogleGeoRegion.init();