Have you considered using the PowerChart component?
It can be set to realtime (automatically updates in real-time according to selected tag values) or historical.