lib/report_formatter/zgraph.rb
# create the graph object and add titles, fonts, and colors
create the graph object and add titles, fonts, and colors
create the graph object and add titles fonts and colors
def build_document_header
      super
      graph_type = mri.graph.kind_of?(Hash) ? mri.graph[:type] : mri.graph
      raise "Specified graph <#{graph_type}> is not a supported type" unless ZiyaCharting::CHARTS.include?(graph_type)
      build_html_title
      mri.chart = Ziya::Charts.const_get(graph_type).new(ZiyaCharting.xmlswf_license)
      ztheme = options.theme.nil? ? "miq" : options.theme.downcase
      mri.chart.add(:theme, ztheme)
      mri.chart.add(:user_data, :title, mri.title)
      mri.chart.add(:user_data, :show_title, options.show_title)
      mri.chart.add(:user_data, :graph_options, options.graph_options)
    end
def build_document_header super graph_type = mri . graph . kind_of? ( Hash ) ? mri . graph [ :type ] : mri . graph raise "Specified graph <#{graph_type}> is not a supported type" unless ZiyaCharting :: CHARTS . include? ( graph_type ) build_html_title mri . chart = Ziya :: Charts . const_get ( graph_type ) . new ( ZiyaCharting . xmlswf_license ) ztheme = options . theme . nil? ? "miq" : options . theme . downcase mri . chart . add ( :theme , ztheme ) mri . chart . add ( :user_data , :title , mri . title ) mri . chart . add ( :user_data , :show_title , options . show_title ) mri . chart . add ( :user_data , :graph_options , options . graph_options ) end
create the graph object and add titles, fonts, and colors
create the graph object and add titles fonts and colors