diff options
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 |