Sha256: f2d429f5e3833c5d881290a73a5a8dc4f88de0c98739d0931b05e3b8c0f448b9
Contents?: true
Size: 281 Bytes
Versions: 35
Compression:
Stored size: 281 Bytes
Contents
# Populate the graph with some random points points = [] (1..10).each do |i| points << { x: i, y: rand(50) } end last_x = points.last[:x] SCHEDULER.every '2s' do points.shift last_x += 1 points << { x: last_x, y: rand(50) } send_event('convergence', points: points) end
Version data entries
35 entries across 35 versions & 6 rubygems