Implement a few more functions for dygraph.