X and Y values linked to a tag + refresh XY Chart automatically

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.