Algorithm concept for chart and displaying data