If you omit the sortField
or specify null
(the default) then the chart will preserve the order in the data source.
For version 1.12 we just added the ability to specify -value
(note the prefix -
) which will result in ascending sort order.
We used this approach instead of adding another field like sortAscending
since this will allow future version to implement something like sortField: "category, -value"
.
