Sha256: 7a43dfdbd4a34e0f093752df714de5b58935de7db70958cf8a1854080427b8f3
Contents?: true
Size: 482 Bytes
Versions: 29
Compression:
Stored size: 482 Bytes
Contents
module ArfReportDashboardHelper COLORS = { :passed => '#89A54E', :failed => '#AA4643', :othered => '#DB843D', }.freeze def reports_breakdown_chart(report, options = {}) data = [] [[:failed, _('Failed')], [:passed, _('Passed')], [:othered, _('Othered')],].each do |i| data << { :label => i[1], :data => report[i[0]], :color => COLORS[i[0]] } end flot_pie_chart 'overview', _('Compliance reports breakdown'), data, options end end
Version data entries
29 entries across 29 versions & 1 rubygems