     output_AHI_change(scatter_pt[0], scatter_pt[1])
 
 
-
-
   $(document).on 'click', "[data-object~='calculate-minimum-weight']", () ->
     $("#desired-weight").val minimum_healthy_weight(calculate_height())
     calculate_predicted_ahi_change()


output_AHI_change = (x,y) ->
  $("#ahi").removeClass "hidden"
  draw_ahi_graph2()


draw_bmi_graph = () ->

    .attr("cx", (d) -> xa(d.weight_change) + 15)
    .attr("cy", (d) -> ya(d.ahi_change))
    .attr("r", 5)
    .style("fill", "#1765BC")
  .filter((d) -> d.weight_change == x1)
    .style("fill", "#ffa400")

  svg.selectAll("text").data(data)
    .enter().append("text")
