Visualization: GeoChart doent work magnifyingGlass, why?

222 views
Skip to first unread message

alexey zaytsev

unread,
Feb 21, 2019, 6:48:11 AM2/21/19
to Google Visualization API

    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);
}


alexey zaytsev

unread,
Feb 21, 2019, 6:55:19 AM2/21/19
to Google Visualization API
Because of this, some countries are not displayed, such as Andorra. Need a magnifying glass or scale.
Reply all
Reply to author
Forward
0 new messages