Implementing real-time charting