Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Brip51
Creator
Creator

limit length of horizontal reference line

Hi,

I have a bar chart with a horizontal reference line.  I want the reference line to only extend as far as the first bar and not all the way across the chart.

Is there a way yo do that?BarChartRefLine.jpg

Than you for any help you can offer.

Brian

1 Solution

Accepted Solutions
Gysbert_Wassenaar

A reference line will always span the entire plot width. If you fix the min and max scale values of the y-axis you could put a line object on top of the chart. You could also use error bars, but those won't be wider than the bars so you wouldn't get a line, but line segments each spanning a bar.


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar

A reference line will always span the entire plot width. If you fix the min and max scale values of the y-axis you could put a line object on top of the chart. You could also use error bars, but those won't be wider than the bars so you wouldn't get a line, but line segments each spanning a bar.


talk is cheap, supply exceeds demand
Not applicable

Hi Brian,

Its not possible because there is no option in reference line settings to limit it.

Regards

Brip51
Creator
Creator
Author

Hi Gysbert,

Thank you.

I didn't think there was anyway to easily limit the length.

I think what I have will work.

Thank you again for the help,

Brian