Opened 7 years ago

Closed 7 years ago

#18572 closed enhancement (patchwelcome)

Chart Legend improvement

Reported by: Arunas Ruksnaitis Owned by: Eugene Lazutkin
Priority: undecided Milestone: 1.13
Component: Charting Version: 1.10.4
Keywords: Cc:
Blocked By: Blocking:


dojox/charting/widget/Legend has an option "horizontal", allowing to choose between plain one-line horizontal and one-column vertical layout. Two problems with this in case of many series:

  1. horizontal layout grows unlimited and may overflow
  2. vertical layout is single-column and does not take advantage of available horizontal space.

Suggestion to replace "horizontal" option with "number of columns" option. Horizontal layout could be achieved by specifying large enough number, and vertical layout could be achieved by specifying limit 1. The best bit is that any numbers in between will result in a grid layout.

The code would be more tidy and maintainable, because there will be one rendering logic for all values of the columns option.

An improvement on that could be automatic determination of the number of columns based on the width of the container, but just having a hardcoded multi-column layout would be a big improvement already.

Change History (1)

comment:1 Changed 7 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in more than a year, I'm closing this as patchwelcome. Please let us know if you would like to get involved in helping make this change to Dojo!

Note: See TracTickets for help on using tickets.