labelsX property

LinkedHashSet<String> labelsX
getter/setter pair

A predefined sets of labels in X axis. If left empty, labels will be generated from the data points, and will keep on increasing if more X values are encountered. In bar chart, labels are stored as String, not in their numerical values. This is because it might be impossible to compare two double values for equality. And because the bar chart does not have any kind of sorting in X axis, it uses LinkedHashSet. Data points are also store using LinkedHashMap, therefore, you are the one in charge with ordering them.

Implementation

LinkedHashSet<String> labelsX = LinkedHashSet();