Class: Glib::JsonUi::ViewBuilder::Charts::Line

Inherits:
View show all
Defined in:
app/helpers/glib/json_ui/view_builder/charts.rb

Instance Attribute Summary

Attributes inherited from JsonUiElement

#json, #page

Instance Method Summary collapse

Methods inherited from JsonUiElement

#initialize, #props

Constructor Details

This class inherits a constructor from Glib::JsonUi::JsonUiElement

Instance Method Details

#dataSeries(blocks) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'app/helpers/glib/json_ui/view_builder/charts.rb', line 6

def dataSeries(blocks)
  json.dataSeries do
    blocks.each do |block|
      json.child! do
        block.call
      end
    end
  end
end