Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

google geochart extension

Hi All,

I have the geochart extension - I want to be able to click on a country to select it, does anyone know how to include this option into the script.js file?  I'm not familiar with Javascript so I'm having some trouble interpreting the API.

Cheers,

GPC

Labels (1)
2 Replies
Nicole-Smith
MVP
MVP

You'll need something similar to this:

//Allowing the user to make selections in a chart

        var QlikViewData = this.Data;

        function selectHandler() {

            var selectedItem = chart.getSelection()[0];

            if (selectedItem) {

                var selection = data.getValue(selectedItem.row, 0);

                QlikViewData.SelectTextsInColumn(0, false, selection);

            }

        }

        google.visualization.events.addListener(chart, 'select', selectHandler);

Not applicable
Author

Hi, to play with GeoChart in QlikView I need a Geochart extension? Or I've to do this only by the Qlikview tool?