Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Adding reference line - Line Chart

What are the steps of adding vertical reference lines in a line chart? Please help..!!

1 Solution

Accepted Solutions
MarcoWedel

Hi,

maybe using a combo chart instead of a line chart and creating a narrow bar at a specific date using some flag.

hope this helps

regards

Marco

View solution in original post

8 Replies
morganaaron
Specialist
Specialist

As far as I know, you can only use the inbuilt reference line function when your x axis is continuous.

Go to Axes and on the bottom half of the options, tick continuous for your axis (assuming you want it to be..!)

Then in the Presentation tab you can choose reference line, add one on the Continuous X Axis and give it an expression like =5 for example, which on a continuous scale from 1-20 would create a reference line at 5.

yduval75
Partner - Creator III
Partner - Creator III

Hello,

In presentation tab, click on add a reference line.
You can put an expression or a value.

Not applicable
Author

Thanks for the reply. I'm getting continuous x option as disabled. Can you tell me the reason possibly behind it?

Capture.PNG

Not applicable
Author

Thanks for the reply. I'm getting continuous x option as disabled. Can you tell me the reason possibly behind it?

Capture.PNG

MarcoWedel

Hi,

vertical reference lines are only available for continuous dimension axes, so you have to set your dimension axis properties accordingly:

QlikCommunity_Thread_145641_Pic1.JPG

QlikCommunity_Thread_145641_Pic2.JPG

QlikCommunity_Thread_145641_Pic3.JPG

QlikCommunity_Thread_145641_Pic4.JPG

hope this helps

regards

Marco

Not applicable
Author

Thank you so much for the help. But I can't make my dimension axis continuous as I'm representing dates as my dimension which are take from an excel sheet and are not continuous.

Capture.PNG

Is it still possible to define some vertical reference lines at some of the selected dates?

Thanks and Regards

Nishant

MarcoWedel

Hi,

maybe using a combo chart instead of a line chart and creating a narrow bar at a specific date using some flag.

hope this helps

regards

Marco

Anil_Babu_Samineni

marcowedel

I need same in Qliksense, Do we have any work around to check? If possible, Can you share V1 in sense (QVF).

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful