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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
CasperQlik
Creator
Creator

Remove 2nd dim on stacked stacked bar chart legend

Hi Qlik Community

Is it possible to remove just the 2nd dimension on a stacked bar chart? See picture below for clarification.

I would like to display the axis title for dim1 but the dim2 just clutters the view. Is there a way?

Chart:

CasperQlik_0-1770107932818.png

My chart logic:

CasperQlik_1-1770107951590.png

Any help is appreciated

Casper

 

2 Solutions

Accepted Solutions
Daniel_Castella
Support
Support

Hi @CasperQlik 

 

I think it cannot be removed directly. But if you rename the label as chr(0), it will appear blank seeming it is no longer there like in the image below.

Daniel_Castella_0-1770114044200.png

 

Kind Regards

Daniel

View solution in original post

Daniel_Castella
Support
Support

Hi @CasperQlik 

 

I don't think the comma can be removed. The chart is not designed to not display one of the dimensions.

 

There is other solution but it is a bit ugly. You can use a Layout Container, put the stack barchart inside and above the x axis, a text object with the title you want. Like in the image below (note that in this image I left the outer lines for the text object to mark it, but you can remove them to make the trick that the title belongs to the chart):

Daniel_Castella_0-1770120801153.png

 

Kind Regards

Daniel

View solution in original post

3 Replies
Daniel_Castella
Support
Support

Hi @CasperQlik 

 

I think it cannot be removed directly. But if you rename the label as chr(0), it will appear blank seeming it is no longer there like in the image below.

Daniel_Castella_0-1770114044200.png

 

Kind Regards

Daniel

CasperQlik
Creator
Creator
Author

I already tried something similar. The issue is it leaves a "floating" comma after the remaining dim. 

Daniel_Castella
Support
Support

Hi @CasperQlik 

 

I don't think the comma can be removed. The chart is not designed to not display one of the dimensions.

 

There is other solution but it is a bit ugly. You can use a Layout Container, put the stack barchart inside and above the x axis, a text object with the title you want. Like in the image below (note that in this image I left the outer lines for the text object to mark it, but you can remove them to make the trick that the title belongs to the chart):

Daniel_Castella_0-1770120801153.png

 

Kind Regards

Daniel