Method: Rdata#set_y_axis_name
- Defined in:
- lib/rdata.rb
#set_y_axis_name(name = "Y Axis") ⇒ Object
This will give a name to the Y axis, writting it horizontally behind the chart
-
chart_data.set_y_axis_name(“Temperature”)
164 165 166 167 168 169 170 |
# File 'lib/rdata.rb', line 164 def set_y_axis_name(name="Y Axis") if @data_description["axis"].nil? @data_description["axis"]= {"y" => name} else @data_description["axis"]=@data_description["axis"].merge("y" => name) end end |