Please use the public Dygraph.getOption method, rather than the private .attr_ method (here and elsewhere).