lib/ruby_rich/dashboard.rb
#------------------------------------------------------------------------------------
# When we re_run a script, there is no need to add the dashboard properties
# again
#------------------------------------------------------------------------------------
When we re_run a script, there is no need to add the dashboard properties
again
When we re_run a script there is no need to add the dashboard properties again
def re_run
      scrpt = String.new
      @scene.create_grid((keys = @charts.keys).size, keys) if !@scene.specified?
      scrpt << @scene.bootstrap
      @charts.each do |name, chart|
        scrpt << chart.js_spec if !chart.nil?
      end
      scrpt += "dc.renderAll();"
      @bridge.send(:gui, :executeScript, scrpt)
    end
def re_run scrpt = String . new @scene . create_grid ( ( keys = @charts . keys ) . size , keys ) if ! @scene . specified? scrpt << @scene . bootstrap @charts . each do | name , chart | scrpt << chart . js_spec if ! chart . nil? end scrpt += "dc.renderAll();" @bridge . send ( :gui , :executeScript , scrpt ) end
When we re_run a script, there is no need to add the dashboard properties
again
When we re_run a script there is no need to add the dashboard properties again
# scrpt will have the javascript specification # add bootstrap container if it wasn't specified by the user # add charts # add the chart specification # render all charts # sends a message to the gui to execute the given script