Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3434114
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:39:30+00:00 2026-05-18T07:39:30+00:00

I have a model, ContactEmail that has a date_sent attribute and an email_id, referencing

  • 0

I have a model, ContactEmail that has a date_sent attribute and an email_id, referencing another model Email.

I would like to create a bar graph which shows on the x-axis dates and on the y-axis the number of ContactEmails that were sent on a specific date.

I would like to also do the same, filtered for ContactEmails where email_id equals a specific value.

My end-goal is to have some kind of a bar graph — I am still researching how to do that, but regardless, it seems like I would need some kind of a time-series array, which I suppose would have date as one element, and the count for the other.

How do I do this?

The graphing solution I am looking at is called Seer:

http://github.com/Bantik/seer

I am using the statistics gem, which is outputting a hash that looks like this:

=> #<OrderedHash {"2010-10-23"=>2, "2010-09-22"=>3, "2010-09-11"=>1, "2010-08-27"=>1, "2010-10-15"=>
1, "2010-09-15"=>1, "2010-08-08"=>2, "2010-10-17"=>14, "2010-10-06"=>2, "2010-09-28"=>1, "2010-10-19
"=>1, "2010-09-20"=>1}>

1) How can I put that in an order? 2) Does Seer recognize null date values?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T07:39:31+00:00Added an answer on May 18, 2026 at 7:39 am

    I used the statistics gem

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a model, Thing, that has a has_many with ThingPhoto, using Paperclip to
Let's say I have a model like this class Foo(db.Model): id = db.StringProperty() bar
Let's assume I have a model called product. Let's assume that product has three
I have a model that already has a couple dozen of columns that will
I have a model that has several properties. The properties can be primitive (String)
I have model that looks like this: public class Lesson { public int Id
I have three partials that I'd like to consolidate into one. They share the
I have model/controller called notification. I want to make a new url so that
I have a snippet to create a 'Like' button for our news site: <iframe
I have model Person or say Profile and this class Person has a genericRelationship

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.