To draw real-time and historical chart.