added graph for historical data