feat(results): average, median, range and Net Promoter Score for scale questions - #3635
Open
global-prog wants to merge 2 commits into
Open
feat(results): average, median, range and Net Promoter Score for scale questions#3635global-prog wants to merge 2 commits into
global-prog wants to merge 2 commits into
Conversation
…or scale questions Scale questions currently show only a bar per value, which makes it hard to compare two questions or two runs of the same form at a glance. This adds count, average, median, lowest and highest above the existing bars. The median is shown next to the average deliberately: at the response counts most forms see, a single extreme answer moves an average a long way. A 0-10 scale additionally reports a Net Promoter Score with its promoter and detractor shares, using the usual 9-10 / 7-8 / 0-6 split, since that is the shape those scales are almost always used for. Purely additive and presentational: no API change, no schema change, and questions of other types are unaffected. Signed-off-by: global-prog <raqeeb@uosamarra.edu.iq>
global-prog
force-pushed
the
contrib/response-statistics
branch
from
September 9, 2026 00:58
4f0ebc9 to
6eedc91
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Scale questions currently show a bar per value, which makes it hard to compare two questions, or two runs of the same form, at a glance.
This adds a small set of figures above the existing bars for
linearscalequestions:The median sits next to the average deliberately — at the response counts most forms see, one extreme answer moves an average a long way, and showing both makes that visible.
The NPS line only appears when the scale is actually 0–10, since that is the shape those scales are almost always used for.
Scope
Purely additive and presentational:
src/components/Results/ResultsSummary.vueTesting
npm run lintandnpm run stylelintcleanmain(vite --mode production build) with no errorsHappy to adjust the wording, the choice of figures, or the placement if you would prefer them elsewhere in the summary.