Sha256: c81a5288b6e6d6314a1ae1185be47eb10d37496158789c304d5aad728a2f38cc

Contents?: true

Size: 568 Bytes

Versions: 2

Compression:

Stored size: 568 Bytes

Contents

json.labels(@pollables_created.map { |v| v[:timestamp].strftime('%B %d. %H:%M') })
json.datasets do
  json.array! [
    {
      label: "Created #{@pollable.name.pluralize}",
      data: @pollables_created.map { |v| v[:count] },
      borderColor: '#96C0CE',
      backgroundColor: 'rgba(171,221,235,0.5)',
      fill: false,
      type: 'line'
    },
    {
      label: "Created Sources",
      data: @sources_created.map { |v| v[:count] },
      borderColor: "#32b643",
      backgroundColor: "rgba(50,182,67,0.5)",
      fill: false,
      type: 'line'
    }
  ]
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aeternitas_web_ui-0.2.1 app/views/aeternitas/web_ui/pollables/data_growth.json.jbuilder
aeternitas_web_ui-0.2.0 app/views/aeternitas/web_ui/pollables/data_growth.json.jbuilder