diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-05-25 14:08:58 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-05-25 14:08:58 +0200 |
commit | f694a575013fef53ef27a1e4415c4039531fbfbe (patch) | |
tree | cfbb264c3b45c83e931aa8f23467f4cc849bdc07 /report/report_content.rb | |
parent | b71b7696f4e628cb6b50703375203a9ef16ea19a (diff) |
fix: bar-plot format changed from svg to png
Diffstat (limited to 'report/report_content.rb')
-rwxr-xr-x | report/report_content.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/report/report_content.rb b/report/report_content.rb index 755147d..a554881 100755 --- a/report/report_content.rb +++ b/report/report_content.rb @@ -287,9 +287,10 @@ class Reports::ReportContent section_bar = @xml_report.add_section(@current_section, section_title) @xml_report.add_paragraph(section_bar, section_text) if section_text - plot_bar = add_tmp_file("bar_plot", "svg") - Reports::PlotFactory.create_bar_plot(plot_bar[:path], validation_set, title_attribute, value_attributes ) - @xml_report.add_imagefigure(section_bar, image_title, plot_bar[:name], "PNG", 100, image_caption) + plot_png = add_tmp_file("bar_plot", "png") + plot_svg = add_tmp_file("bar_plot", "svg") + Reports::PlotFactory.create_bar_plot([plot_png[:path], plot_svg[:path]], validation_set, title_attribute, value_attributes ) + @xml_report.add_imagefigure(section_bar, image_title, plot_png[:name], "PNG", 100, plot_svg[:name]) end private |