I need to sort x-axis ticks of the chart. I tried to use [xAxisTicks], but it didn't work. I couldn't find any example related with xAxisTicks. I tried to assign a variable inside of it like:
values = ["2012","2013","2014","2015","2016"];
Another interesting thing is, My series is already sorted but it still shows unsorted.
Unless you're using a time series (see https://github.com/swimlane/ngx-charts/issues/434 ), the series 'names' are just strings and don't appear to get sorted when the series don't contain the same sets of 'names'. You can, however, adjust the data to fill in the 'missing' series entries,
see https://plnkr.co/edit/RQKpXjAYcocqpTUHZWUo