Permalink
Browse files

added yUnitSystem

  • Loading branch information...
1 parent ef3851c commit 40bd76c07e0ca922d45604d4c81f176d65612727 @whiskybar whiskybar committed Jun 1, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/graphite_graph.rb
View
2 lib/graphite_graph.rb
@@ -32,6 +32,7 @@ def defaults
:hide_grid => nil,
:ymin => nil,
:ymax => nil,
+ :yunit_system => nil,
:linewidth => nil,
:linemode => nil,
:fontsize => nil,
@@ -266,6 +267,7 @@ def url(format = nil, url=true)
url_parts << "hideGrid=#{properties[:hide_grid]}" if properties[:hide_grid]
url_parts << "yMin=#{properties[:ymin]}" if properties[:ymin]
url_parts << "yMax=#{properties[:ymax]}" if properties[:ymax]
+ url_parts << "yUnitSystem=#{properties[:yunit_system]}" if properties[:yunit_system]
url_parts << "lineWidth=#{properties[:linewidth]}" if properties[:linewidth]
url_parts << "lineMode=#{properties[:linemode]}" if properties[:linemode]
url_parts << "fontSize=#{properties[:fontsize]}" if properties[:fontsize]

0 comments on commit 40bd76c

Please sign in to comment.