performance improvements for 24 hours graph