Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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.
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.