Class: D3::PieGenerator

Inherits:
Object
  • Object
show all
Includes:
Native
Defined in:
lib/opal/d3/pie.rb

Instance Method Summary collapse

Methods included from Native

included, #initialize

Instance Method Details

#call(*args) ⇒ Object



4
5
6
7
8
# File 'lib/opal/d3/pie.rb', line 4

def call(*args)
  @native.call(*args).map{|o|
    `Opal.hash({ data: o.data, index: o.index, value: o.value, start_angle: o.startAngle, end_angle: o.endAngle, pad_angle: o.padAngle })`
  }
end