fixed repeating keys issue also in pie chart and stacked bar chat.