I am trying to add a horizontal line to dygraph which already show my time series data.
I have average of the complete data which I want to show as a static horizont
Your options are either to use an underlay callback (ala http://dygraphs.com/tests/highlighted-region.html) or to add a second, constant data series.