How to get the trends in the chart