accessing a private member of an object (let alone methods on that member) is generally a code smell. I realize the separation of concerns between dygraph-layout.js and dygraph.js isn't the cleanest, but we should try to avoid making it worse. Perhaps add an onLineEvaluated_ method to the dygraph object?