Qlik Community

Ask a Question

App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
April 22, 2PM EST: Learn about GeoOperations in Qlik Sense SaaS READ MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
kunkumnaveen
Specialist
Specialist

Remove Labels from Pie Chart in Qliksense

Hello All,

The Dimension  has two values in it

Dimension-Criteria

               1)RED-Management

               2)Green-Management


I need to remove Labels from below Pie Chart

Capture.PNG

RED-Management and Green-Management shouldn't  appear .Which option should i need to disable in Qliksense Pie Chart

Thanks

1 Solution

Accepted Solutions
kunkumnaveen
Specialist
Specialist
Author

  • =if(YourField='Value1',' ',if(Yourfield='value2','  '))

View solution in original post

3 Replies
kunkumnaveen
Specialist
Specialist
Author

  • =if(YourField='Value1',' ',if(Yourfield='value2','  '))

View solution in original post

stevedark
Luminary Alumni
Luminary Alumni

Can't believe that there isn't just a check box to remove labels. Oh well.

The solution to have an increasing number of space characters for each wedge is a neat one Naveen. The only issue is that it will fail if there is a new dimension that you are not expecting.

By changing the expression to this it will cope with however many dimension values you have, and newly occurring dimensions:

=aggr(repeat(' ', Rank(sum(TestCount), 4)), Colour)


The sum(TestCount) part needs to be the expression on the pie, and Colour is the dimension.

Hope that helps.

Steve

stevenjoyce
Contributor
Contributor

2 alternative approaches is doing this in a theme or in the css of a mashup if embedding.

The problem with the "solution" is it also removes dimension label when hovering if they are all being set to blanks.

In a theme you can set the fontSize of the piechart-label to 0px.

In mashup you can turn off by targeting data-key="pie-labels"

 

Theme's json ex (note "fontSize": "0px"):

"object": {
"pieChart": {
"axis": {
"title": {
"fontSize": "12px"
}
},
"label": {
"name": {
"color": "@B20",
"fontSize": "0px"
},
"value": {
"fontSize": "12px"
}
}

}

 

In Mashup's css:

/*turn off pie chart labels*/
[data-key="pie-labels"] {
display:none
}