Active
Project:
Fivestar
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 May 2008 at 00:52 UTC
Updated:
25 Apr 2013 at 03:53 UTC
I need some help with that... I need my score range to include negative numbers. How could i configure fivestar accordingly?
Comments
Comment #1
quicksketchWhat 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.
Comment #2
quicksketchComment #3
reinis.berzins commentedMaybe 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!?
Comment #4
reinis.berzins commentedMaybe 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!?
Comment #5
ericduran commentedI'm going to close this issue, is a one off case and 5.x is really no longer supported.
Sorry.
Comment #6
naught101 commentedI 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:
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]