Fix origin of coordinate system for charts