add real-time chart drawing