Class: D3::PieGenerator
Instance Method Summary collapse
Methods included from Native
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 |