class Spoom::Coverage::D3::Pie::Calls
def initialize(id, title, snapshot)
def initialize(id, title, snapshot) super(id, title, { true: snapshot.calls_typed, false: snapshot.calls_untyped }) end
def tooltip
def tooltip <<~JS function tooltip_#{id}(d) { tooltipPie(d, d.data.key == "true" ? " checked" : " unchecked", "calls", sum_#{id}) } JS end