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

Inherits:
View show all
Includes:
ReleaseDateIndicator
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 included from ReleaseDateIndicator

#lineVertical

Methods inherited from JsonUiElement

#initialize, #props

Constructor Details

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

Instance Method Details

#dataSeries(blocks) ⇒ Object



20
21
22
23
24
25
26
27
28
# File 'app/helpers/glib/json_ui/view_builder/charts.rb', line 20

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