Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
Join us on Feb.12 to Discover what’s possible with embedded analytics: REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
johnnyjohn
Creator
Creator

Add native qlik filtering to extension

Good afternoon, 

I've been looking for a good Radar chart extension, and this one is by far the best and most useable. The official Qlik one requires data transformation by unpivoting columns to be useable and doesn't provide enough customisation. 

The issue with this extension is it doesn't have the same filter as other visualisation, where you can click on the dimension name in the legend to filter for it and have that apply across the whole application. 

Curious how complicated this would be to implement? Extension in question below.

Thanks 

https://github.com/nfire11/QTiny_Radar

Labels (1)
1 Solution

Accepted Solutions
nhenckel
Luminary
Luminary

If you’re able to modify the code for the extension (depending on the licensing details on the GitHub repository), you should be able to add native Qlik filtering functionality. This can be achieved by extending the paint function to include event handlers for both legend and data point interactions.

For example, you can use the following functions:

// Add legend filtering
myChart.on('legendselectchanged', function (params) {
    var selected = params.name; // The name of the clicked legend item
    if (selected) {
        app.field(dim_info).selectValues([{ qText: selected }], true, true);
    }
});

// Add radar chart data point filtering
myChart.on('click', function (params) {
    var selected = params.data.name; // The name of the clicked data point
    if (selected) {
        app.field(dim_info).selectValues([{ qText: selected }], true, true);
    }
});

If modifying the code is an option, these additions should allow the extension to apply filters across the Qlik application.

View solution in original post

1 Reply
nhenckel
Luminary
Luminary

If you’re able to modify the code for the extension (depending on the licensing details on the GitHub repository), you should be able to add native Qlik filtering functionality. This can be achieved by extending the paint function to include event handlers for both legend and data point interactions.

For example, you can use the following functions:

// Add legend filtering
myChart.on('legendselectchanged', function (params) {
    var selected = params.name; // The name of the clicked legend item
    if (selected) {
        app.field(dim_info).selectValues([{ qText: selected }], true, true);
    }
});

// Add radar chart data point filtering
myChart.on('click', function (params) {
    var selected = params.data.name; // The name of the clicked data point
    if (selected) {
        app.field(dim_info).selectValues([{ qText: selected }], true, true);
    }
});

If modifying the code is an option, these additions should allow the extension to apply filters across the Qlik application.