Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Our next Qlik Insider session will cover new key capabilities. Join us August 11th REGISTER TODAY
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
Partner

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

View solution in original post

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).

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)