algorithm rebuilt for chart history displya chartEntry.html