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

change line width for part of dimension

I have a linechart with 2 dimensions - salesmonth and year for 4 years.

It gives me a line for each year 2008 - 2009 -  2010 and 2011.

I ´d like the line width for 2011 to be ex. 4 pt. and the others to be only 2 pt.

Is it possible?? and how?

1 Solution

Accepted Solutions
Not applicable
Author

Hi Polschou,

Just uploaded an example QV file in my original response...  does this help?

(added if statement so that all 2010 values are displayed in '<W4>' (thick lines), and all other years to be formated in a dashed line ( '<s2>'), but obviously can return a thinner line instead (ie '<W1>')

View solution in original post

4 Replies
Not applicable
Author

Hi Polschou,

Under the "Expressions" tab within "Chart Properties", expand your expressions in order to show "line style".

Here, you can put various formulas in, to display the line style which can either relate to:

line thickness

line (ie continuous, dashed, dot-dashed etc..)

To control line thickness, the following syntax is used 'W1' to 'W4'  (single quotes required), and where 4 is the thickest.

To control the line "style", use 'S1' to 'S4' to denote whether the line is continuous/solid or dot-dashed etc...

Unsure if both can be used together, personally haven't suceeded, but am relatively new, so perhaps a question for someone else...

Hope this helps...

Kind regards,

Rich

Not applicable
Author

Hi Rich

thanx - but it changes all 4 lines - I only want to change the line for year 2011??

Not applicable
Author

Hi Polschou,

Just uploaded an example QV file in my original response...  does this help?

(added if statement so that all 2010 values are displayed in '<W4>' (thick lines), and all other years to be formated in a dashed line ( '<s2>'), but obviously can return a thinner line instead (ie '<W1>')

Not applicable
Author

Hi rich

That does it - thanx a lot