var options = {
region: '<?php echo esc_attr($region); ?>',
width: '<?php echo esc_attr($width); ?>',
height: '<?php echo esc_attr($height); ?>',
displayMode: '<?php echo esc_attr($mode); ?>',
backgroundColor: {fill: '<?php echo esc_attr($background); ?>', stroke: '<?php echo esc_attr($border_color); ?>', strokeWidth: '<?php echo esc_attr($border_width); ?>'},
datalessRegionColor: '<?php echo esc_attr($empty_color); ?>',
colorAxis: {colors: ['<?php echo esc_attr($min_color); ?>', '<?php echo esc_attr($max_color); ?>']},
tooltip: {textStyle: {color: '<?php echo esc_attr($text_color); ?>', fontName: '<?php echo esc_attr($text_font); ?>', fontSize: <?php echo esc_attr($text_size); ?>}, trigger: '<?php echo esc_attr($tooltip); ?>'},
legend: '<?php echo esc_attr($legend); ?>',
keepAspectRatio: true,
magnifyingGlass: {enable: true, zoomFactor: 7.5}
};
geochart.draw(view, options);
}