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