Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am developing a Qlik Sense mashup with a pie chart and a table objects. My requirement is whenever i click a slice in pie chart the table with associated values should appear.
I have placed the pie chart inside a html div and enabled display
and
the table inside another html div and disabled dispaly initially.
What happens actually is the table with correct values is displayed when i click any slice of the pie chart but a table without any values is displayed when i click anywhere except the slice in the pie chart.
How to limit the selection/click event listener to the slices of the pie chart?
I would do that without a click event. You can create an hypercube with the values who are in the piechart, and in the callback display the table when one or more slices are selected.
function create()
{
app.createCube({
//create hypercube
},
function(u){
var e=u.qHyperCube;
var selec = e.qDimensionInfo[1].qStateCounts.qSelected;
if(selec ==1)
{
//display the table
}
}
)};
}
Hello, you can show the table if just one slice is selected and hide the table if the user select more than one slice.
Yes that can be done. But the issue i face is: The table without any values is displayed even i click on the title/legend of the pie chart. I want the table to be displayed only when i click on any slice of the pie chart.
I would do that without a click event. You can create an hypercube with the values who are in the piechart, and in the callback display the table when one or more slices are selected.
function create()
{
app.createCube({
//create hypercube
},
function(u){
var e=u.qHyperCube;
var selec = e.qDimensionInfo[1].qStateCounts.qSelected;
if(selec ==1)
{
//display the table
}
}
)};
}
Could we use createCube to create pie chart in Qlik sense mashup?
Thanks!