def export_iruby(export_type='png', file_name='chart')
      js = ''
      js << to_html_iruby
      js << extract_export_code_iruby(@div_id, export_type, file_name)
      IRuby.html js
    end
def export_iruby(export_type='png', file_name='chart')
      js = ''
      js << to_html_iruby
      js << extract_export_code_iruby(@div_id, export_type, file_name)
      IRuby.html js
    end
Exports chart to different formats in IRuby notebook

 @param type [String] format to which chart has to be exported
 @param file_name [String] The name of the file after exporting the chart
 @return [void] loads the js code of chart along with the code to export
   in IRuby notebook