Sha256: 0a23a0c3f4c87cdaa23d3cbb0c0813a506fa2602cbfb97118d243fb320712d3d
Contents?: true
Size: 1.05 KB
Versions: 6
Compression:
Stored size: 1.05 KB
Contents
# pie graph - # data is Shoes https downloads on a Sunday (light day) Shoes.app width: 620, height: 480 do @values1 = [15, 5, 4, 4, 3, 3, 1, 1] # downloads @obs1 = ["gtk3-32.exe", "gtk3-x86_64.install", "osx-10.9.tgz", "/", "3.2.25.exe", "robots.txt", "gtk3-i686,install,", "gtk3-armhf.install"] stack do para "Plot Pie Demo 5" 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: "Shoes Https downloads", caption: "popularity " , font: "Helvetica", auto_grid: true, default: "skip", background: white, chart: "pie", percent: true, colors: [yellow, olive] end end cs = chart_series values: @values1, labels: @obs1, name: "download", min: @values1.min, max: @values1.max @grf.add cs #@grf.add values: @values1, labels: @obs1, #name: "download", min: @values1.min, max: @values1.max #, color: dodgerblue, #points: "dot", strokewidth: 1 end end
Version data entries
6 entries across 6 versions & 2 rubygems