ProportionsSurvey

Component that allows a group of people to vote on the weights and importance of given options.

Example:

<ProportionsSurvey 
    user
    id="Survey"
    question="Decide what is important"
    group="Group decision"
    nElements={3}
    colors = {[ "red", "blue", "gold" ]}
    personalHeight={300}
    groupHeight={200}
    margin="80px"
    legends={[ "Bitcoin", "Gold", "Diamanten" ]}
/>

Options:

  • user: Makes it visible to registered users.
  • id: string - the ID of the component (required).
  • question: string that describes the question at hand.
  • group: string that gives the title of the group decision.
  • nElements: number of elements that shall be weighed.
  • legends: Array of strings that describe the options to be weighed.
  • colors: Array of strings that define the colors. If not defined, a custom color scale will be used.
  • personalHeight: number which defines the height of the personal input.
  • groupHeight: number which defines the height of the group element.
  • margin: string in px which allows the correction of the number display.

results matching ""

    No results matching ""