Sha256: a5af7593ad18ea8b1a3740965d6239f2ea140bf6a6025842ef150681aba5a25d
Contents?: true
Size: 445 Bytes
Versions: 1
Compression:
Stored size: 445 Bytes
Contents
require "statusboard" # In this example, the Statusboard-compatible output will be generated without any server-related code # being involved. Could be used to integrate the serving of Statusboard widgets into existing applications. widget = Statusboard::GraphWidget.new do title "My first graph" type :line data do data_sequence do title "f(x) = x" (0..15).each do |n| datapoint n, n end end end end puts widget.render
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
statusboard-0.1.0 | examples/rendering_only.rb |