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

  • SEARCH
  • Home
  • 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 366175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:36:27+00:00 2026-05-12T13:36:27+00:00

I am developing a rails application where I need a success rate system similar

  • 0

I am developing a rails application where I need a “success rate” system similar to RetailMeNot. I noticed that they use jQuery Sparkline library (http://omnipotent.net/jquery.sparkline/) to generate a success rate trend for each coupon.

For example, in their source code:

<em>84%</em> Success<br/><span class="trend">14,18,18,22,19,16,15,28,21,17</span>

<em>20%</em> Success<br/><span class="trend">-1,1,-1,-1,-2,-2,1,-1,1,-1</span>

Can someone explain to me the best way to develop a similar trending system for success rate?

  • 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-12T13:36:28+00:00Added an answer on May 12, 2026 at 1:36 pm

    A trend is just a number calculated at regular intervals. In this case it looks like the site is just binning the data they get from the “Did this coupon work for you?” question, and then plotting those values in the chart. In other words, they take the number of (successes – failures) in some time interval (e.g. 12 hours) and plot that number for each interval.

    As time passes, they probably rebin to keep the number of bars on the x axis acceptable. For example, if they only want to show 8 bars on the plot, then after 4 hours they’ll have to widen the bins.

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

Sidebar

Related Questions

I am developing a Rails application and would like to understand when to use
I'm developing a Ruby on Rails application that needs to allow the user to
I have a Rails application that accepts file uploads of CSV files. When developing
I am developing a Rails application which will need frequent access to public APIs,
I am developing a rails application that will eventually contain products, users, and orders.
I have a Ruby on Rails application that I'm developing on my computer, which
I am considering developing an application using Ruby on Rails that is a planner
I'm developing a Ruby on Rails application need some advanced search engine functionality: specifically,
I'm developing Rails application and I have to use authentication. I installed devise gem
I am developing a Rails application that will access a lot of RSS feeds

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.