Sha256: dc2f6f1d64ed5e594d18c19697524dca595c551d8aaf23e4c3e3d422b08cadde

Contents?: true

Size: 422 Bytes

Versions: 2

Compression:

Stored size: 422 Bytes

Contents

json.labels(@polls.map { |v| v[:timestamp].strftime("%H:%M") })
json.datasets do
  json.array! [
    {
      label: '# Polls',
      data: @polls.map { |v| v[:count] },
      borderColor: "#96C0CE",
      backgroundColor: "rgba(171,221,235,0.5)"
    },
    {
      label: '# Failures',
      data: @failures.map { |v| v[:count] },
      borderColor: "#C25B56",
      backgroundColor: "rgba(255,116,111,0.5)"
    }
  ]
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aeternitas_web_ui-0.2.1 app/views/aeternitas/web_ui/dashboard/polls_timeline.json.jbuilder
aeternitas_web_ui-0.2.0 app/views/aeternitas/web_ui/dashboard/polls_timeline.json.jbuilder