Echarts Resize


#Coffee
window.onresize = () ->
  $("[_echarts_instance_]").each () ->
    id = $(this).attr('_echarts_instance_');
    window.echarts.getInstanceById(id).resize()
//JS
window.onresize = function() {
  $("[_echarts_instance_]").each(function(){
    id = $(this).attr('_echarts_instance_')
    window.echarts.getInstanceById(id).resize()
  })
}