The button should appear in the top-left corner of the chart, which does not have a fixed position.

You can get at this coordinate via e.dygraph.plotter_.area.{x,y}.

This is a bit of private API that appears in a few of the other plugins as well.