Sha256: eaee50705a31cd14a69f951594d72a629b595a631aaff032f966bb374df63762

Contents?: true

Size: 1.25 KB

Versions: 6

Compression:

Stored size: 1.25 KB

Contents

# Radar graph - 
Shoes.app width: 620, height: 480 do
  @xobs = ["internet", "television", "radio", "newspaper", "magazine"]
  @values1 = [80,        160,          145,     75,          80] 
  @values2 = [180,        90,           95,     90,          90]
  @columns = [ ["Internet", 0, 200, "%3.0f k"], 
               ["Television", 0, 250," %3.0f k" ],
               {label: "Radio", min: 0, max: 200, format: "%3.0f k"},
               ["Newspaper", 0, 200, "%3.0f k"],
               ["Magazine", 0, 200, "%3.0f k"]
             ]
  stack do
    para "Plot Radar Demo 6"
    flow do 
      button "quit" do Shoes.quit end
    end
    widget_width = 600
    widget_height = 400
    stack do
      flow do
        @grf = plot widget_width, widget_height, title: "Advertising", caption: 
          "Budget Spend" , font: "Helvetica", auto_grid: true,
          default: "skip", background: cornsilk, chart: "radar", column_settings: @columns
      end
    end
    @grf.add values: @values1, labels: @xobs,
      name: "Year 1", min: 0, max: 200, color: dodgerblue,
      points: "dot", strokewidth: 3
    cs = app.chart_series values: @values2, labels: @xobs,
      name: "Year 2", min: 0, max: 200, color: coral,
      points: "dot", strokewidth: 3
    @grf.add cs
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
scarpe-0.4.0 examples/legacy/not_checked/shoes3-tests/plot/gr6.rb
scarpe-0.3.0 examples/legacy/not_checked/shoes3-tests/plot/gr6.rb
scarpe-0.2.2 examples/legacy/not_checked/shoes3-tests/plot/gr6.rb
lacci-0.2.1 examples/legacy/not_checked/shoes3-tests/plot/gr6.rb
scarpe-0.2.1 examples/legacy/not_checked/shoes3-tests/plot/gr6.rb
scarpe-0.2.0 examples/legacy/not_checked/shoes3-tests/plot/gr6.rb