correct error in chart template fix; should be opts.y not opts.x