Skip to main content

Proportions Input

A proportions input component. Can be used as part of an ISLE dashboard or standalone. In the latter case, you want to handle changes via the onChange attribute or bind the value to a global variable via the bind attribute.

Options

  • colors | array<string>: array of colors for the pie chart components. If not defined, a custom color scale will be used. Default: none.
  • disabled | boolean: controls whether the input field is deactivated. Default: false.
  • height | number: proportions input height (in px). Default: 200.
  • legends | array: group labels. Default: [].
  • onChange | function: callback function to be invoked when a choice is made. Default: onChange(){}.
  • precision | number: displayed precision of proportion values. Default: 1.
  • step | number: the step of the arrows seen when hovering the cursor above the input box. Default: 0.1.

Examples

Live Editor
Result
ReferenceError: Provider is not defined