Method: Rdata#set_x_axis_name

Defined in:
lib/rdata.rb

#set_x_axis_name(name = "X Axis") ⇒ Object

This will give a name to the X axis, writting it horizontally behind the chart

  • chart_data.set_x_axis_name(“Samples”)



155
156
157
158
159
160
161
# File 'lib/rdata.rb', line 155

def set_x_axis_name(name="X Axis")
  if @data_description["axis"].nil?
    @data_description["axis"]={"x" => name}
  else
    @data_description["axis"]=@data_description["axis"].merge("x" => name)
  end
end