Fix undefined x
Add sample for simple xy chart