lib/sol/coordinate_chart.rb
#------------------------------------------------------------------------------------
# Defines the x scale for the chart
#------------------------------------------------------------------------------------
Defines the x scale for the chart
Defines the x scale for the chart
def x(type, input_domain = nil, input_range = nil)
      if (type.is_a? Sol::Scale)
        scale = type
      else
        scale = Sol.scale(type)
        scale.domain(input_domain) if input_domain
        scale.range(input_range) if input_range
      end
      @properties["x"] = scale.spec
      return self
    end
def x ( type , input_domain = nil , input_range = nil ) if ( type . is_a? Sol :: Scale ) scale = type else scale = Sol . scale ( type ) scale . domain ( input_domain ) if input_domain scale . range ( input_range ) if input_range end @properties [ "x" ] = scale . spec return self end
Defines the x scale for the chart
Defines the x scale for the chart
type
input_domain
input_range