morellon / rrd-ffi

A ruby wrapper for librrd (rrdtool) using ffi.
MIT License
71 stars 20 forks source link

add HRULE #26

Open skandragon opened 11 years ago

skandragon commented 11 years ago

This is a monkey-patch, but allows for basic HRULE usage:

module RRD
  class Graph
    def draw_hrule(options)
      options = {:width => 1}.merge options
      type = "HRULE"
      draw(type, options)
    end
  end
end