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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Modifying Bar Chart Axis Text

Greetings all.

I have a bar chart which is displaying individual variance from group average.

Say the following:

John 10

Lisa 20

Jane 30

The chart correctly lists -10,0,10 as variance from average.

However, what the client would like to see, is instead of 0, have the baseline be the average of 20, and then would list -10 and +10 for the outliers.

Is there a simple way to accomplish this?

Thank you in advance for your time and consideration.

1 Solution

Accepted Solutions
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

I'm not sure you can modify the axis, but you can make the same impression with the following:

- Hide the original axis.

- Create a Reference line with the desired formula for the Average as the new "axis"

- Use the same formula to calculate the "Bar Offset" for your main Expression (to see "Offset" and other Expression Attributes, click on the plus next to the expression )

cheers,

Oleg

View solution in original post

2 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

I'm not sure you can modify the axis, but you can make the same impression with the following:

- Hide the original axis.

- Create a Reference line with the desired formula for the Average as the new "axis"

- Use the same formula to calculate the "Bar Offset" for your main Expression (to see "Offset" and other Expression Attributes, click on the plus next to the expression )

cheers,

Oleg

Not applicable
Author

Thanks for the reply Oleg.

That definitely sounds like it will work!