"Auto" value for horizontal legends

Added the option of setting itemWidth to "auto" for chart legends. When this is set, horizontal distribution of legend elements will not be fixed - they will be laid out according to their width. The setting uses _gap to add horizontal gaps between elements. Also, the default for _itemWidth is now "auto".