Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Adding an Average reference line to a bar chart

Hi,

I need to create a similar chart like the one attached.

The issue I have is displaying a vertical line which indicates the average duration value.

I found in the forums tips about using a reference line. But the issue is that it is horizontal.

Your help is highly appreciated.

Thanks!

1 Solution

Accepted Solutions
Gysbert_Wassenaar

If you have continuous X axis you can add a vertical reference line by choosing Continous X as location:

comm74090.png


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
Not applicable
Author

Gysbert_Wassenaar

The x-axis needs to be continuous to make it possible to add a vertical reference line. See attached example.


talk is cheap, supply exceeds demand
Not applicable
Author

Hi,

I can't open your file, because I have a personal edition.

But after definining the Continuous, it's still didn't help.

BTW, I'm using Class for the dimension, but it was overriden by the Continuos.

Thanks!MyChart.JPG

Gysbert_Wassenaar

If you have continuous X axis you can add a vertical reference line by choosing Continous X as location:

comm74090.png


talk is cheap, supply exceeds demand
Not applicable
Author

Now I got it! Thanks!

The only issue left is that I can't use the class display range.

(If I disselect the Continuous from the Axes tab).

Is there a workaround to have both?

Chart with class.JPG