The legend of staked order bar chart sequence is opposite to series

Hi experts, I am implementing bar chart widget in one of my application, there I am using stacked mode for rendering the bar chart. When creating a series for bar chart the legend order is reverse of the stacking order of the bar chart. Is there any way I can match the legend order to the bar stacking order? Thanks in advance Shivani  
1 answers

Could you provide a screenshot, please? Just to make sure we are talking about the same thing