Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Chart with two line dimension

Hello ,

Is it possible to do a dimension with two line on chart ?

Thanks in advance

11 Replies
sudeepkm
Specialist III
Specialist III

Do you want to split the ZZZ into two bars?

If so then can you please provide the conditional logic based on which you want to split it

Not applicable
Author

You can create one expression and add two dimensions to a Line chart. For example you can have dimensions as Year and City and expression as Sum(Sales). Then you will see Year in x-axis and one line for each City. Line represents the Sales for the particular City.

Does that answer your question?

maxgro
MVP
MVP

if you want two bars (you asked for lines; lines = bars?) in the chart you posted just add another expression

if you want a line chart with 2 lines you need 2 expression and a line chart (change from bar to line in first tab, general)

1.png

Not applicable
Author

Hi All,

I want to show the name of 'Category' in two lines. A bar will stay one.

e.g.

ZZZ I would              \ ________________________

like to                      /             

sudeepkm
Specialist III
Specialist III

I think in a bar chart you cannot wrap the dimension field values. I'll further check and confirm it to you.

Not applicable
Author

Thanks sudeepkm

Much appreciated

Not applicable
Author

There is no way to wrap the text. Your only real options are either to make the font smaller, or un-tick "Truncate Label" in which case the label will continue writing over the bottom of the graph. If you hold down Ctrl & Shift after selecting the graph, you can also shrink the graph size so you have more room for the axes to display.

Not applicable
Author

Hi Byron,

I did Ctrl & Shift but it's looking not nice.

Where can I find "Truncate Label" ?

Not applicable
Author

You can find it under Axes - See highlighted below. There really isn't a great answer to what you are looking for. Sometimes I just drop the font size as much as possible

Capture.JPG.jpg