Module: Glib::JsonUi::ViewBuilder::Charts::Series

Included in:
Area, Column, Line, Pie
Defined in:
app/helpers/glib/json_ui/view_builder/charts.rb

Instance Method Summary collapse

Instance Method Details

#dataGroups(blocks) ⇒ Object



26
27
28
29
30
31
32
33
34
# File 'app/helpers/glib/json_ui/view_builder/charts.rb', line 26

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

#dataSeries(blocks) ⇒ Object



16
17
18
19
20
21
22
23
24
# File 'app/helpers/glib/json_ui/view_builder/charts.rb', line 16

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