-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Few days ago I filed this issue #65 and it turns out that not even basic examples which do not involve iRuby are working for me. I am using the latest nyaplot gem installed via gem install nyaplot.
This is the example I ran and below is my IRB output:
?> require 'nyaplot'
=> true
>>
?> # Bar chart
?> plot = Nyaplot::Plot.new
=> #<Nyaplot::Plot:0x0000000320edf8 @properties={:diagrams=>[], :options=>{}}>
>> plot.add(:bar, ['Persian', 'Maine Coon', 'American Shorthair'], [10,20,30])
=> #<Nyaplot::Diagram:0x00000003200c08 @properties={:type=>:bar, :options=>{:x=>"data0", :y=>"data1"}, :data=>"191ab013-5f74-456e-98d0-ed422c72700c"}, @xrange=["Persian", "Maine Coon", "American Shorthair"], @yrange=[0, 30]>
>> plot.x_label("Species")
=> #<Nyaplot::Plot:0x0000000320edf8 @properties={:diagrams=>[#<Nyaplot::Diagram:0x00000003200c08 @properties={:type=>:bar, :options=>{:x=>"data0", :y=>"data1"}, :data=>"191ab013-5f74-456e-98d0-ed422c72700c"}, @xrange=["Persian", "Maine Coon", "American Shorthair"], @yrange=[0, 30]>], :options=>{:x_label=>"Species"}}>
>> plot.y_label("Number")
=> #<Nyaplot::Plot:0x0000000320edf8 @properties={:diagrams=>[#<Nyaplot::Diagram:0x00000003200c08 @properties={:type=>:bar, :options=>{:x=>"data0", :y=>"data1"}, :data=>"191ab013-5f74-456e-98d0-ed422c72700c"}, @xrange=["Persian", "Maine Coon", "American Shorthair"], @yrange=[0, 30]>], :options=>{:x_label=>"Species", :y_label=>"Number"}}>
>> plot.export_html("bar.html")
=> 2245When I open "bar.html" in Firefox or Chromium I get blank page with "Nyaplot" as title of the page.
Here is the output to "bar.html" file.
Any suggestions?
Metadata
Metadata
Assignees
Labels
No labels