Feature request #1841

horizontal legends

Added by dassouki - over 7 years ago. Updated over 3 years ago.

Status:Closed Start Date:
Priority:Low Due date:
Assigned to:- % Done:

0%

Category:-
Target version:Future Release - Nice to have
Platform: Resolution:fixed
Platform version: Pull Request or Patch supplied:No
Status info: Tag:

Description

i was wondering if it's possible to add a horizontal capability for the legend in print composer

History

Updated by Giovanni Manghi over 5 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

Updated by Giovanni Manghi almost 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

Updated by stefano campus over 4 years ago

is this feature goingo to be added?

Updated by Giovanni Manghi over 4 years ago

  • Assigned to deleted (nobody -)
  • Pull Request or Patch supplied set to No

stefano campus wrote:

is this feature goingo to be added?

not sure if is in the roadmap. Anyway if someone is interested to support the development of a feature it should not be hard to implement.

Updated by Regis Haubourg over 4 years ago

Hi,
I will support this soon (1 - 2 months ) if nobody takes it before.. Please tell me ,
RĂ©gis

Updated by stefano campus over 4 years ago

thank you, regis. i think that this feature would be very veru useful...

Updated by Radim Blazek over 4 years ago

Do you mean multiple columns legend with optional number of columns or just legend items in a single line?

Updated by Giovanni Manghi over 4 years ago

  • Status changed from Open to Feedback
  • Platform deleted (All)
  • Status info deleted (0)

Updated by stefano campus over 4 years ago

i think it could be useful to set how many columns the legend should have, mantaining together all elements of each layer

Updated by Giovanni Manghi over 4 years ago

  • Status changed from Feedback to Open

Updated by Pirmin Kalberer over 4 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

Updated by Radim Blazek over 4 years ago

Multi column support was added (legend Item properties > General > Column count).

Layers are not split, but it would be probably useful to implement optonal layer items splitting because multiple columns with different heights may look bad.

Division of layers to columns is interesting optimization problem BTW, sort of bin packing problem.

Not yet closing because it needs testing and code cleanup.

Updated by Andreas Neumann over 4 years ago

Hi,

Thanks for this.

The problem with the width too small when having only one column seems to be fixed now.

I also think that the application did not crash, but it just takes too long for many layers/entries and I was impatient and killed QGIS after a certain time. Typically, when going beyond 4-6 columns it takes a very long time.


I have a few other suggestions/questions:

  • splitting single layers into multiple columns would be definitely a plus - often some layers have a lot of entries, and some only one or two
  • it would be great if we could control the spacing between the columns
  • for some purposes it would look good if all columns would be of the same widths - determined by the longest overall entry

The first two bullet items would be great, the third is more a nice to have.

Thanks again for your work!

Andreas

Updated by Radim Blazek over 4 years ago

Significantly rewritten in 86c21184:

  • division of layers into columns is using simple heuristic so that it is always fast but it may result in suboptimal combination
  • new option to allow splitting of layers into multiple columns
  • new option to use equal width for all columns

It seems to work but the last commit is significant code changes so I am leaving the issue open for now. Please test and report both positive and negative results.

Updated by Radim Blazek over 4 years ago

Also space between columns is now optional in e029bc7

Updated by Louis-Pierre Beaudry over 3 years ago

I am totally new to QGIS, and although it seems that this issue was solved, I don't see it in the 1.8.0 versio nof QGIS. I saw references to new files, but as a newbie I must admit that where I must put these files is not evident. I didn't know what the keywords were to describe these files, so I thought I could ask here, even though it is not technically related to the initial issue.

If someone could explain me what I am supposed to do to get these options, it would help me a lot.

Updated by Radim Blazek over 3 years ago

  • Status changed from Open to Closed
  • Resolution set to fixed

This was implemented in 1.9 and it won't be backported to 1.8.

Also available in: Atom