Opened 12 years ago
Closed 12 years ago
#10896 closed enhancement (fixed)
Legend wrapping
Reported by: | Adam Peller | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | 1.5 |
Component: | Charting | Version: | 1.4.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
At present, a legend has two modes, vertical and horizontal. In vertical mode, legend items are arranged into a single column, while in horizontal mode the legend items are arranged into a single row. However, with more than a few legend items a single column soon becomes very deep and does not make good use of the available width, while a single row soon becomes excessively wide. This is addressed by a new mode, horizontal=N, where N is an integer, in which the legend items are arranged into rows of at most N legend items (the last row having potentially fewer). By taking into account the length of legend item names and the available horizontal width on the page, the application can select and appropriate value of N to give a satisfactory layout.
(In [21622]) Legend wrapping. Patch from Dave Clark (IBM, CCLA) Fixes #10896