I need some help with that... I need my score range to include negative numbers. How could i configure fivestar accordingly?

Comments

quicksketch’s picture

What you're talking about is a different rating algorithm than Fivestar provides. Fivestar provides a percentage based solution, where users rate between 0 and 100. What you need is a point based system where you can -/+ some amount.

quicksketch’s picture

Status: Active » Closed (fixed)
reinis.berzins’s picture

Maybe it is still the same algorithm:

E.g. only positive values:
(+1,+2,+3,+4,+5,+6,+7,+8,+9,+10)/10=+5.5

Positive and negative values:
-5,-4,-3,-2,-1,+0,+1,+2,+3,+4
under these negative "value labels" actually the same positive numbers are hidden as before:
(+1,+2,+3,+4,+5,+6,+7,+8,+9,+10)/10-6=+5.5-6=-0.5
Note that at the end of the formula -6 is added.

Unfortunately I don't know whether it is possible to add this -6 at the end of results display formula!?

reinis.berzins’s picture

Category: support » feature
Status: Closed (fixed) » Active

Maybe it is still the same algorithm:

E.g. only positive values:
(+1,+2,+3,+4,+5,+6,+7,+8,+9,+10)/10=+5.5

Positive and negative values:
-5,-4,-3,-2,-1,+0,+1,+2,+3,+4
under these negative "value labels" actually the same positive numbers are hidden as before:
(+1,+2,+3,+4,+5,+6,+7,+8,+9,+10)/10-6=+5.5-6=-0.5
Note that at the end of the formula -6 is added.

Unfortunately I don't know whether it is possible to add this -6 at the end of results display formula!?

ericduran’s picture

Status: Active » Closed (works as designed)

I'm going to close this issue, is a one off case and 5.x is really no longer supported.

Sorry.

naught101’s picture

Version: 5.x-1.9 » 7.x-2.x-dev
Status: Closed (works as designed) » Active

I have a use-case for this: rating politician's policy's relative to a group's desires: e.g. for a political scorecard.

Say the question is "do you support legalised gay marriage" (just to be topical), then answers might be rated on an (approximate, arbitrary) scale something like:

  • +3 Full support
  • +2 Support civil unions, but not marriage
  • +1 Don't support civil unions, but supports most other rights.
  • -1 Don't care about gay rights at all.
  • -3 Actively opposes homosexuality.

I'm sure that other cases where a negative vote makes sense could be found.

The core algorithms can be largely the same (you're just moving the range of the results), it's just the input and display that should be different. So, input in [-x, x] gets mapped to [0, 100%], algorithms run, then results get mapped back to [-x, x]