examples/scatterplot/scatterplot.rb
def style
    Proc.new do |g|
      g.attr("font-family", "sans-serif")
      g.attr("font-size", "10px")
      g.attr("fill", "gray")
    end
  end
#--------------------------------------------------------------------------------------
# Defines the style for the labels in the plot.  Method style returns a Proc with the
# groups attributes
#--------------------------------------------------------------------------------------
Defines the style for the labels in the plot.  Method style returns a Proc with the
groups attributes
Defines the style for the labels in the plot . Method style returns a Proc with the groups attributes
def style
    Proc.new do |g|
      g.attr("font-family", "sans-serif")
      g.attr("font-size", "10px")
      g.attr("fill", "gray")
    end
  end
def style Proc . new do | g | g . attr ( "font-family" , "sans-serif" ) g . attr ( "font-size" , "10px" ) g . attr ( "fill" , "gray" ) end end
Defines the style for the labels in the plot.
Defines the style for the labels in the plot .