View should be an optional argument.

Fix angular error in date and xy examples : Error: [$compile:nonassign] http://errors.angularjs.org/1.2.23/$compile/nonassign?p0=undefined&p1=dygraphs