BarComparison

Package: Libraries.Interface.Controls.Charts · Inherits from: Libraries.Containers.Support.Comparison, Libraries.Language.Object

This class provides a way to compare two Bar objects. The returned values from its sole action is an integer with the value of -1 (the left item is smaller), 0 (the items are equal) or 1 (the left item is larger). It can be used to override the standard comparison in Object for sorting single bars by bar size. Atrribute: Author Hannah Williams, Tim Kluthe

Actions

Compare(Libraries.Language.Object left, Libraries.Language.Object right)

This currently sorts single-bars in descending bar size order. Whenever sort is used with this, be sure to update axis labels.

Parameters

Returns

integer

SetAscending(boolean ascending)

This sets the comparison so bar groups are sorted in ascending (true) or descending (false) order.

Parameters

  • ascending boolean

Inherited Actions

3 actions from Libraries.Containers.Support.Comparison
3 actions from Libraries.Language.Object